CentOS,Ubuntu,Fedora,Debian,Linux,KVM,Virtualization

CentOS,Ubuntu,Fedora,Debian,Linux,KVM,Virtualization

CentOS,Ubuntu,Fedora,Debian,Linux,KVM,Virtualization

cp
11/08/2018 | 161
cp - copy files and directories
[SYNOPSIS] cp OPTION (SOURCE FILE/DIRECTORY] [DEST FILE/DIRECTORY]
option
-i prompt before overwrite
# cp -i file /etc
-f if an existing destination file cannot be opened, remove it and try again
# cp -f file /etc
-b like --backup but does not accept an argument
# cp -b file /etc
-p preserve the specified attributes (default: mode,ownership,timestamps)
# cp -p file /etc
-r(R) copy directories recursively
# cp -R dir /etc