Annotation of cci/usr/src/man/man1/mv.1, revision 1.1.1.1

1.1       root        1: .TH MV 1 "1 April 1981"
                      2: .UC 4
                      3: .SH NAME
                      4: mv \- move or rename files
                      5: .SH SYNOPSIS
                      6: .B mv
                      7: [
                      8: .B \-i
                      9: ] [
                     10: .B \-f
                     11: ] [
                     12: .B \-
                     13: ] file1 file2
                     14: .PP
                     15: .B mv
                     16: [
                     17: .B \-i
                     18: ] [
                     19: .B \-f
                     20: ] [
                     21: .B \-
                     22: ] file ... directory
                     23: .SH DESCRIPTION
                     24: .I Mv
                     25: moves (changes the name of)
                     26: .I file1
                     27: to
                     28: .IR file2 .
                     29: .PP
                     30: If
                     31: .I file2
                     32: already exists, it is removed before
                     33: .I file1
                     34: is moved.  If
                     35: .I file2
                     36: has a mode which forbids writing,
                     37: .I mv
                     38: prints the mode (see
                     39: .IR chmod (2))
                     40: and reads the standard input to obtain a line; if the line begins with
                     41: .B y,
                     42: the move takes place; if not,
                     43: .I mv
                     44: exits.
                     45: .PP
                     46: In the second form, one or more
                     47: .I files
                     48: (plain files or directories) are moved to the
                     49: .I directory
                     50: with their original file-names.
                     51: .PP
                     52: .I Mv
                     53: refuses to move a file onto itself.
                     54: .PP
                     55: Options:
                     56: .TP
                     57: .B \-i
                     58: stands for interactive mode. Whenever a move is to supercede an
                     59: existing file, the user is prompted by the name of the file
                     60: followed by a question mark. If he answers with a line starting
                     61: with 'y', the move continues. Any other reply prevents the move from
                     62: occurring.
                     63: .TP
                     64: .B \-f
                     65: stands for force. This option overrides any mode restrictions or the
                     66: \-i switch.
                     67: .TP
                     68: .B \-
                     69: means interpret all the following arguments to 
                     70: .I mv
                     71: as file names.  This allows file names starting with minus.
                     72: .SH "SEE ALSO"
                     73: cp(1), ln(1)
                     74: .SH BUGS
                     75: If
                     76: .I file1
                     77: and
                     78: .I file2
                     79: lie on different file systems,
                     80: .I mv
                     81: must copy the file and delete the original.
                     82: In this case the owner name becomes that of the copying process and any
                     83: linking relationship with other files is lost.

unix.superglobalmegacorp.com

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