- Published on
10 Underrated Linux commands
190 words1 min read
- Authors
- Name
- Rahul
- @RahulA_7200
Linux has tons of nifty commands, here's 10 super heroic Linux commands that you probably need to add to your toolbox.
- Redo last command but with sudo
sudo !!
- Open an editor to run a command
Ctrl+x+e
- Create a super fast ram disk
mkdir -p /mnt/ram
mount -t tmpfs tmpfs /mnt/ram -o size=8192M
- Messed up a long command?
fc
will open up your last command in editor.
- netstat: command not found ?
ss
Socket statistics, a substitue of netstat
- Quickly create folders
mkdir -p folder/{sub1,sub2}/{sub1,sub2,sub3}
mkdir -p folder/{1..100}/{1..100}
Also works with number ranges
- Intercept stdout and log to file
cat file | tee -a log | cat > /dev/null
- Solve simple mathematical calculations from terminal
expr
expr 2 + 2
- Want to know history of last logged in users?
last
This command comes to rescue here
- exit terminal but leave all processes running
disown -a && exit
Bonus : python -m http.server
Creates a simple web page for the current working directory over port 8000.