Linux Command

๐ŸŽ‰ Funny Linux Commands List ๐ŸŽ‰

CommandMaza Wali Baat (Description)Install Command
sl๐Ÿš‚ Agar ls ki jagah galti se sl likho toh ek train guzar jayegi!sudo apt install sl
cowsay “Linux is fun!”๐Ÿ„ Ek cartoon cow tumhara message bolegi.sudo apt install cowsay
fortune๐Ÿ”ฎ Random future prediction ya quote dikhata hai.sudo apt install fortune
toilet “Hacker”๐ŸŽจ Stylish ASCII text generate karta hai.sudo apt install toilet
figlet “Linux”๐Ÿ–ผ๏ธ Bada aur fancy ASCII text banata hai.sudo apt install figlet
lolcat๐ŸŒˆ Rainbow colors mein text dikhata hai!sudo apt install lolcat
rev๐Ÿ”„ Text ko ulta likh kar dikhata hai.(Pre-installed)
cmatrix๐Ÿ’ป Terminal ko “The Matrix” style mein badal deta hai!sudo apt install cmatrix
pvโŒจ๏ธ Typewriter jaisa slow motion text print karega.sudo apt install pv
espeak “Hello hacker!”๐Ÿ—ฃ๏ธ Terminal se computer ki awaaz sunni ho.sudo apt install espeak
aafire๐Ÿ”ฅ Terminal par aag jala do!sudo apt install libaa-bin
asciiquarium๐Ÿ  Ek animated aquarium terminal par!sudo apt install asciiquarium
bb๐Ÿš€ ASCII graphics aur animations dikhata hai!sudo apt install bb
xeyes๐Ÿ‘€ Screen par do aankhein aayengi jo mouse ko follow karti hain!sudo apt install x11-apps
oneko๐Ÿฑ Tumhare mouse ke peeche ek billi bhagti rahegi!sudo apt install oneko
nyancat๐ŸŒˆ Terminal par ek Nyan Cat chalayega!sudo apt install nyancat
wtf๐Ÿค” Yeh command kuch technical acronyms ka matlab batata hai.sudo apt install wtf
moo๐Ÿ„ apt-get moo likhne par ek secret cow message milega!(Pre-installed)
factor <number>๐Ÿ”ข Yeh kisi bhi number ke factors nikal dega.(Pre-installed)
`echo “Hacking in progress…”pv -qL 10`๐Ÿ–ฅ๏ธ Typewriter jaisa effect dega.
yes “Main Linux ka deewana hoon!”๐Ÿ” Infinite loop mein text likhta rahega. Ctrl+C se rokna padega.(Pre-installed)
uptimeโณ Bata dega system kitne time se chalu hai, jaise ki tum soye ho ya nahi. ๐Ÿ˜†(Pre-installed)
history๐Ÿ“œ Bata dega tumne pehle kya commands run ki thi. Koi secret mat type karna!(Pre-installed)
`:(){ ::& };:`โ˜ ๏ธ Yeh command “fork bomb” hai, jo system hang kar sakta hai. Mat try karna!
cal 9 1752๐Ÿ“… Yeh ek aisi calendar glitch dikhata hai jo historical bug hai!(Pre-installed)
rm -rf /โš ๏ธ Yeh pura system uda dega, joke mat samajhna!(Dangerous, mat run karna!)

๐Ÿ”ฅ Extra Fun Commands Combination ๐Ÿ”ฅ

fortune | cowsay | lolcat

๐Ÿ”ฎ ๐Ÿ„ ๐ŸŒˆ โ€” Future prediction cow ke saath aur rainbow colors! ๐Ÿ˜†

cowsay “I am a hacker!” | lolcat

๐Ÿ„ ๐Ÿ’ป Rainbow hacker cow!

cmatrix & oneko

๐Ÿ’ป๐Ÿฑ โ€” Matrix ke upar billi bhagti rahegi!

sl && nyancat

๐Ÿš‚๐ŸŒˆ โ€” Pehle train chalegi, phir Nyan Cat ud jayegi!

1. File aur Directory Commands

    1. ls โ€“ Current directory ke files aur folders dikhata hai.

    2. cd โ€“ Directory change karne ke liye (cd /home/user).

    3. pwd โ€“ Current working directory dikhata hai.

    4. mkdir โ€“ Nai directory banane ke liye (mkdir test).

    5. rmdir โ€“ Empty directory delete karne ke liye (rmdir test).

    6. rm -r โ€“ Directory aur uske contents delete karne ke liye (rm -r test).

    7. touch โ€“ Naya file banane ke liye (touch file.txt).

    8. cp โ€“ Files ya directories copy karne ke liye (cp file1.txt file2.txt).

    9. mv โ€“ Files ya directories move ya rename karne ke liye (mv old.txt new.txt).

    10. find โ€“ Specific file ya directory dhoondhne ke liye (find /home -name file.txt).

2. File Content aur Editing Commands

    1. cat โ€“ File ke content dikhata hai (cat file.txt).

    2. nano โ€“ File edit karne ke liye (nano file.txt).

    3. vim โ€“ Advanced text editor (vim file.txt).

    4. less โ€“ Large file ko scroll karne ke liye (less file.txt).

    5. head โ€“ File ke starting lines dikhata hai (head -10 file.txt).

    6. tail โ€“ File ke last lines dikhata hai (tail -10 file.txt).

    7. echo โ€“ Terminal me text print karta hai (echo “Hello, Linux”).

    8. grep โ€“ Specific text ko dhoondhne ke liye (grep “word” file.txt).

    9. diff โ€“ Do files ka difference dikhata hai (diff file1.txt file2.txt).

    10. wc โ€“ File me words, lines aur characters count karta hai (wc file.txt).

3. File Permissions aur Ownership Commands

    1. chmod โ€“ File permissions change karne ke liye (chmod 755 file.txt).

    2. chown โ€“ File owner change karne ke liye (chown user:user file.txt).

    3. chgrp โ€“ File ka group change karne ke liye (chgrp groupname file.txt).

    4. umask โ€“ Default permissions dekhne ya set karne ke liye (umask 022).

    5. ls -l โ€“ Files ki permissions check karne ke liye.

4. Process Management Commands

    1. ps โ€“ Running processes dekhne ke liye.

    2. top โ€“ System performance aur running processes dikhata hai.

    3. htop โ€“ top ka interactive version (pehle htop install karna padega).

    4. kill โ€“ Process ko terminate karne ke liye (kill PID).

    5. pkill โ€“ Process name se terminate karne ke liye (pkill firefox).

    6. jobs โ€“ Background jobs dekhne ke liye.

    7. bg โ€“ Background job resume karne ke liye.

    8. fg โ€“ Background job ko foreground me laane ke liye.

5. User Management Commands

    1. whoami โ€“ Current user ka naam dikhata hai.

    2. who โ€“ Logged-in users ka list dikhata hai.

    3. id โ€“ User ID aur Group ID dikhata hai.

    4. adduser โ€“ Naya user create karne ke liye (sudo adduser username).

    5. passwd โ€“ Password change karne ke liye (passwd).

    6. su โ€“ Doosre user ke account me switch karne ke liye (su username).

    7. sudo โ€“ Superuser privileges use karne ke liye (sudo command).

6. Networking Commands

    1. ifconfig โ€“ IP address aur network interface details dikhata hai (deprecated, ab ip a use hota hai).

    2. ip a โ€“ Current IP address dikhata hai.

    3. ping โ€“ Kisi network host ko ping karne ke liye (ping google.com).

    4. netstat โ€“ Network connections dikhata hai.

    5. curl โ€“ URL se data fetch karne ke liye (curl example.com).

    6. wget โ€“ Web se files download karne ke liye (wget url).

7. System Information Commands

    1. df -h โ€“ Disk space usage dikhata hai.

    2. du -sh โ€“ Directory ka size check karne ke liye.

    3. uptime โ€“ System kab se chal raha hai ye dikhata hai.

    4. uname -a โ€“ System ke bare me full details dikhata hai.

1. File & Directory Management

    1. ls -lah โ€“ Detailed list with human-readable sizes.

    2. tree โ€“ Directory structure tree format me dikhata hai.

    3. find / -type f -size +100M โ€“ 100MB se bade files dhoondhne ke liye.

    4. find /var/log -type f -mtime -7 โ€“ Last 7 din me modify hue log files dhoondhne ke liye.

    5. du -sh * | sort -rh | head -10 โ€“ Top 10 sabse bade files/directories dikhata hai.

    6. rsync -avz source/ destination/ โ€“ Files aur directories sync karne ke liye.

    7. stat file.txt โ€“ File ki details jaise permissions, timestamps dekhne ke liye.

    8. basename /path/to/file โ€“ Sirf filename extract karne ke liye.

    9. dirname /path/to/file โ€“ Sirf directory path extract karne ke liye.

    10. inotifywait -m /home/user โ€“ Directory me real-time changes monitor karne ke liye.


2. File Permissions & Ownership

    1. chmod 400 private-key.pem โ€“ File ko sirf read-only banane ke liye.

    2. chown -R user:group folder/ โ€“ Folder ka ownership change karne ke liye.

    3. umask 027 โ€“ Default permissions set karne ke liye.

    4. setfacl -m u:username:rwx file โ€“ Extra user ko file access dene ke liye.

    5. getfacl file โ€“ ACL permissions dekhne ke liye.


3. Process Management

    1. ps aux –sort=-%mem | head โ€“ Memory-consuming top processes dikhane ke liye.

    2. pgrep apache โ€“ Process ID dhoondhne ke liye.

    3. pkill -9 process_name โ€“ Process forcefully terminate karne ke liye.

    4. nohup command & โ€“ Process ko background me run karne ke liye.

    5. strace -p PID โ€“ Process ka system calls trace karne ke liye.

    6. lsof -p PID โ€“ Process ka open files dekhne ke liye.

    7. uptime โ€“ System uptime aur load average dikhata hai.

    8. time command โ€“ Command execution ka time calculate karta hai.

    9. watch -n 1 free -m โ€“ Memory usage real-time monitor karne ke liye.

    10. nice -n 10 process_name โ€“ Process priority change karne ke liye.


4. User Management

    1. whoami โ€“ Current user dekhne ke liye.

    2. id username โ€“ User ka UID, GID, aur groups dekhne ke liye.

    3. groups username โ€“ User ke groups dikhata hai.

    4. useradd -m username โ€“ Naya user create karne ke liye.

    5. passwd username โ€“ User ka password set karne ke liye.

    6. usermod -aG sudo username โ€“ User ko sudo access dene ke liye.

    7. deluser username โ€“ User delete karne ke liye.

    8. last โ€“ System pe login history dekhne ke liye.

    9. who โ€“ Logged-in users dikhane ke liye.

    10. w โ€“ Users ki activity aur system load dikhata hai.


5. Networking

    1. ip a โ€“ Network interfaces aur IPs dikhata hai.

    2. ifconfig โ€“ IP address aur network details (deprecated).

    3. netstat -tulnp โ€“ Listening ports aur running services dikhata hai.

    4. ss -tulnp โ€“ netstat ka faster alternative.

    5. tcpdump -i eth0 โ€“ Live network traffic capture karne ke liye.

    6. traceroute google.com โ€“ Network path trace karne ke liye.

    7. mtr google.com โ€“ Advanced network diagnostics.

    8. dig google.com โ€“ DNS records dikhata hai.

    9. nslookup google.com โ€“ DNS lookup karne ke liye.

    10. curl -I google.com โ€“ HTTP headers dikhane ke liye.


6. System Monitoring & Performance

    1. top โ€“ Real-time process monitoring.

    2. htop โ€“ top ka interactive version.

    3. free -m โ€“ RAM usage dikhane ke liye.

    4. vmstat 1 โ€“ CPU, memory, disk activity dikhata hai.

    5. iostat -x 1 โ€“ Disk I/O performance monitor karta hai.

    6. iotop โ€“ Real-time disk usage dekhne ke liye.

    7. df -h โ€“ Disk usage check karne ke liye.

    8. du -sh /home/user โ€“ Specific directory ka size dekhne ke liye.

    9. uptime โ€“ System running time dikhata hai.

    10. sar -u 1 5 โ€“ CPU usage monitor karne ke liye.


7. Security & Logs

    1. sudo dmesg | tail โ€“ Kernel logs dekhne ke liye.

    2. journalctl -xe โ€“ System logs aur errors check karne ke liye.

    3. auth.log โ€“ Authentication logs (/var/log/auth.log).

    4. iptables -L โ€“ Firewall rules dekhne ke liye.

    5. fail2ban-client status โ€“ Brute-force attack protection status dekhne ke liye.

    6. auditctl -l โ€“ Audit logs configure karne ke liye.

    7. chkrootkit โ€“ Rootkit detection ke liye.

    8. rkhunter –check โ€“ Rootkit scanning karne ke liye.

    9. history | grep sudo โ€“ Sudo commands ki history check karne ke liye.

    10. passwd -l username โ€“ User account disable karne ke liye.


8. Disk & File System Management

    1. fdisk -l โ€“ Disk partitions dikhane ke liye.

    2. mkfs.ext4 /dev/sdb1 โ€“ Partition format karne ke liye.

    3. mount /dev/sdb1 /mnt โ€“ Partition mount karne ke liye.

    4. umount /mnt โ€“ Partition unmount karne ke liye.

    5. fsck /dev/sdb1 โ€“ Filesystem errors check karne ke liye.


9. Archiving & Compression

    1. tar -cvf archive.tar directory/ โ€“ Folder ko .tar file me compress karne ke liye.

    2. tar -xvf archive.tar โ€“ .tar file extract karne ke liye.

    3. gzip file.txt โ€“ File compress karne ke liye.

    4. gunzip file.txt.gz โ€“ .gz file decompress karne ke liye.

    5. zip -r archive.zip folder/ โ€“ Zip archive banane ke liye.

    6. unzip archive.zip โ€“ Zip file extract karne ke liye.


10. Scripting & Automation

    1. echo ‘command’ | at now +5 minutes โ€“ 5 min baad command execute karne ke liye.

    2. crontab -e โ€“ Cron jobs set karne ke liye.

    3. awk ‘{print $1}’ file.txt โ€“ Column extract karne ke liye.

    4. sed ‘s/old/new/g’ file.txt โ€“ Text replace karne ke liye.

error: Content is protected !!