Basic Linux Commands

ยท

3 min read

Basic Linux Commands

Basic Linux Commands

In the world of technology, Linux commands are the tools that engineers rely on for precision and control. This article is your guide to beginner-level understanding of the command line, simplifying its usage, and empowering engineers with essential Linux commands. Whether you're a sysadmin or a developer, this knowledge is invaluable.

PWD

it will print the working directory. It shows the directory that you are in now

 Pwd

ls

list the files and directories that rare in the current directory

 ls

cd

It will change your directory. If you want to go inside the directory use

 cd demo1

if you want to come back use cd ..

 cd ..

mkdir

it will help to create a new directory in the current working directory

rmdir

It will remove the directory

Note - you have to come out from the the directory which you want to remove

 rmdir

lsb_release -a

It will give information of your Linux machine like version, codename

lsb_release -a

service

it will show you which services are running by the system

service

shutdown -h now

it will shut down your system immediately

shutdown -h now

No No I am not going to shut down my machine.

touch

It will create a text file where you want

touch

open .

It will open a directory or a file.

 open .

rm

it is used to delete a file or directory

 rm

history

used to find all the past commands that you used previously

history

zip, unzip

I think the most useful command is zip unzip. It will zip your file or unzip your file from archive

Clear

it will clean up your terminal

Clear

echo

used to print the values you provide it with

echo

id

it will print the user ID.

id

man

This will help provide you with information about the command and any command man command_name

man command_name 
eg -  man clear

whatis

This will give you a single-line description of the command.

whatis

mv

used to move a file or folder or rename a file or folder.

cat

used to read data from a file and give its content as output. It helps us to create, view, and concatenate files.

cat

It can take a while to remember some of the basic commands but after some regular practice you learn this

Thank you for reading my content. Be sure to follow and comment on what you want me to write about next ๐Ÿค“

Did you find this article valuable?

Support Saurabh verma by becoming a sponsor. Any amount is appreciated!

ย