The steps for renaming files on Windows, macOS or Chrome OS are quite simple, so what about Linux. In the article below, Betdownload.com will show you some ways to rename files on Linux in the simplest way.
Renaming files on Linux is much easier than you think. The default file manager has many functions, including file renaming. Refer to the following article of Taimienphi.vn to learn some ways to rename files on Linux.
Rename the file on Linux using the file manager
In case you want to rename a file to make it easier to remember, such as important files to not get mixed with other files on Linux. If you’re using standard versions of Ubuntu or Fedora, two popular Linux versions, the desktop interface you see is called GNOME.
On Gnome, you can rename multiple files at once by dragging the cursor to select those files, right-click on them and select Rename. The following window will display options for allowing the file to be renamed using a template or swapped for text strings.
Alternatively, you can use a file manager like KDE or Xfce to rename the file.
Use pyRenamer to rename the file on Linux
Depending on your needs, if you want, you can rely on the assistance of advanced programs and tools to rename files. The tool that Taimienphi.vn wants to mention here is pyRenamer.
Download pyRenamer to your device and install it here: Download pyRenamer
On the pyRenamer window, the left pane to browse for folders and the right pane to select files, the middle pane shows how the files look before and after renaming. In addition to the right pane, there are options that allow users to leave the extension unchanged and preview the extension extension automatically.
The options below allow users to enter the name pattern they want to see, hover the cursor over the text boxes to see the templates that can be used. These options include numbers, creation dates, times, image metadata, and audio tags.
To save the template, just click the icon Save located next to the frames. The adjacent icon allows you to open existing templates, so you don’t need to remember the complicated formulas used to rename music or image files.
To install pyRenamer on Ubuntu or Ubuntu-based distributions, all you need to do is open Terminal and enter the following command:
sudo apt-get install pyrenamer
Rename the file on Linux with KRename
pyRenamer is suitable for Linux computers, and if you are using a KDE Plasma computer, you will certainly like the application written in Qt programming language like KRename instead. Software like this tends to integrate better with the rest of the interface.
Basically the functions of Krename are similar to pyRenamer, except that the interface card is easier to navigate.
Download Krename to your device and install it here: Download Krename
To enable advanced features, such as the ability to translate file names from other languages into English, we can rely on the help of 3rd party plugins. Thanks to the integrated KDE programs Together, users can easily access KRename from Dolphin, the default file manager on Linux.
To install Krename on Ubuntu or Ubuntu-based distributions, open Terminal and enter the following command:
sudo apt-get install krename
Rename files on Linux via Terminal
The Terminal commands on Linux distributions are quite similar. The rename commands below work on all Linux-based operating systems or computer environments, even on servers.
Use the “mv” command to rename the file on Linux
The easiest way to rename files on Linux via Terminal is to use the “mv“.” mv “stands for moving files, this command is used to move files. Technically, you can move data from one file name to another. For example:
mv / home / user / Downloads / old-file-name / home / user / Downloads / new-file-name
Alternatively, you can open or navigate the Terminal to a file folder:
cd / home / user / Downloads /
mv old-file-name new-file-name
Note: If you really want to move files using the mv command, instead of entering a new file name, you enter the destination directory instead.
mv / home / user / Downloads / old-file-name / home / user / Documents /
Use the “rename” command to rename the file on Linux
Renaming each file takes time and makes you feel tedious. In this case you can use the command rename instead.
Suppose if you want to convert a series of text files (TXT) into Markdown files (MD). First we use the cd command to access the relevant directory (or alternatively right-click => open in Terminal). Then enter the following command:
rename .txt .md *
Sign * said search all files in the directory. To explicitly restrict the search for files ending with the .txt extension, we use the following command:
rename .txt .md * .txt
The above commands will not notify you of the changes that have been made, instead you will have to open the folder and check for yourself. If you want to confirm on the Terminal window, you can add -v on command.
rename -v .txt .md *
Technically, you can also use the rename command to rename a file, but you must enter the command longer than the mv command. For example:
rename old-file-name new-file-name old-file-name
Repeat the original file name at the end, instead of using the sign *, the command notification only takes action on a specific file.
The above article Taimienphi.vn has shown you some ways to rename files on Linux. In addition, if you have any questions or questions, you can leave your comments in the comment section below the article. Where to use Macbook, you refer to the way Rename the file on Mac here.