How to Rename a File or Directory from a Linux Terminal

(0 votes, average 0 out of 5)

The easiest way to rename a file from a linux terminal is simply to move it to the same directory with a different name.

mv original_name.txt new_name.txt    

The example above will rename original_name.txt to new_name.txt.  The same syntax will also work for a directory.

Partner Links:
Last Updated on Tuesday, 14 February 2012 12:57  
Related Articles

» Cat5e vs. Cat6 Cables

What is the general difference between category 5e and category 6?The general difference between category 5e and category 6 is in the transmission performance, and extension of the available bandwidth from 100 MHz for category 5e to 200 MHz for category 6. This includes better insertion loss, near end crosstalk (NEXT), return loss, and equal level far end crosstalk (ELFEXT). These improvements provide a higher signal-to-noise ratio, allowing higher reliability for current applications...

» Customizing File Association in Emacs (based on file extension)

Occassionally it can be useful to have emacs automatically use a particular syntax highlighter based on file extension.  Typically this is useful when you want to use non-stnadard file extensions in your own environment.  You can get it to work by adding the following to your .emacs file (typically located in your home directory):;; Use perl syntax highlighter for .foo files.(setq auto-mode-alist (cons '(".*\.foo" . cperl-mode) auto-mode-alist))The above code would use the cperl...

» How to Enable Playback of MKV Files in Windows 7 Media Center

Back up your registry and create a system restore point. This is in case any problems arise in the process. the Windows 7 version of the codec pack. (The actual download is hosted by Major Geeks). When the download completes, install the codec pack.If you are running the 64-bit version of Windows 7, download and install those components as well. the MKV Registry Hack for your version of Windows 7 (32 or 64 bit).Double click the downloaded .reg file and allow the process to complete. This will...