The cp and mv commands on linux

Опубликовано: 05 Октябрь 2024
на канале: Chris Gregg
5,121
34

The cp command is used to copy files, and the mv command is used to move files. The basic command is:

cp source destination
mv source destination

Where source is a source file, and destination is a path, or a path with a filename (which can be the same or different than the original). On the myth machines, cp is aliased to "cp -i" which gives a nice prompt if you are about to do something destructive (like overwrite a file that is already present).