{"id":68628,"date":"2023-09-01T18:01:19","date_gmt":"2023-09-01T10:01:19","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=68628"},"modified":"2023-09-03T16:48:47","modified_gmt":"2023-09-03T08:48:47","slug":"linux-command-rename","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/linux-command-rename\/","title":{"rendered":"How to Use the &#8216;rename&#8217; Command in Linux"},"content":{"rendered":"<p>The <code>rename<\/code> Linux command is designed to change the names of files and directories according to specified rules. It\u2019s not just a simple renaming utility; it allows users to perform bulk renaming operations using regular expressions, making it an essential command for system administrators and developers alike.<\/p>\n<p>Similar to the <code><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-mv\/\">mv<\/a><\/code> command, which is used to move or rename files, the <code>rename<\/code> command offers more flexibility and control. It\u2019s commonly used by IT professionals, such as system administrators, programmers, and data analysts, to manage large sets of files efficiently.<\/p>\n<h2>How to Install the <code>rename<\/code> Command<\/h2>\n<p>The availability of the <code>rename<\/code> command may vary depending on the Linux distribution. Below, I\u2019ll outline how to install and uninstall the <code>rename<\/code> command for some common distributions:<\/p>\n<p><strong>Debian-based systems (e.g., Ubuntu)<\/strong><\/p>\n<p>Install:<\/p>\n<pre>sudo apt-get update\r\nsudo apt-get install rename<\/pre>\n<p>Uninstall:<\/p>\n<pre>sudo apt-get remove rename<\/pre>\n<p><strong>RedHat-based systems (e.g., Fedora, CentOS)<\/strong><\/p>\n<p>Install:<\/p>\n<pre>sudo dnf install prename<\/pre>\n<p>Uninstall:<\/p>\n<pre>sudo dnf remove prename<\/pre>\n<p><strong>Arch Linux<\/strong><\/p>\n<p>Install:<\/p>\n<pre>sudo pacman -S perl-rename<\/pre>\n<p>Uninstall:<\/p>\n<pre>sudo pacman -R perl-rename<\/pre>\n<p><strong>openSUSE<\/strong><\/p>\n<p>Install:<\/p>\n<pre>sudo zypper install rename<\/pre>\n<p>Uninstall:<\/p>\n<pre>sudo zypper remove rename<\/pre>\n<h2>How to Use <code>rename<\/code><\/h2>\n<h3>1. Replace a string in filenames<\/h3>\n<p><strong>Syntax:<\/strong> <code>rename 's\/old\/new\/' *<\/code><\/p>\n<p><strong>Explanation<\/strong>: Replaces the string \u201cold\u201d with \u201cnew\u201d in all filenames in the current directory.<\/p>\n<p><strong>Example:<\/strong> <code>rename 's\/test\/demo\/' *<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\ntestfile1.txt renamed as demofile1.txt\r\ntestfile2.txt renamed as demofile2.txt\r\n<\/pre>\n<p>All files in the current directory that had <code>test<\/code> in their name now have that replaced with <code>demo<\/code>.<\/p>\n<hr>\n<h3>2. Add a prefix to filenames<\/h3>\n<p><strong>Syntax:<\/strong> <code>rename 's\/^\/prefix_\/' *<\/code><\/p>\n<p><strong>Explanation<\/strong>: Adds \u201cprefix_\u201d to the beginning of all filenames in the current directory.<\/p>\n<p><strong>Example:<\/strong> <code>rename 's\/^\/sample_\/' *<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\nfile1.txt renamed as sample_file1.txt\r\nfile2.txt renamed as sample_file2.txt\r\n<\/pre>\n<p>All files in the current directory now start with the prefix <code>sample_<\/code>.<\/p>\n<hr>\n<h3>3. Remove a file extension<\/h3>\n<p><strong>Syntax:<\/strong> <code>rename 's\/\\.ext$\/\/' *<\/code><\/p>\n<p><strong>Explanation<\/strong>: Removes the \u201c.ext\u201d file extension from all matching filenames in the current directory.<\/p>\n<p><strong>Example:<\/strong> <code>rename 's\/\\.txt$\/\/' *<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\ndocument.txt renamed as document\r\nnotes.txt renamed as notes\r\n<\/pre>\n<p>All <code>.txt<\/code> extensions from files in the current directory have been removed.<\/p>\n<hr>\n<h3>4. Convert filenames to lowercase<\/h3>\n<p><strong>Syntax:<\/strong> <code>rename 'y\/A-Z\/a-z\/' *<\/code><\/p>\n<p><strong>Explanation<\/strong>: Converts all uppercase letters in filenames to lowercase in the current directory.<\/p>\n<p><strong>Example:<\/strong> <code>rename 'y\/A-Z\/a-z\/' *<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\nFILE1.TXT renamed as file1.txt\r\nFILE2.TXT renamed as file2.txt\r\n<\/pre>\n<p>All filenames in the current directory that had uppercase letters are now in lowercase.<\/p>\n<hr>\n<h3>5. Change file extension<\/h3>\n<p><strong>Syntax:<\/strong> <code>rename 's\/\\.oldext$\/.newext\/' *<\/code><\/p>\n<p><strong>Explanation<\/strong>: Changes the file extension from \u201c.oldext\u201d to \u201c.newext\u201d for all matching filenames in the current directory.<\/p>\n<p><strong>Example:<\/strong> <code>rename 's\/\\.jpg$\/.png\/' *<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\nimage1.jpg renamed as image1.png\r\nimage2.jpg renamed as image2.png\r\n<\/pre>\n<p>All <code>.jpg<\/code> extensions from files in the current directory have been changed to <code>.png<\/code>.<\/p>\n<hr>\n<h3>6. Remove a suffix from filenames<\/h3>\n<p><strong>Syntax:<\/strong> <code>rename 's\/suffix$\/\/' *<\/code><\/p>\n<p><strong>Explanation<\/strong>: Removes \u201csuffix\u201d from the end of all filenames in the current directory.<\/p>\n<p><strong>Example:<\/strong> <code>rename 's\/_backup$\/\/' *<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\nfile1_backup.txt renamed as file1.txt\r\nfile2_backup.txt renamed as file2.txt\r\n<\/pre>\n<p>All files in the current directory that ended with <code>_backup<\/code> now have that suffix removed.<\/p>\n<hr>\n<h3>7. Replace spaces with underscores in filenames<\/h3>\n<p><strong>Syntax:<\/strong> <code>rename 's\/ \/_\/' *<\/code><\/p>\n<p><strong>Explanation<\/strong>: Replaces all spaces with underscores in filenames in the current directory.<\/p>\n<p><strong>Example:<\/strong> <code>rename 's\/ \/_\/' *<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\nmy file.txt renamed as my_file.txt\r\nanother file.txt renamed as another_file.txt\r\n<\/pre>\n<p>All filenames in the current directory that had spaces now have those spaces replaced with underscores.<\/p>\n<hr>\n<h3>8. Add a suffix to filenames without changing the extension<\/h3>\n<p><strong>Syntax:<\/strong> <code>rename 's\/(\\.\\w+)$\/_suffix$1\/' *<\/code><\/p>\n<p><strong>Explanation<\/strong>: Adds \u201c_suffix\u201d before the file extension for all filenames in the current directory.<\/p>\n<p><strong>Example:<\/strong> <code>rename 's\/(\\.\\w+)$\/_edited$1\/' *<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\nfile1.txt renamed as file1_edited.txt\r\nfile2.jpg renamed as file2_edited.jpg\r\n<\/pre>\n<p>All files in the current directory now have <code>_edited<\/code> added before the file extension.<\/p>\n<hr>\n<h3 style=\"padding-bottom:10px\">More Linux commands:<\/h3>\n<table>\n<tbody>\n<tr>\n<td width=\"150\">Directory Operations<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-rm-rmdir\/\"><code>rmdir<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-cd\/\"><code>cd<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-pwd\/\"><code>pwd<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-exa\/\"><code>exa<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ls\/\"><code>ls<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">File Operations<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-cat\/\"><code>cat<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-cp\/\"><code>cp<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-dd\/\"><code>dd<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-less\/\"><code>less<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-touch\/\"><code>touch<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ln\/\"><code>ln<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-rename\/\"><code>rename<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-more\/\"><code>more<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-head\/\"><code>head<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">File System Operations<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-chown\/\"><code>chown<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-mkfs\/\"><code>mkfs<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-locate\/\"><code>locate<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">Networking<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ping\/\"><code>ping<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-curl\/\"><code>curl<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-wget\/\"><code>wget<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-iptables\/\"><code>iptables<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-mtr\/\"><code>mtr<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">Search and Text Processing<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-find\/\"><code>find<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-grep\/\"><code>grep<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-sed\/\"><code>sed<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-whatis\/\"><code>whatis<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ripgrep\/\"><code>ripgrep<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-fd\/\"><code>fd<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-tldr\/\"><code>tldr<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">System Information and Management<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-env\/\"><code>env<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-history\/\"><code>history<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-top\/\"><code>top<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-who\/\"><code>who<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-htop\/\"><code>htop<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-glances\/\"><code>glances<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-lsof\/\"><code>lsof<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">User and Session Management<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-screen\/\"><code>screen<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-su\/\"><code>su<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-sudo\/\"><code>sudo<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-open\/\"><code>open<\/code><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>","protected":false},"excerpt":{"rendered":"<p>Get hands-on with Linux&#8217;s &#8216;rename&#8217; command for efficient bulk file management.<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3397],"tags":[888,3316],"topic":[],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Use the &#039;rename&#039; Command in Linux - Hongkiat<\/title>\n<meta name=\"description\" content=\"Get hands-on with Linux&#039;s &#039;rename&#039; command for efficient bulk file management.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-rename\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use the &#039;rename&#039; Command in Linux\" \/>\n<meta property=\"og:description\" content=\"Get hands-on with Linux&#039;s &#039;rename&#039; command for efficient bulk file management.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/linux-command-rename\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-01T10:01:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-03T08:48:47+00:00\" \/>\n<meta name=\"author\" content=\"Hongkiat.com\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hongkiat.com\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-rename\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-rename\\\/\"},\"author\":{\"name\":\"Hongkiat.com\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/7cc686597d92f9086729e4bcc1577ba3\"},\"headline\":\"How to Use the &#8216;rename&#8217; Command in Linux\",\"datePublished\":\"2023-09-01T10:01:19+00:00\",\"dateModified\":\"2023-09-03T08:48:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-rename\\\/\"},\"wordCount\":436,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"keywords\":[\"Linux\",\"Linux Commands\"],\"articleSection\":[\"Desktop\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-rename\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-rename\\\/\",\"name\":\"How to Use the 'rename' Command in Linux - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"datePublished\":\"2023-09-01T10:01:19+00:00\",\"dateModified\":\"2023-09-03T08:48:47+00:00\",\"description\":\"Get hands-on with Linux's 'rename' command for efficient bulk file management.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-rename\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-rename\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-rename\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Use the &#8216;rename&#8217; Command in Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/7cc686597d92f9086729e4bcc1577ba3\",\"name\":\"Hongkiat.com\",\"description\":\"This post is published by an HKDC (hongkiat.com) staff. (I.e., intern, staff writer, or editor).\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Use the 'rename' Command in Linux - Hongkiat","description":"Get hands-on with Linux's 'rename' command for efficient bulk file management.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/linux-command-rename\/","og_locale":"en_US","og_type":"article","og_title":"How to Use the 'rename' Command in Linux","og_description":"Get hands-on with Linux's 'rename' command for efficient bulk file management.","og_url":"https:\/\/www.hongkiat.com\/blog\/linux-command-rename\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2023-09-01T10:01:19+00:00","article_modified_time":"2023-09-03T08:48:47+00:00","author":"Hongkiat.com","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Hongkiat.com","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-rename\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-rename\/"},"author":{"name":"Hongkiat.com","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/7cc686597d92f9086729e4bcc1577ba3"},"headline":"How to Use the &#8216;rename&#8217; Command in Linux","datePublished":"2023-09-01T10:01:19+00:00","dateModified":"2023-09-03T08:48:47+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-rename\/"},"wordCount":436,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"keywords":["Linux","Linux Commands"],"articleSection":["Desktop"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-rename\/","url":"https:\/\/www.hongkiat.com\/blog\/linux-command-rename\/","name":"How to Use the 'rename' Command in Linux - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"datePublished":"2023-09-01T10:01:19+00:00","dateModified":"2023-09-03T08:48:47+00:00","description":"Get hands-on with Linux's 'rename' command for efficient bulk file management.","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-rename\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/linux-command-rename\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-rename\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Use the &#8216;rename&#8217; Command in Linux"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/7cc686597d92f9086729e4bcc1577ba3","name":"Hongkiat.com","description":"This post is published by an HKDC (hongkiat.com) staff. (I.e., intern, staff writer, or editor).","sameAs":["https:\/\/www.hongkiat.com"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/com\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-hQU","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/68628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=68628"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/68628\/revisions"}],"predecessor-version":[{"id":69047,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/68628\/revisions\/69047"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=68628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=68628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=68628"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=68628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}