I. Copying files and directories
To copy a file or directory using the CP command:
$ CP source file (clip) target file (clip)
Common parameters:
-R recursive replication entire directory tree -V displays details of the replication process
Second, move, rename files or directories
To move or rename a file or directory with the MV command:
$ MV File destination Directory
If you specify a filename, you can rename the file.
Iii. Creating and deleting files
You can create an empty file or update the file time by using the touch directory:
$ Touch Test.md
You can delete a file or directory by using the RM command:
$ RM test.md
Common parameters:
-I interactively delete, delete each file immediately before the query-R recursive Delete, including subdirectories and files under the directory-F forced deletion, no warning (use with caution)
Iv. Creating and deleting directories
- Create a directory with the mkdir command
- Delete an empty directory from the rmdir directory
- Delete a non-empty directory by using the RM -R [-f] command
Linux entry record: Third, basic operation management of Linux files