Translations:Linux introduction/14/en
Jump to navigation
Jump to search
Copying and renaming files or directories
To copy a file use the cp
command:
[name@server ~]$ cp source_file destination_file
To recursively copy a directory:
[name@server ~]$ cp -R source_directory destination_directory
To rename a file or a folder (directory), use the mv
command (move):
[name@server ~]$ mv source_file destination_file
This command also applies to directories. You should then replace source_file
with source_directory
and destination_file
with destionation_directory
.