ubuntu
Change directory name or rename a directory in Ubuntu
If you want to change the directory name or want to rename a folder in ubuntu you can use mv command for that.
# Rename directory on current path
----------------------------------------------
mv old_dir_name new_dir_name
# Rename directory using directory path
----------------------------------------------
mv /var/etc/old_dir_name /var/etc/new_dir_name
# Second method - gvfs-move command
----------------------------------------------
gvfs-move /home/user/old_dir_name /home/user/new_dir_name
Was this helpful?
Similar Posts
- Copy a directory along with its content to another directory in Ubuntu
- Create a new directory or folder in Ubuntu
- Remove or Delete a folder or directory in Ubuntu
- Find all empty directories in a directory in Ubuntu
- Delete all empty directories in a directory in Ubuntu
- Get total size of a directory or folder in Ubuntu
- Extract, decompress or unzip a zip file in Ubuntu