Go2Linux | Linux Operating System

A site dedicated to: Linux Operating System

How to rename a file or folder (directory) in Linux

Date: 2011-04-26 00:00:00 -0400

Another small how-to today, let’s learn how to rename a file or folder (directory) in Linux.

The command you will need to rename is mv.

It is used the same in files or folders:

mv actual-file-name new-file-name

This will change the name from “actual-file-name” to “new-file-name”

It is the same with folders.

mv actual-folder-name new-folder-name

You of course need to be the owner of have permissions over the files and/or folders you are trying to rename.

If you liked this article please share it.

powered by TinyLetter

If you want to contact me in any other way, please use the contact page.