Basic Linux Commands List

0
1859
Basic Linux Commands List
Basic Linux Commands List

Basic Linux Commands List-

These are some of the basic linux commands list.

Mkdir ( single or multiple ) –

This command is to create the directory.

Where it can create the single or multiple directories in the file.

eg: mkdir file1 ( single )

mkdir file1 file2 file3 ( Multiple )

 

Touch ( update the file and create the new file )

This is the command to update the file which is already exists. If it does not exist it will create the new file.

eg: touch file1 file2 file3 (Multiple)

touch file (Single)

 

cp( copy the file )

It is to copy the file from the required path. This command that can copy the data by giving the destination and the file name.

eg:  cp ~/.bashrc bashrc

cp bashrc bashrc.bak

 

mv ( Move the file )

mv is to move the file and to rename the file. For this command, we have to give the destination and that file will move to the required file path

eg:  mv bashrc.bak bashrc

 

rm ( Remove the File )

This command is to remove the file from the current path. In this command to remove the directories, we use the * to remove all the files in the directory

eg: rm * file name

rm –r for to remove the mkdir ( Directory )

Here are some more of the Basic Linux commands list – 

rmdir ( Remove the directory )

It is the command to remove the whole directory

eg: rmdir * file_name

 

cat (To concatenate the File)

By this command, it will show the all the data that is there in the file.

In this cat command, there are two ways of implementation

eg: cat >> file name(we can write the data in the console and that will store in the file.)

eg:  car > file name (remove all the data previous and give the new one to implement the data.)

 

more (to see the file data )

This is the command that we can see the full data by clicking space.

eg: more filename.

 

less ( to list the data )

This is the advanced command  less file name  go down space search for text scroll down

eg: less file_name.

nano ( To edit the file  )

This the command nano it is a powerful little text editor

ctrl o( save the file ) and ctrl x ( exit from the file )

eg: nano file_name

 

sudo ( super user of the particular user )

It is the very important command that helps to authorize the into the particular created user or group file.

eg: sudo update database ( to update the database )

sudo –s (it will going to root side)

su root  ( access to the root )

 

users (login name, owner name )

This is the command that will give the all the data of the users and the who is logged in.

eg:  user

id ( to get uid, gid, group )

It is the command to give the all the ID’s of the data.

eg: id

Some more useful Linux Commands –

Chmod ( To change the permissions of the file )

This is the command that to give the permissions to the file. We can give the permissions to the each group. There are 3 groups ( read, write, execute ) 7bits in bytes user group everyone RWX

( values of the each )

read 4  ( r )

write 2 ( w )

execute 1 ( x )

eg: Chmod +x file name or by the number

 

Watch ( to see )

how much memory is there in the system. every data about the system that can be showed by this command.

eg: Watch free –h

Reviews the command it  can update for every 2 sec

 

Kill ( to kill a process )

This is the command to kill the process that is running on the computer.

eg: Killall Firefox ( it is to kill the all the pages in the Firefox and close the Firefox. )

 

Useful links –

Linux Basic Commands

Basic Commands of Linux

SHARE
Previous articleBasic Commands of Linux

LEAVE A REPLY