cp (copy files)

team bbl


Copies a file into a new file or into a new directory with the same name. If the new file already exists, copy overwrites the existing file with the new file.

 Format:    cp filename filename Examples:  cp prog1 prog2            cp prog1 /home/janet 

The second example copies prog1 into /home/janet/prog1. After a cp command, two files exist: the original file plus the new file it was copied into.

Opt

What It Does

Example

-i

Prompt before overwriting a file

cp -i report1 report2

-v

Display name of file being copied

cp -v rep1 dir1


    team bbl



    Spring Into Linux
    Spring Into Linux
    ISBN: 0131853546
    EAN: 2147483647
    Year: 2005
    Pages: 362
    Authors: Janet Valade

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net