pavement

Mv

From FreeBSDwiki
Revision as of 00:20, 24 December 2004 by Jimbo (Talk | contribs)
Jump to: navigation, search

mv -- move. The equivalent of "rename", since on unix systems, a file's full location is the same thing as it's name.

Use:

samizdata# mv /home/dave/myfile /tmp/myfile

moves myfile from /home/dave/ to the /tmp/ directory

Common Flags

-v verbose
-i prompt before overwriting existing files 
-n no-overwriting existing files -- cancels any previous -f switches
-f force -- cancels out any previous -i or -n switches
Personal tools