February 2001
Beginner to intermediate
448 pages
9h 2m
English
Official Description
Moves (renames) files and directories.
Syntax
mv [-i | -f] [--] file1 file2
Options
-i prompts before renaming.
-- handles filenames beginning with -.
-f forces an override of restrictions.
Oddities
It cannot mv a file to itself.
Example
$ mv buzz buzz9 $ $ ls -l buzz ls: buzz: No such file or directory $ $ ls -l buzz9 -r-x-w-r-x 1 obrien obrien 47 Nov 26 12:19 buzz9 $
Read now
Unlock full access