Linux Command Line You Need to Know

Whether you are looking to expand skills about linux. So, out of the hundreds of possible Linux commands you could or have to learn. Here some linux command you need to know.

Print Working Directory

The pwd command for to know you where you are now. For example your’re in download folder. Try the following type pwd and you will see that you’re in your download directory.

Clear Terminal Screen (Console)

For Linux you can type clear or Ctrl+L to Clear the screen. It works in most terminal.

Show Lists Directory Of Contents

Command ls is equivalent to the DOS dir command, that it show lists files and directories. This command has some common attributes, example like:

  • ls -a for show all folders and files including visible and hidden.
  • ls -l for show the contents of the directory in full, starting from access rights, owner, group and the date the file or directory was created.
  • ls -i show directory contents and size.

Troubleshooting

For troubleshooting you can use command tail -f. Example like this tail -f /var/log/daemon.log.

Show History Commands in Linux

If you want to see the previous commands, you can type history in your terminal. Meanwhile, to search command history in Linux, press ctrl+R, then just type the previous command you want to search or use.

18