01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CP ( 1) CP ( 1)<br />

NAME cp, In, mv - copy, link or move files<br />

SYNOPSIS<br />

cp file 1 [ file2 . . . ] target<br />

In file1 [ file2 .. . ] target<br />

mv file1 [ file2 .. . ] target<br />

DESCRIPTION<br />

Filet is copied (linked, moved) to target. Under no circumstance<br />

can filet and target be the same (take care when using sh(1)<br />

metacharacters). If target is a directory, then one or more files<br />

are copied (linked, moved) to that directory.<br />

If mv determines that the mode of target forbids writing, it will<br />

print the mode (see chmod(2)) and read the standard input for one<br />

line (if the standard input is a terminal); if the line begins with y,<br />

the move takes place; if not, mv exits.<br />

Only mv will allow filet to be a directory, in which case the directory<br />

rename will occur only if the two directories have the same<br />

parent.<br />

SEE ALSO<br />

cpio( 1), rm(1), chmod(2).<br />

DIAGNOSTICS<br />

Bad copy generally means 1/0 or other system error.<br />

BUGS<br />

If filet and target lie on different file systems, mv must copy the<br />

file and delete the original. In this case the owner name becomes<br />

that of the copying process and any linking relationship with other<br />

files is lost.<br />

Ln will not link across file systems.<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!