Create a file directory creation

Create a directory:

mkdir directory name

mkdir {1,2,3} create multiple directories

mkdir 1,2 create two two directories

mkdir -p / directory / directory create a directory cascade

 Delete Files directory

rm -rf -R directory 1/2 directory / directories 3/4 recursive directory delete the directory (directory only if the directory 4 3 3 Delete directory together Unicom)

rm-rf non-empty directory

View Files

ls view files (not including hidden files and only displays the file name not detailed enough)

ll ls -l See the following effects or

 

 

 

ls -a can view all files and include virtual directories ... linux virtual directory for which judgment is very simple as long as the beginning point are therefore create a virtual directory will be hidden away .env require the use of a parameter can view

 

 

Copy the file directory

cp directory \ directory \ new directory -R recursively copied to a specified directory and file name change

 

mv directory \ directory \ new directory -R recursively cut to a specified directory and file name change

 

MV ab change name

Guess you like

Origin www.cnblogs.com/webcyh/p/11407478.html