DEV Community

Alfian Ardhi
Alfian Ardhi

Posted on

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.

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay