Mv
From FreeBSDwiki
(Difference between revisions)
Line 11: | Line 11: | ||
-n no-overwriting existing files -- cancels any previous -f switches | -n no-overwriting existing files -- cancels any previous -f switches | ||
-f force -- cancels out any previous -i or -n switches | -f force -- cancels out any previous -i or -n switches | ||
+ | [[Category:System Commands]] |
Revision as of 00:20, 24 December 2004
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