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



Related Posts:

  • bzip2 bzip2 command examples To create a *.bz2 compressed file:   $ bzip2 test.txt To uncompress a *.bz2 file: bzip2 -d test.txt.bz2 Normal 0 false false false … Read More
  • awk v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} awk command examples  Remove duplicate lines using awk… Read More
  • cd cd command examples Use “cd -” to toggle between the last two directories Use “shopt -s cdspell” to automatically correct mistyped directory names on cd Normal 0 false false false EN-IN… Read More
  • Linux File System v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} The term filesystem has two somewhat different meanings, both … Read More
  • RHEL 6 Installation step by step (Linux) For installation of RHEL 6 (Redhat Enterprise Linux), first you need to insert bootable DVD or CD of rhel 6 32bit or 62bit (depending upon system configuration) and then reboot your system. After reboot, your sy… Read More

0 comments:

Post a Comment