{"id":21755,"date":"2023-10-01T03:07:05","date_gmt":"2023-10-01T03:07:05","guid":{"rendered":"https:\/\/linuxways.net\/?p=21755"},"modified":"2023-10-01T03:07:05","modified_gmt":"2023-10-01T03:07:05","slug":"how-do-you-rename-files-in-linux-ubuntu-in-bulk","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/linux-commands\/how-do-you-rename-files-in-linux-ubuntu-in-bulk\/","title":{"rendered":"\u200b\u200bHow do you Rename Files in Linux\/Ubuntu in Bulk?"},"content":{"rendered":"<p><strong>\u201cmv\u201d (move files) command<\/strong> is typically used in order to rename a single file in Linux\/Ubuntu.<\/p>\n<p>Sometimes, a user might have a requirement to <strong>rename the file in bulk. <\/strong>There are several command line utilities and graphical programs available for renaming files in bulk. This article will demonstrate the detailed process of renaming files in bulk on Linux\/Ubuntu 22.04 LTS using the following methods:<\/p>\n<ul>\n<li>Perl Rename Utility<\/li>\n<li>QMV<\/li>\n<li>MMV<\/li>\n<li>Thunar File Manager<\/li>\n<li>Ubuntus Default File Manager<\/li>\n<\/ul>\n<h2><a id=\"post-21755-_safi8e2say9k\"><\/a>How to Bulk Rename Files With Perl Rename Utility?<\/h2>\n<p><strong>Rename utility<\/strong> assists a user in renaming files in bulk. It is not pre-installed, however, it can be installed when needed. Before installing the rename utility, let\u2019s first, update the System repositories by executing the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> apt update<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"613\" class=\"wp-image-21756\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-1.png 2048w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-1-300x90.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-1-1024x307.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-1-768x230.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-1-1536x460.png 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/p>\n<p>Now run the below-stated command to install Rename Utility:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> rename<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"942\" class=\"wp-image-21757\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-2.png 2048w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-2-300x138.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-2-1024x471.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-2-768x353.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-2-1536x707.png 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/p>\n<p>From the above image, it can be seen that the rename utility is successfully installed. Now, it&#8217;s time to bulk rename files via Rename Utility.<\/p>\n<p>The following command replaces the occurrence of \u201creport\u201d in the file name to \u201cfile\u201d:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span>rename <span class=\"re5\">-v<\/span> <span class=\"st_h\">'s\/report\/file\/'<\/span> report1.txt report2.txt report3.txt report4.txt report5.txt<\/div><\/div>\n<p>From the below image, it can be verified that the files are renamed from report1.txt, report2.txt, report3.txt, report4.txt, and report5.txt to file1.txt, file2.txt, file3.txt file4.txt, and file5.txt.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"764\" class=\"wp-image-21758\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-3.png 2048w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-3-300x112.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-3-1024x382.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-3-768x287.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-3-1536x573.png 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/p>\n<p>Additionally, the name of the files can be converted to uppercase and lowercase via Rename Utility by the commands below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span>rename <span class=\"st_h\">'y\/a-z\/A-Z\/'<\/span> <span class=\"sy0\">*<\/span><\/div><\/div>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span>rename <span class=\"st_h\">'y\/A-Z\/a-z\/'<\/span> <span class=\"sy0\">*<\/span><\/div><\/div>\n<p>From the below image, it can be seen that files are successfully renamed from lower case to upper case and from upper case to lower case respectively.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"897\" class=\"wp-image-21759\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-4.png 2048w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-4-300x131.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-4-1024x449.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-4-768x336.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-4-1536x673.png 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/p>\n<h2><a id=\"post-21755-_ofets78kg01f\"><\/a>How to Bulk Rename Files With QMV?<\/h2>\n<p><strong>QMV (Quick Move) <\/strong>command allows to renaming of files and directories with ease using an editor. QMV is part of the \u201crenameutil\u201d package, which is not pre-installed in Ubuntu. Therefore in order to use qmv, the \u201crenameutils\u201d package is installed by running the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> renameutils<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"957\" class=\"wp-image-21760\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-5.png 2048w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-5-300x140.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-5-1024x479.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-5-768x359.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-5-1536x718.png 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/p>\n<p>From the above image, it can be seen that renameutils package is installed successfully.<\/p>\n<p>To rename the files in bulk, a user needs to navigate to the directory that contains the files to be renamed and then execute the qvm command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span>qmv<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"68\" class=\"wp-image-21761\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-6.png 2048w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-6-300x10.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-6-1024x34.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-6-768x26.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-6-1536x51.png 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/p>\n<p>The default editor is launched after qvm command is executed. There will be two columns. The left-hand side column contains the name of the files, while the right-hand side column can be edited to rename files in bulk.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1149\" class=\"wp-image-21762\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-7.png 2048w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-7-300x168.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-7-1024x575.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-7-768x431.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-7-1536x862.png 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/p>\n<p>The file can be saved by pressing Ctrl+X after the files are renamed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1125\" class=\"wp-image-21763\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-8.png 2048w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-8-300x165.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-8-1024x563.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-8-768x422.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-8-1536x844.png 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/p>\n<p>The bulk renaming process can be verified by the \u201cls\u201d command:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1127\" class=\"wp-image-21764\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-9.png 2048w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-9-300x165.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-9-1024x564.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-9-768x423.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-9-1536x845.png 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/p>\n<p>From the above image, it can be verified that the files are renamed from file1.txt, file2.txt, file3.txt file4.txt, and file5.txt to report1.txt, report2.txt, report3.txt, report4.txt, and report5.txt.<\/p>\n<h2><a id=\"post-21755-_cge6ezct8s65\"><\/a>How to Bulk Rename Files With MMV?<\/h2>\n<p><strong>Mmv<\/strong> utility allows to renaming of files in bulk. It does not come pre-installed in Ubuntu and can be installed using the below-stated command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> mmv<\/div><\/div>\n<p>From the below image, it can be seen that mmv utility is installed successfully.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"901\" class=\"wp-image-21766\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-10.png 2048w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-10-300x132.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-10-1024x451.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-10-768x338.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-10-1536x676.png 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/p>\n<p>The following command replaces the occurrence of \u201creport\u201d in the file name with \u201cfile\u201d:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span>mmv report\\<span class=\"sy0\">*<\/span> <span class=\"kw2\">file<\/span>\\<span class=\"co0\">#1<\/span><\/div><\/div>\n<p>From the below image, it can be verified that the files are renamed from report1.txt, report2.txt, report3.txt, report4.txt, and report5.txt to file1.txt, file2.txt, file3.txt file4.txt, and file5.txt.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"604\" class=\"wp-image-21767\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-11.png 2048w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-11-300x88.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-11-1024x302.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-11-768x227.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-11-1536x453.png 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/p>\n<h2><a id=\"post-21755-_4s9iq46t2vfn\"><\/a>How to Bulk Rename Files With Thunar File Manager?<\/h2>\n<p><strong>Thunar File Manager <\/strong>is a File Manager for Linux that contains a built-in rename operation. It is not pre-installed in Ubuntu and can be installed using the apt package as follows:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> thunar<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1125\" class=\"wp-image-21768\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-12.png 2048w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-12-300x165.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-12-1024x563.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-12-768x422.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-12-1536x844.png 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/p>\n<p>From the above image, it can be seen that Thunar File Manager is installed successfully.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1117\" class=\"wp-image-21769\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-13.png 2048w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-13-300x164.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-13-1024x559.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-13-768x419.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-13-1536x838.png 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/p>\n<p>It can be launched using the below-stated command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span>thunar <span class=\"re5\">-B<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1195\" class=\"wp-image-21770\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-14.png 2048w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-14-300x175.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-14-1024x598.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-14-768x448.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-14-1536x896.png 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/p>\n<p>The files that are to be renamed can be selected by using the \u201c+\u201d sign. This will re-direct to the directory:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1402\" class=\"wp-image-21771\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-15.png 2048w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-15-300x205.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-15-1024x701.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-15-768x526.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-15-1536x1052.png 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/p>\n<p>The files that are to be renamed in bulk are selected. The files will be loaded in the Thunar File Manager where there are several options for bulk-renaming like renaming by date, upper case, lower case, search and replace, numbering, etc:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1172\" height=\"1066\" class=\"wp-image-21772\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-16.png 1172w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-16-300x273.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-16-1024x931.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-16-768x699.png 768w\" sizes=\"auto, (max-width: 1172px) 100vw, 1172px\" \/><\/p>\n<p>For example, if files are to be named from file1.txt, file2.txt, file3.txt file4.txt, and file5.txt to report1.txt, report2.txt, report3.txt, report4.txt, and report5.txt, the search and replace option can be used to replace all the occurrences of file with the report and by pressing \u201cRename\u201d button:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1178\" height=\"1056\" class=\"wp-image-21773\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-17.png 1178w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-17-300x269.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-17-1024x918.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-17-768x688.png 768w\" sizes=\"auto, (max-width: 1178px) 100vw, 1178px\" \/><\/p>\n<p>We can verify if the files are remanded by running the \u201cls\u201d command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">ls<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"174\" class=\"wp-image-21774\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-18.png 2048w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-18-300x25.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-18-1024x87.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-18-768x65.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-18-1536x131.png 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/p>\n<p>From the above image, it can be verified that the files are renamed from file1.txt, file2.txt, file3.txt file4.txt, and file5.txt to report1.txt, report2.txt, report3.txt, report4.txt, and report5.tx.<\/p>\n<h2><a id=\"post-21755-_9dfqlyq03r4m\"><\/a>How to Bulk Rename Files with Ubuntu\u2019s Default File Manager?<\/h2>\n<p>Bulk renaming is performed by Ubuntu\u2019s default file manager by selecting the files with the mouse or keyboard and by selecting the \u201cRename\u201d option from the dropdown.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1870\" height=\"1102\" class=\"wp-image-21775\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-19.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-19.png 1870w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-19-300x177.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-19-1024x603.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-19-768x453.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-19-1536x905.png 1536w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-19-1020x600.png 1020w\" sizes=\"auto, (max-width: 1870px) 100vw, 1870px\" \/><\/p>\n<p>This will open a new window. For example, if files are to be renamed by bulk from \u201cfile1.txt\u201d, \u201cfile2.txt\u201d, \u201cfile3.txt\u201d, \u201cfile4.txt\u201d, and \u201cfile5.txt\u201d to \u201creport1.txt\u201d, \u201creport2.txt\u201d, \u201creport3.txt\u201d, \u201creport4.txt\u201d, and \u201creport5.txt\u201d, \u201cFind and Replace Text\u201d option can be selected. \u201cFile\u201d can be entered in the \u201cexisting text\u201d field while \u201creport\u201d can be entered in the \u201cReplace with\u201d field and the \u201cRename\u201d button will be pressed:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1212\" height=\"1020\" class=\"wp-image-21776\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-20.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-20.png 1212w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-20-300x252.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-20-1024x862.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-20-768x646.png 768w\" sizes=\"auto, (max-width: 1212px) 100vw, 1212px\" \/><\/p>\n<p>In order to verify the bulk renaming, we can access the Directory again:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1866\" height=\"1100\" class=\"wp-image-21777\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-21.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-21.png 1866w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-21-300x177.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-21-1024x604.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-21-768x453.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-21-1536x905.png 1536w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/10\/word-image-21755-21-1020x600.png 1020w\" sizes=\"auto, (max-width: 1866px) 100vw, 1866px\" \/><\/p>\n<p>From the above image, it can be verified that files are renamed from \u201cfile1.txt\u201d, \u201cfile2.txt\u201d, \u201cfile3.txt\u201d, \u201cfile4.txt\u201d, and \u201cfile5.txt\u201d to \u201creport1.txt\u201d, \u201creport2.txt\u201d, \u201creport3.txt\u201d, \u201creport4.txt\u201d, and \u201creport5.txt\u201d.<\/p>\n<h2><a id=\"post-21755-_k4r3ojha6hv3\"><\/a>Conclusion<\/h2>\n<p>Files can be renamed in bulk in the command line by using Remane, QMV, and MMV utilities while Graphically by Thunar File Manager and Ubuntu\u2019s Default File Manager. There are many other methods available for renaming the files in bulk on Linux\/Ubuntu 22.04 LTS but the five best methods are demonstrated in this article. A user can choose a program that best matches his requirements.<\/p>","protected":false},"excerpt":{"rendered":"<p>Files can be renamed in bulk in the terminal by using Rename, QMV, and MMV utilities while Graphically by Thunar File Manager and Ubuntu\u2019s Default File Manager. <\/p>","protected":false},"author":110,"featured_media":21765,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1049],"tags":[],"class_list":["post-21755","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-commands"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/21755","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=21755"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/21755\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/21765"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=21755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=21755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=21755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}