Liam Delahunty: Home Tips Web Contact
Recommended laptop
under £500

Think I deserve a present? See my Amazon Wish List

Linux - Using Move to Rename Files and Folders

Linux uses the mv (move) command to rename for either a directory (folder) or a file.

mv old_folder_name new_folder_name

mv also can move several files into a destination folder, or rename a single file.

Rename a file

mv old_file_name new_file_name

Rename a directory.

mv file_name destination_directory

Rename will retain the attributes and the creation date of the original file/folder.

See also: Linux - renaming multiple files in a directory

Share this!  

Linux Remove Duplicate Lines With Uniq | Linux Rename Directory | Linux Rename Files


  Tips | Home | Search | Contact

Link here: