I've written several articles about how to use the command line interface to manage files on your system, and here are a few basic commands that are common to all distributions.
To copy a file or directory to a new location:
- CP Path_of_file_1 path_of_the_directory_where_you_want_to_copy/
Copy all files from a directory to a new location (note the slash and asterisk, which indicates all files in the directory):
- CP path_of_files/* path_of_the_directory_where_you_want_to_copy/
Move the file from one location to another (the trailing slash means the directory):
- Mvâpath_of_file_1 path_of_the_directory_where_you_want_to_move/
To move all files from one location to another:
- mvâpath_of_directory_where_files_are/* path_of_the_directory_where_you_want_to_move/
To delete a file:
- RM Path_of_file
To delete a directory:
- Rm-r path_of_directory
Clear all contents of the directory, leaving only the directory folder:
- Rm-r path_of_directory/* for details, please contact qq:2881064157
Some basic commands about Linux systems