DEV Community

Abednego Emonena
Abednego Emonena

Posted on

2

5 Most Used Linux Commands For Beginners

A Linux Command line

After a few months of learning to code in the command line, I have come to understand and get to love using Linux to write most of my programs.

As a beginner who is starting to use Linux, you might find it challenging to use the command line especially if you have gotten so use to working on GUI.

In this post, I will share with you 10 most used Linux Command and it's uses.

1.
pwd: Since you are working in the command line, it might sometimes be difficult for you to know which directory you are working on, that's why pwd meaning print working directory will print out the current directory you are working on.
Usage:

pwd
Enter fullscreen mode Exit fullscreen mode

2.
cd: Also known as change directory will help you navigate your way into directory directory
for example: to change into another directory in the same directory you type

cd <directory_name>
Enter fullscreen mode Exit fullscreen mode

3.
ls: Known as less will will all the files and directory in the current working directory

ls
Enter fullscreen mode Exit fullscreen mode

4.
sudo apt-get install: I use this command most of the time to install essential tools or programs into my Linux machine

sudo apt-get install <program_name>
Enter fullscreen mode Exit fullscreen mode

5.
ps: This command is used to print the PID or Process Id of all currently running processes within your Linux machine.

ps
Enter fullscreen mode Exit fullscreen mode

This are my most used Linux Command,which tend to come in whenever I work in the Linux CLI
Thanks for reading.

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

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

Okay