Linux is an incredibly powerful and versatile operating system, adored by developers, sysadmins, and tech enthusiasts alike. While many users are familiar with the basic commands, the Linux shell harbors a plethora of hidden gems that can supercharge your productivity and make your life easier. Here, we explore some lesser-known but highly useful Linux commands that I bet you don’t know.
Sudo !!
We’ve all been there: you type a command, hit Enter, and then realize you need sudo privileges. Instead of retyping the entire command, you can simply use sudo !!. This nifty trick repeats the last command with sudo, saving you precious keystrokes and time.
ython -m SimpleHTTPServer
Need to quickly share files from your current directory over the network? This command starts a simple HTTP server in the current directory on port 8000, making it a breeze to serve files. It’s a quick and easy way to share files with colleagues without setting up a full-fledged web server.
mtr
Combining the functionality of ping and traceroute, mtr (My Traceroute) provides a real-time view of network status. It’s invaluable for diagnosing network issues, and offering detailed insights into where packet loss and latency occur.