How do I rename a folder under UNIX operating systems using a command line tools?
You need to use the mv command to rename a folder under UNIX operating systems. You must have write permission for all folders.
Syntax
The syntax is as follows:
mv old-folder-name new-folder-name mv /path/to/old /path/to/new
Example
In this example, a folder called drivers is renamed as olddrivers. Open a terminal (shell prompt) and type the following commands:
ls mv drivers oldrivers ls
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- My 10 UNIX Command Line Mistakes
- Linux: 20 Iptables Examples For New SysAdmins

- 25 PHP Security Best Practices For Sys Admins
- The Novice Guide To Buying A Linux Laptop
- 10 Greatest Open Source Software Of 2009
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
Facebook it - Tweet it - Print it -


{ 1 comment… read it below or add one }
I how do I move a file or folder into another directory? I have tried mv file.rtf ~/Documents mv ~/file.rtf ~/Documents and mv ~/file.rtf ~/Documents/ none of these work.