Course connection: Linux file basic operations management copy file and directory cp Source File (folder) target File (folder) if copied in the same working directory need to be renamed.
Course connection: Basic Linux File operation management
Copy files and directories
Cp Source File (folder) target File (folder)
You need to rename a copy in the same working directory.
-R copy folder-v shows how to move the copied details, rename the file and directory
Mv Source File (folder) target path/name
If it is moved to the same working directory, it is renamed.
-R mobile folder-v displays the details of mobile file creation and deletion.
Touch creates a file
Rm delete File
-R recursively delete folders (including folder content)-I interactive delete-f force delete create and delete folders
Create a folder using mkdir
Rmdir: Delete a folder (non-empty folders cannot be deleted)
Rm-r can delete non-empty folders.