How To Create Folder Red Hat

Create a folder :(Create/Copy/Move)

Create directory (folder) :

Eg : How to Create a directory on desktop?
Answer : mkdir /root/Desktop/bookofnetwork

Eg :

Eg : How to create a directory in /tmp ?
Answer : mkdir /tmp/redhat

Eg : How to create multiple directory on desktop?
Answer : mkdir –p /root/Desktop/{a,b,c}

Eg : How to create nest on desktop ?
Answer : mkdir –p /root/Desktop/a/b/c/d

Eg : How to create tree directory on desktop ?
Answer : mkdir –p /root/Desktop/redhat/{dir1/{dir11,dir12},dir2/{dir21,dir22}}

ls Command :

ls : To show the list of file & directory.

ls -a: To show the hidden file & folder also.(hidden file & folder is represent by “.”)

  • ls –li : To show the inode number.
  • ls –l :To show the long information.
Notepad

(Ls –l = ll , both give the same result)

Command
mkdir –p /root/Desktop/1/2/3/4</br>ls –R /root/Desktop/1

copy Command :

  • cp : To copy the file
  • cp –rv: To copy the directory. (r - recursive, v - verbs)

Eg :

Command
Touch /root/Desktop/abc
cp  /root/Desktop/abc /tmp

or

Command
cp /root/Desktop/abc /media

Eg :

Command
mkdir  -p /root/Desktop/p/q/r

Eg : To copy all directory in tmp ?
Answer : #cp –rv /root/Desktop/p /tmp (to copy all dir)

Eg : To copy copy etc on desktop ?
Answer : #cp –rv /etc /root/Desktop/ (to copy etc dir)

#Create/copy/move_a_folder_in_red_hat #ls_Command_in_red_hat #copy_Command_in_red_hat

(New page will open, for Comment)

Not yet commented...