Linux Tips

TAB for Auto Completion : while navigating to a directory use ‘TAB’ for completing the navigation: cd /h’TAB’ will produce /home

Switch back to last directory cd – : very practical after navigating inside a complex branch and willing to return to the previous location

Go back to home directory cd or cd ~ : quick way to return home

Running several commands : cd /var/log; ls *.log -ll; will list all the *.log files from /var/log. Could also be achieved by running ls /var/log/*.log -ll.

Running several command : && example: sudo apt-get update && apt-get upgrade. Upgrade will only run if update has terminated successfully

Search and re-use a command: CTRL+r

Go to beginning of line: CTRL+a

Stop a running command: CTRL+c

Go to end of line: CTRL+e

Close an open file: CTRL+x (system will ask to save the modifications or not)