18
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.
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.
For Linux you can type clear
or Ctrl+L
to Clear the screen. It works in most terminal.
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.
For troubleshooting you can use command tail -f
. Example like this tail -f /var/log/daemon.log
.
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