Saturday, April 26, 2014

mv

  •   mv command examples


Rename file1 to file2. if file2 exists prompt for confirmation before overwritting it.
$ mv -i file1 file2


Note: mv -f is just the opposite, which will overwrite file2 without prompting.
mv -v will print what is happening during file rename, which is useful while specifying shell metacharacters in the file name argument.
$ mv -v file1 file2



0 comments:

Post a Comment