LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CentOS cp command (https://www.linuxquestions.org/questions/linux-newbie-8/centos-cp-command-909750/)

BernardLinux 10-24-2011 02:02 AM

CentOS cp command
 
Hello, i am a CentOS newbie and i am studying about cp command.

i wanna know what is the differences between the command

Code:

cp -p
and
Code:

cp -pv
?

i need fast reply. thanks.

Nylex 10-24-2011 02:05 AM

cp is part of the coreutils package found on all Linux distributions and is therefore not specific to CentOS.

You can get information about commands by reading their man (for "manual") pages, e.g.

Code:

$ man cp
which will tell you what the -v option is for:

-v, --verbose
explain what is being done

Also, please don't say you need a reply quickly. This is a volunteer site and no questions are more important than any other.

fukawi1 10-24-2011 02:07 AM

Code:

man cp
Is the quickest way to get the answer you require.

JJJCR 10-24-2011 04:15 AM

cp -p

-p preserve

when using this option, cp makes sure that attributes of the file, such as owners
and permissions, are copied as well

you can try it on your CLI and check the difference.


All times are GMT -5. The time now is 01:50 AM.