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
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
Ctrl+L to clear the screen. It works in most terminal.
Show Lists Directory Of Contents
ls is equivalent to the DOS
dir command, that it show lists files and directories. This command has some common attributes, example like:
ls -afor show all folders and files including visible and hidden.
ls -lfor show the contents of the directory in full, starting from access rights, owner, group and the date the file or directory was created.
ls -ishow directory contents and size.
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.