Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-24-2011, 03:02 AM   #1
LQ Newbie
Registered: Sep 2011
Location: Malaysia
Posts: 21

Rep: Reputation: Disabled
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

cp -p
cp -pv

i need fast reply. thanks.
Old 10-24-2011, 03:05 AM   #2
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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.

$ 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.
Old 10-24-2011, 03:07 AM   #3
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 191Reputation: 191
man cp
Is the quickest way to get the answer you require.
Old 10-24-2011, 05:15 AM   #4
Senior Member
Registered: Apr 2010
Posts: 1,523

Rep: Reputation: 260Reputation: 260Reputation: 260
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] lsof command not found (CentOS) JJJCR Linux - Newbie 2 10-07-2011 05:42 AM
[SOLVED] qmake command in centos nishitmukesh Linux - Newbie 6 04-06-2011 10:19 AM
A question about the login command in CentOS... trist007 Linux - Newbie 2 08-14-2010 09:42 AM
Some Command of CentOS k_oudom Red Hat 9 10-08-2009 03:03 PM
CentOS 4.4 - no useradd or adduser command Micro420 Red Hat 5 04-05-2007 12:14 AM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration