Feb 2017

red hat linux

Red hat linux basics commands

to create new directory

#mkdir <directory name>

EX: mkdir linux


to create child directory

#mkdir  -p parent directory/ child directory/ child directory

EX: mkdir –p linux/red/blue


to create multiple directories

#mkdir <directory name> {number of directory}

EX: mkdir linux {1,2,3}


to create new files

# cat > <file name>

EX:  cat > linux




To Edit file

# cat >> <file name>

EX: cat >> linux


View file

#cat <file name>

EX: cat linux


numerical representation

# cat  -n <file name>

EX: cat –n linux


to create multiple file

touch  a{1..10)

EX:touch a{linux1,linux2,linux3}


absolutely path

current working directory

# pwd


Change the directory

#cd < directory name>

EX: cd /home/exam


reverse path

#cd .. [previous directory ]

#cd ../.. [previous to previous directory ]

#cd ../../.. [to the root home directory ]

#Cd ~ [go to ~]

#cd / [go to / ]

#cd ~/desktop/ [relative path ]

#cd /root/desktop/  [absolute path]


Helping command

#man <command name>

EX: man mkdir

#info <command name>

EX: info mkdir

#what is

#where is

#whoam i

“q” option for edit


remove command

#rm <directory name>

EX: rm linux

#rm <file name>

EX: rm linux


Copy command

#cp –rvf <source path > <destination path>

EX: cp –rvf /root/desktop/linux  /home/exam


Move command

Mv –rvf <source path > <destination path>

EX: cp –rvf /root/desktop/linux  /home/exam


List command

#ls <list files and directory>

EX: ls –L



If You Want To Respond,Please Send Me An Mail

My Email ID : mothi@mydigitalline.com

Facebook Feed

Unable to display Facebook posts.
Show error

Error: Error validating application. Application has been deleted.
Type: OAuthException
Code: 190
Please refer to our Error Message Reference.