The study notes Linux file manipulation commands (3/22)

Copy the file directory

Use cp command to copy a file or directory

cp source file (folder) the target file (folder)

 

 

Common parameters:

-r recursively copy the entire directory tree

-v Show Details

 

Move, rename a file or directory

By mv command to move or rename a file or directory

mv file target directory

If you specify a file name, you can rename the file

 

 

Create, delete files

By touch can create an empty file or file update time command

 

By rm can delete a file or directory command

 

Common parameters:

-i Interactive

-r recursively delete any content directory

-f forcibly removed, no warning

 

 

By mkdir to create a directory command

 

By rmdir command deletes an empty directory

 

By rm -r (-f) command to delete a non-empty directory

 

 

 

Guess you like

Origin blog.csdn.net/lieanwan2780/article/details/79660858
Recommended