You need to use mv command. The syntax is as follows:
mv old-file-name new-file-name
To rename a file called resume.docz to resume.doc, run:
mv resume.docz resume.doc ls -l resume.doc
To rename file extension from .txt to .doc, enter:
mv foo.txt foo.doc ls -l foo.doc ## error ## ls -l foo.txt
To fix the extension of all your .txt files, enter::
rename .txt .doc *.txt
The above command will rename all *.txt files to *.doc i.e. fix the extension of your txt files.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop


![HowTo: Use grep Command In Linux / UNIX [ Examples ]](http://s0.cyberciti.org/images/rp/1/22.jpg)


![Linux Copy File Command [ cp Command Examples ]](http://s0.cyberciti.org/images/rp/1/23.jpg)






{ 0 comments… add one now }