Lesser-Known                  Linux Commands That Will Amaze You

10

Avoid permission denied errors by using sudo !!. It repeats the last command with superuser privileges.

1. sudo !! Command

Learn basic to advanced Linux commands with  Linux Cheat Sheet!

Generate a simple web page for directory structure using python -m SimpleHTTPServer 8000. Access it in your browser until you interrupt the signal.

2. python Command

Learn basic to advanced Linux commands with  Linux Cheat Sheet!

Combine ping and traceroute with mtr command. Install it via apt or yum if not available.

3. mtr Command

Learn basic to advanced Linux commands with  Linux Cheat Sheet!

Admins and developers rejoice! Open an instant editor by pressing Ctrl+x+e in the terminal.

4. Ctrl+x+e Command

Learn basic to advanced Linux commands with  Linux Cheat Sheet!

Number lines in a file with nl command. Use cat to view file content before numbering.

5. nl Command

Learn basic to advanced Linux commands with  Linux Cheat Sheet!

Randomly select lines/files/folders with shuf command. Try it with ls to see shuffled folder contents.

6. shuf Command

Learn basic to advanced Linux commands with  Linux Cheat Sheet!

Investigate sockets with ss command for TCP and state info, similar to netstat but with more details.

7. ss Command

Learn basic to advanced Linux commands with  Linux Cheat Sheet!

View login history with last command. See a list of logged-in and logged-out users from /var/log/wtmp.

8. last Command

Learn basic to advanced Linux commands with  Linux Cheat Sheet!

Quickly find your external IP address in the terminal with curl ifconfig.me.

9. curl ifconfig.me

Learn basic to advanced Linux commands with  Linux Cheat Sheet!

Visualize running processes and their child processes in a tree-like format using pstree. Similar to 'tree' command output.

10. pstree Command

Learn basic to advanced Linux commands with  Linux Cheat Sheet!

Check out a comprehensive Linux Commands Cheatsheet by IntervewBit, packed with basic and advanced Linux Commands with examples to help you become proficient in Linux.

Looking to  master Linux?

Scaler  Data Science & Machine Learning Program!

Ready to level up your data science skills? Join Scaler to become a master of data science and machine learning.  Book a FREE LIVE CLASS now.