Lệnh cp:
1 |
$ cp [options] source dest |
Các Option của lệnh cp
cp command main options:
option | description |
---|---|
cp -a | archive files |
cp -f | force copy by removing the destination file if needed |
cp -i | interactive – ask before overwrite |
cp -l | link files instead of copy |
cp -L | follow symbolic links |
cp -n | no file overwrite |
cp -R | recursive copy (including hidden files) |
cp -u | update – copy when source is newer than dest |
cp -v | verbose – print informative messages |