Save up to 35%

What is the cp command?

July 12th, 2009 by uCertify Leave a reply »

The cp command copies files and directories. It is generally used to make a backup copy of a file or to copy a file from one directory to another.

cp must always be given at least two arguments. The first argument is interpreted as the source file, an absolute or relative pathname is acceptable. The second argument is interpreted as the destination. This should also be an absolute pathname.

Usage:

cp [options] sourcefile destination

Some important options of cp are as follows:

OPTION DESCRIPTION
-i It asks before overwriting a file.
-r It recursively copies an entire directory tree.
-p It preserves permissions, ownership, and timestamps.
-f It is used when the existing destination file cannot be opened, it removes the specified destination file and tries again.
Download practice question and study guide for RH033 for exam.
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
  • Share/Bookmark
Advertisement

Leave a Reply

uCertify.com | Our Company | Articles | Contact Us | News and Press Release | uCertify India | Entries (RSS)
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD    Cisco Certification: CCNA, CCENT    A+, Network+, Security+ Project+
Oracle Certification: OCP 11g, OCP 10g, OCA 11g, OCA 10g    CIW foundation    EC-212-32,    CISSP    Photoshop ACE CS4    Adobe Flash ACE, PMP, CAPM
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.