mv
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 $
Get Korn Shell Programming by Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.