Unix and Linux Discussions Tagged with move files |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
66,034 |
Shell Programming and Scripting |
|
|
|
7 |
104,162 |
Shell Programming and Scripting |
|
|
|
14 |
11,737 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
5,918 |
Shell Programming and Scripting |
|
|
|
6 |
6,896 |
Shell Programming and Scripting |
|
|
|
7 |
2,218 |
Shell Programming and Scripting |
|
|
|
7 |
14,512 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
4,268 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
5,607 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
15,569 |
Shell Programming and Scripting |
|
|
|
1 |
7,287 |
Shell Programming and Scripting |
|
|
|
0 |
2,856 |
AIX |
|
|
|
8 |
7,211 |
IP Networking |
|
|
|
8 |
44,904 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,501 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,477 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
4,847 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
2,553 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,230 |
UNIX for Dummies Questions & Answers |
MV(1) General Commands Manual MV(1)
NAME
mv - move or rename files
SYNOPSIS
mv [ -i ] [ -f ] [ - ] file1 file2
mv [ -i ] [ -f ] [ - ] file ... directory
DESCRIPTION
Mv moves (changes the name of) file1 to file2.
If file2 already exists, it is removed before file1 is moved. If file2 has a mode which forbids writing, mv prints the mode (see chmod(2))
and reads the standard input to obtain a line; if the line begins with y, the move takes place; if not, mv exits.
In the second form, one or more files (plain files or directories) are moved to the directory with their original file-names.
Mv refuses to move a file onto itself.
Options:
-i stands for interactive mode. Whenever a move is to supercede an existing file, the user is prompted by the name of the file followed
by a question mark. If he answers with a line starting with 'y', the move continues. Any other reply prevents the move from occur-
ring.
-f stands for force. This option overrides any mode restrictions or the -i switch.
- means interpret all the following arguments to mv as file names. This allows file names starting with minus.
SEE ALSO
cp(1), ln(1)
BUGS
If file1 and file2 lie on different file systems, mv must copy the file and delete the original. In this case the owner name becomes that
of the copying process and any linking relationship with other files is lost.
4th Berkeley Distribution April 29, 1985 MV(1)