Next: file commands removing, Previous: file commands copy, Up: file commands [Contents][Index]
Declare the commands required to move files and directories. Declaring the intention to use a program
The programs are: mv
.
Move the source, a file or directory, to target, a pathname. Additional arguments are handed to the command unchanged.
If source does not exist, or if it is not readable, an error is generated and the return value is 1. If target exists an error is generated and the return value is 1.
Move the source, a file or directory, into the directory target. Additional arguments are handed to the command unchanged.
If source does not exist, or if it is not readable, an error message is generated and the return value is 1. If target does not exist or it is not a directory: an error is generated and the return value is 1.
Next: file commands removing, Previous: file commands copy, Up: file commands [Contents][Index]