Cool Linux Commands and Essential System Operations Guide
This article introduces ten entertaining Linux commands that produce eye‑catching terminal effects, followed by a concise tutorial of essential system, file, search, and network commands for everyday Linux administration and exploration.
We often see movies like Inception , Revolution OS , and Code dramatize command‑line hacking, and even the iconic "digital rain" from The Matrix can be recreated on a Linux terminal with a few simple commands.
Below are ten fun Linux commands that generate impressive visual effects:
1. cmatrix – displays the classic green "Matrix" rain.
2. htop – a colorful, interactive process viewer similar to Windows Task Manager.
3. hollywood – shows a humorous "programmer vs. reality" animation.
4. aafire – renders text as a burning flame.
5. bastet – a Tetris game playable directly in the terminal.
6. sl – shows an animated steam locomotive crossing the screen.
7. cowsay – prints an ASCII cow that can say any supplied message.
8. fortune – displays a random quote, poem, or joke.
9. boxes -d dog – outputs an ASCII dog inside a decorative box.
These commands demonstrate that Linux can be both powerful and entertaining.
In addition, mastering basic Linux system commands is essential for file management, environment configuration, and troubleshooting.
System Information Commands arch – display machine architecture uname -m – display machine architecture (alternative) uname -r – show the running kernel version dmidecode -q – display hardware components (SMBIOS/DMI) hdparm -i /dev/hda – list disk characteristics hdparm -tT /dev/sda – perform read‑performance tests cat /proc/cpuinfo – show CPU information cat /proc/interrupts – display interrupt statistics cat /proc/meminfo – check memory usage cat /proc/swaps – list active swap devices cat /proc/version – show kernel version cat /proc/net/dev – display network interface statistics cat /proc/mounts – list mounted filesystems lspci -tv – list PCI devices lsusb -tv – list USB devices
File and Directory Operations cd /home – change to /home directory cd .. – go up one level cd ../.. – go up two levels cd – go to the current user's home directory cd ~user1 – go to user1's home directory cd - – return to the previous directory ls – list files in a directory ls -F – append indicator symbols to entries ls -l – long format with detailed info ls -a – include hidden files ls *[0-9]* – show files containing numbers tree – display a tree view of directories (variant 1) lstree – display a tree view of directories (variant 2) mkdir dir1 – create a directory named dir1 mkdir dir1 dir2 – create two directories at once mkdir -p /tmp/dir1/dir2 – create a nested directory tree rm -f file1 – force‑remove a file rmdir dir1 – remove an empty directory rm -rf dir1 – recursively delete a directory and its contents mv dir1 new_dir – rename or move a directory cp file1 file2 – copy a file cp dir/* . – copy all files from a directory to the current directory cp -a /tmp/dir1 . – copy a directory preserving attributes ln -s file1 lnk1 – create a symbolic link ln file1 lnk1 – create a hard link touch -t 0712250000 file1 – set a file's timestamp (YYMMDDhhmm) file file1 – output the MIME type of a file iconv -l – list known character encodings
File Search Commands find / -name file1 – search from root for a file named file1 find / -user user1 – locate files owned by user1 find /home/user1 -name \*.bin – find .bin files in a user's home find /usr/bin -type f -atime +100 – find executables not accessed in the last 100 days find /usr/bin -type f -mtime -10 – find files modified within the last 10 days find / -name \*.rpm -exec chmod 755 '{}' \; – locate .rpm files and set permissions find / -xdev -name \*.rpm – search .rpm files while ignoring removable media locate \*.ps – quickly locate .ps files (requires prior updatedb) whereis halt – show binary, source, and man‑page locations which halt – display the full path of the executable
Network Commands ifconfig eth0 – display Ethernet interface configuration ifup eth0 – bring up the eth0 interface ifdown eth0 – bring down the eth0 interface ifconfig eth0 192.168.1.1 netmask 255.255.255.0 – assign a static IP address ifconfig eth0 promisc – enable promiscuous mode for packet sniffing dhclient eth0 – obtain an IP address via DHCP route -n – display the routing table route add -net 0/0 gw IP_Gateway – set the default gateway
route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.1.1– add a static route to the 192.168.0.0/16 network
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
JD Retail Technology
Official platform of JD Retail Technology, delivering insightful R&D news and a deep look into the lives and work of technologists.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
