Home Linux How to rename files and folders using the command line in Linux?
 
 
 

How to rename files and folders using the command line in Linux?

PDF Print E-mail

Question: How to rename files and folders using the command line in Linux?

 

Answer:

We accomplish this by using the "mv" (move command)

Example:

File Example:

mv old_file new_file

Directory Example:

mv old_directory new_directory

NOTE: 

  • mv can move several files into a destination folder, or a single file.
  • mv renaming will contain the original attributes of the file or directory and also the creation date of the original file or folder
+/-
+/- Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
Security Please input the anti-spam code that you can read in the image.
 

Go Daddy $7.49 .com Sale!