Annotation of lucent/sys/man/1/cp, revision 1.1

1.1     ! root        1: .TH CP 1 
        !             2: .SH NAME
        !             3: cp, mv  \- copy, move files
        !             4: .SH SYNOPSIS
        !             5: .B cp
        !             6: .I file1 file2
        !             7: .br
        !             8: .B cp
        !             9: .I file ... directory
        !            10: .PP
        !            11: .B mv
        !            12: .I file1 file2
        !            13: .br
        !            14: .B mv
        !            15: .I file ... directory
        !            16: .SH DESCRIPTION
        !            17: In the first form
        !            18: .I file1
        !            19: is any name and
        !            20: .I file2
        !            21: is any name except an existing directory.
        !            22: In the second form the commands
        !            23: copy or move one or more
        !            24: .I files
        !            25: into a
        !            26: .I directory
        !            27: under their original file names, as if by a sequence of 
        !            28: commands in the first form.
        !            29: Thus
        !            30: .L "cp f1 f2 dir
        !            31: is equivalent to
        !            32: .LR "cp f1 dir/f1; cp f2 dir/f2" .
        !            33: .PP
        !            34: .I Cp
        !            35: copies the contents of plain
        !            36: .I file1
        !            37: to
        !            38: .IR file2 .
        !            39: The mode and owner of  
        !            40: .I file2
        !            41: are preserved if it already
        !            42: exists; the mode of
        !            43: .I file1
        !            44: is used otherwise.
        !            45: .PP
        !            46: .I Mv
        !            47: moves
        !            48: .I file1
        !            49: to
        !            50: .IR file2 .
        !            51: If the files are in the same directory, 
        !            52: .I file1
        !            53: is just renamed;
        !            54: otherwise
        !            55: .I mv
        !            56: behaves like
        !            57: .I cp
        !            58: followed by
        !            59: .IR rm .
        !            60: .I Mv
        !            61: will rename directories,
        !            62: but it refuses to move a directory into another directory.
        !            63: .SH SOURCE
        !            64: .B /sys/src/cmd/cp.c
        !            65: .br
        !            66: .B /sys/src/cmd/mv.c
        !            67: .SH "SEE ALSO"
        !            68: .IR cat (1),
        !            69: .IR stat (2)
        !            70: .SH DIAGNOSTICS
        !            71: .I Cp
        !            72: and
        !            73: .I mv
        !            74: refuse to copy or move files onto themselves.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.