What are some life-saving tips every Linux user should know?
2 min readDec 18, 2019
Linux is one of the most common OS used by programmers worldwide,
here are many tips that are available that you can use
Some are:
If you are using bash, here are some time-saving tips that can come handy in day to day tasks of every Linux user. This list is not exhaustive in any manner and is compiled from various Q&A sites and forums.
- Use CTRL+R to search through command history. Hit it again to view the next search result.
- Use hashtags to organize your bash history and to save yourself from typing long commands repeatedly. Just append a hashtag after your command.
Example :
tail -f /var/log/apache2/error.log #ApacheLog
Now you can search it later in reverse search. Just hit CTRL+R and type ApacheLog
- Tired of typing clear every time you want to clear your terminal screen, just hit CTRL+L. It also not get stored in your command history.
- Hit CTRL+W to remove the last word and CTRL+U to remove the entire line.
- Need to execute the last command with sudo, use sudo !!
ls -l /rootsudo !! # This is equivalent to sudo ls -l /root(!! actually repeats the last executed command). - moreover you can go through some helpful youtube videos for basic tutorials like