LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-24-2011, 02:02 AM   #1
BernardLinux
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

Code:
cp -p
and
Code:
cp -pv
?

i need fast reply. thanks.
 
Old 10-24-2011, 02:05 AM   #2
Nylex
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.

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

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

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


Reply


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 04:42 AM
[SOLVED] qmake command in centos nishitmukesh Linux - Newbie 6 04-06-2011 09:19 AM
A question about the login command in CentOS... trist007 Linux - Newbie 2 08-14-2010 08:42 AM
Some Command of CentOS k_oudom Red Hat 9 10-08-2009 02:03 PM
CentOS 4.4 - no useradd or adduser command Micro420 Red Hat 5 04-04-2007 11:14 PM


All times are GMT -5. The time now is 03:46 PM.

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