10 useful linux command lines

Using the linux commands effectively can speed up your workflow. Below are 10 useful linux commands with practical examples. 1. Go back to prior directory You type a long directory and you want to go back to prior directory use cd - user@server.com: /etc $ user@server.com: cd /somepath/long_directory. user@server.com: cd - 2. Clear screen / prior entries Use Ctrl + L to clear prior entries. The old commands are still visible if we scroll up. To remove all entries type reset this will reset the shell. ...

January 12, 2025 · 4 min