{"id":2130,"date":"2024-04-30T12:30:00","date_gmt":"2024-04-30T17:30:00","guid":{"rendered":"https:\/\/www.linuxcloudvps.com\/blog\/?p=2130"},"modified":"2024-03-25T06:04:13","modified_gmt":"2024-03-25T11:04:13","slug":"how-to-rename-files-in-linux","status":"publish","type":"post","link":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-rename-files-in-linux\/","title":{"rendered":"How to rename a file in Linux (using mv, rename, mmv)"},"content":{"rendered":"\n<p>This blog post teaches you how to rename a file in Linux using multiple methods and commands.<\/p>\n\n\n\n<p>Renaming files is a widespread process in the workday of a system administrator, developer, or regular Linux user. Renaming helps us keep a copy of the files and temporarily use other names while working on the server. The Linux operating system offers renaming files or directories via GUI, but when we are using or working on a server where <a href=\"https:\/\/www.linuxcloudvps.com\/cloud-vps.html\" target=\"_blank\" rel=\"noreferrer noopener\">hosted websites<\/a> are located, we need to know the most used commands for renaming.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>In the next paragraphs we will explain with examples three different commands for renaming files: <b>mv<\/b>, <b>rename<\/b>, and <b>mmv<\/b>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A server running Ubuntu 22.04 or any Linux OS (CentOS, Debian, or AlmaLinux)<\/li>\n\n\n\n<li>User privileges: root or non-root user with sudo privileges<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Rename a file in Lunix using the <b>mv<\/b> command<\/h2>\n\n\n\n<p>The <b>mv<\/b> command is a shortcut of the &#8220;move&#8221; and is one of the most used commands for moving files and directories between different paths. It is also a simple method of how to rename a file in Linux, which is the purpose of this blog post. The syntax of the <b>mv<\/b> is the following:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> \nmv [OPTION]... [-T] SOURCE DEST\nmv [OPTION]... SOURCE... DIRECTORY\nmv [OPTION]... -t DIRECTORY SOURCE.\n<\/pre>\n\n\n\n<p>Let&#8217;s rename a text file using the <b>mv<\/b> command. List the content of the current directory:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:\/var\/www\/html# ls -al\ntotal 8\ndrwxr-xr-x 2 root root 4096 Mar  2 09:41 .\ndrwxr-xr-x 3 root root 4096 Mar  2 09:13 ..\n-rw-r--r-- 1 root root    0 Mar  2 09:41 test.txt\n<\/pre>\n\n\n\n<p>To rename the <b>test.txt<\/b> file, execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mv test.txt test-renamed.txt<\/pre>\n\n\n\n<p>List the content of the directory again:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">-rw-r--r-- 1 root root 0 Mar  2 09:41 test-renamed.txt<\/pre>\n\n\n\n<p>If you go one level up you can rename the <b>html<\/b> directory as well:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mv html html.backup<\/pre>\n\n\n\n<p>The <b>mv<\/b> command will apply to files and folders:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">drwxr-xr-x  2 root root 4096 Mar  2 05:43 html.backup<\/pre>\n\n\n\n<p>Next example is to move, the file or directory to a different location on your server. Let&#8217;s move the html.backup to a different location:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mv html.backup\/ \/opt\/<\/pre>\n\n\n\n<p>List the content of the <b>opt<\/b> directory:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:\/var\/www# ls -al \/opt\/\ndrwxr-xr-x  2 root root 4096 Mar  2 09:43 html.backup\n<\/pre>\n\n\n\n<p>There are plenty of options that you can use with the <b>mv<\/b> command, such as:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">-i Before overwriting we get a prompt\n-f Overwrite without warning and prompting\n-v Shows a verbose output\n<\/pre>\n\n\n\n<p>For more information about the <b>mv<\/b> command, you can check by executing the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">man mv<\/pre>\n\n\n\n<p>You will get a very long description of the <b>mv<\/b> command as an output.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Rename a file in Lunix using the <b>rename<\/b> command<\/h2>\n\n\n\n<p>To use the rename command, we need to install the <b>rename<\/b> package first with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt install rename<\/pre>\n\n\n\n<p>Once installed, you can check the version with the command below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rename -V<\/pre>\n\n\n\n<p>You will get output similar to this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:# rename -V\n\/usr\/bin\/rename using File::Rename version 1.30, File::Rename::Options version 1.10\n<\/pre>\n\n\n\n<p>The syntax for the <b>rename<\/b> command is the following:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rename [options] 's\/[pattern]\/[replacement]\/' [file name]<\/pre>\n\n\n\n<p>Let&#8217;s say that we have three different text files:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:\/var\/www# ls -al\n-rw-r--r--  1 root root    0 Mar  2 10:38 file1.txt\n-rw-r--r--  1 root root    0 Mar  2 10:38 file2.txt\n-rw-r--r--  1 root root    0 Mar  2 10:38 file3.txt\n<\/pre>\n\n\n\n<p>To rename all these files with the <b>rename<\/b> you need to execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rename 's\/txt\/backup\/' *.txt<\/pre>\n\n\n\n<p>If you list the content now, you will see the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:\/var\/www# ls -al\n-rw-r--r--  1 root root    0 Mar  2 10:38 file1.backup\n-rw-r--r--  1 root root    0 Mar  2 10:38 file2.backup\n-rw-r--r--  1 root root    0 Mar  2 10:38 file3.backup\n<\/pre>\n\n\n\n<p>To know more about the rename command you can execute the <b>man rename<\/b> in your command line.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:# man rename\nRENAME(1p)                                                      User Contributed Perl Documentation                                                      RENAME(1p)\n\nNAME\n       rename - renames multiple files\n\nSYNOPSIS\n       rename [ -h|-m|-V ] [ -v ] [ -0 ] [ -n ] [ -f ] [ -d ] [ -u [enc]] [ -e|-E perlexpr]*|perlexpr [ files ]\n\nDESCRIPTION\n       \"rename\" renames the filenames supplied according to the rule specified as the first argument.  The perlexpr argument is a Perl expression which is expected\n       to modify the $_ string in Perl for at least some of the filenames specified.  If a given filename is not modified by the expression, it will not be\n       renamed.  If no filenames are given on the command line, filenames will be read via standard input.\n\n   Examples (Larry Wall,  1992)\n       For example, to rename all files matching \"*.bak\" to strip the extension, you might say\n\n               rename 's\/\\.bak$\/\/' *.bak\n\n       To translate uppercase names to lower, you'd use\n\n               rename 'y\/A-Z\/a-z\/' *\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Rename a file in Lunix using the <b>mmv<\/b> command<\/h2>\n\n\n\n<p>The <b>mmv<\/b> command is used for moving, copying, appending, and linking source files to the target file specified with the pattern.<\/p>\n\n\n\n<p>If we want to use the <b>mmv<\/b> command we need to install the mmv packet first.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt install mmv<\/pre>\n\n\n\n<p>The syntax of the <b>mmv<\/b> command is the following one:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mmv [-m|x|r|c|o|a|l|s] [-h] [-d|p] [-g|t] [-v|n] [--] [from to]<\/pre>\n\n\n\n<p>The usage is simple. To rename the <b>file1.backup<\/b> file back to <b>file1.txt<\/b> execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> mmv file1.backup file1.txt<\/pre>\n\n\n\n<p>If you want to know more information about this command, you can execute <b>man mmv<\/b> command in your prompt:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:\/var\/www# man mmv\nMMV(1)                                                                General Commands Manual                                                                MMV(1)\n\nNAME\n       mmv - move\/copy\/append\/link multiple files by wildcard patterns\n\nSYNOPSIS\n       mmv [-m|x|r|c|o|a|l|s] [-h] [-d|p] [-g|t] [-v|n] [--] [from to]\n\nEXAMPLES\n       Rename all *.jpeg files in the current directory to *.jpg:\n\n          mmv '*.jpeg' '#1.jpg'\n\n       Replace the first occurrence of abc with xyz in all files in the current directory:\n\n          mmv '*abc*' '#1xyz#2'\n\n       Rename files ending in .html.en, .html.de, etc. to ending in .en.html, .de.html, etc. in the current directory:\n\n          mmv '*.html.??' '#1.#2#3.html'\n\n       Rename music files from <track no.=\"\"> - <interpreter> - <song title=\"\">.ogg to <interpreter> - <track no.=\"\"> - <song title=\"\">.ogg in the current directory:\n\n          mmv '* - * - *.ogg' '#2 - #1 - #3.ogg'\n<\/song><\/interpreter><\/song><\/interpreter><\/pre>\n\n\n\n<p>That&#8217;s it. You successfully renamed files and directories using different methods and commands.<\/p>\n\n\n\n<p>PS. If you liked this post on how to rename files in Linux, please share it with your friends on social networks or simply leave a comment in the comments section. Thank you.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This blog post teaches you how to rename a file in Linux using multiple methods and commands. Renaming files is a widespread process in the workday of a system administrator, developer, or regular Linux user. Renaming helps us keep a copy of the files and temporarily use other names while working on the server. The &#8230; <a title=\"How to rename a file in Linux (using mv, rename, mmv)\" class=\"read-more\" href=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-rename-files-in-linux\/\" aria-label=\"More on How to rename a file in Linux (using mv, rename, mmv)\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":2148,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[260,13],"tags":[118,27,298],"class_list":["post-2130","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-tutorials","tag-how-to","tag-linux","tag-rename-files"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Rename a File in Linux using mv, rename &amp; mmv | LCVPS<\/title>\n<meta name=\"description\" content=\"Learn how to quickly and easily rename a file in Linux using mv, rename and mmv commands by following the LinuxCloudVPS step-by-step guide.\" \/>\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.linuxcloudvps.com\/blog\/how-to-rename-files-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Rename a File in Linux using mv, rename &amp; mmv | LCVPS\" \/>\n<meta property=\"og:description\" content=\"Learn how to quickly and easily rename a file in Linux using mv, rename and mmv commands by following the LinuxCloudVPS step-by-step guide.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-rename-files-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxCloudVPS Blog\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/LinuxCloudVPS\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-30T17:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/03\/how-to-rename-files-in-linux-mv-rename-mmv.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@LinuxCloudVPS\" \/>\n<meta name=\"twitter:site\" content=\"@LinuxCloudVPS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\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.linuxcloudvps.com\\\/blog\\\/how-to-rename-files-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-rename-files-in-linux\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/person\\\/ed907227ee7d151c617e6d0fe74f531a\"},\"headline\":\"How to rename a file in Linux (using mv, rename, mmv)\",\"datePublished\":\"2024-04-30T17:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-rename-files-in-linux\\\/\"},\"wordCount\":587,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-rename-files-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/how-to-rename-files-in-linux-mv-rename-mmv.webp\",\"keywords\":[\"how to\",\"linux\",\"rename files\"],\"articleSection\":[\"Linux\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-rename-files-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-rename-files-in-linux\\\/\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-rename-files-in-linux\\\/\",\"name\":\"How to Rename a File in Linux using mv, rename & mmv | LCVPS\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-rename-files-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-rename-files-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/how-to-rename-files-in-linux-mv-rename-mmv.webp\",\"datePublished\":\"2024-04-30T17:30:00+00:00\",\"description\":\"Learn how to quickly and easily rename a file in Linux using mv, rename and mmv commands by following the LinuxCloudVPS step-by-step guide.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-rename-files-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-rename-files-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-rename-files-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/how-to-rename-files-in-linux-mv-rename-mmv.webp\",\"contentUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/how-to-rename-files-in-linux-mv-rename-mmv.webp\",\"width\":742,\"height\":410,\"caption\":\"How to rename files in Linux (using mv, rename, mmv)\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-rename-files-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to rename a file in Linux (using mv, rename, mmv)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\",\"name\":\"LinuxCloudVPS\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\",\"name\":\"LinuxCloudVPS\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/logo.png\",\"width\":217,\"height\":25,\"caption\":\"LinuxCloudVPS\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"http:\\\/\\\/www.facebook.com\\\/LinuxCloudVPS\",\"https:\\\/\\\/x.com\\\/LinuxCloudVPS\",\"http:\\\/\\\/www.linkedin.com\\\/company\\\/linuxcloudvps-com\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/person\\\/ed907227ee7d151c617e6d0fe74f531a\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/www.linuxcloudvps.com\\\/\"],\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Rename a File in Linux using mv, rename & mmv | LCVPS","description":"Learn how to quickly and easily rename a file in Linux using mv, rename and mmv commands by following the LinuxCloudVPS step-by-step guide.","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.linuxcloudvps.com\/blog\/how-to-rename-files-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Rename a File in Linux using mv, rename & mmv | LCVPS","og_description":"Learn how to quickly and easily rename a file in Linux using mv, rename and mmv commands by following the LinuxCloudVPS step-by-step guide.","og_url":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-rename-files-in-linux\/","og_site_name":"LinuxCloudVPS Blog","article_publisher":"http:\/\/www.facebook.com\/LinuxCloudVPS","article_published_time":"2024-04-30T17:30:00+00:00","og_image":[{"width":742,"height":410,"url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/03\/how-to-rename-files-in-linux-mv-rename-mmv.webp","type":"image\/webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@LinuxCloudVPS","twitter_site":"@LinuxCloudVPS","twitter_misc":{"Written by":"admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-rename-files-in-linux\/#article","isPartOf":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-rename-files-in-linux\/"},"author":{"name":"admin","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/person\/ed907227ee7d151c617e6d0fe74f531a"},"headline":"How to rename a file in Linux (using mv, rename, mmv)","datePublished":"2024-04-30T17:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-rename-files-in-linux\/"},"wordCount":587,"commentCount":0,"publisher":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-rename-files-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/03\/how-to-rename-files-in-linux-mv-rename-mmv.webp","keywords":["how to","linux","rename files"],"articleSection":["Linux","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.linuxcloudvps.com\/blog\/how-to-rename-files-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-rename-files-in-linux\/","url":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-rename-files-in-linux\/","name":"How to Rename a File in Linux using mv, rename & mmv | LCVPS","isPartOf":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-rename-files-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-rename-files-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/03\/how-to-rename-files-in-linux-mv-rename-mmv.webp","datePublished":"2024-04-30T17:30:00+00:00","description":"Learn how to quickly and easily rename a file in Linux using mv, rename and mmv commands by following the LinuxCloudVPS step-by-step guide.","breadcrumb":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-rename-files-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.linuxcloudvps.com\/blog\/how-to-rename-files-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-rename-files-in-linux\/#primaryimage","url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/03\/how-to-rename-files-in-linux-mv-rename-mmv.webp","contentUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2024\/03\/how-to-rename-files-in-linux-mv-rename-mmv.webp","width":742,"height":410,"caption":"How to rename files in Linux (using mv, rename, mmv)"},{"@type":"BreadcrumbList","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-rename-files-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.linuxcloudvps.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to rename a file in Linux (using mv, rename, mmv)"}]},{"@type":"WebSite","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#website","url":"https:\/\/www.linuxcloudvps.com\/blog\/","name":"LinuxCloudVPS","description":"","publisher":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.linuxcloudvps.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization","name":"LinuxCloudVPS","url":"https:\/\/www.linuxcloudvps.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/08\/logo.png","contentUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/08\/logo.png","width":217,"height":25,"caption":"LinuxCloudVPS"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/www.facebook.com\/LinuxCloudVPS","https:\/\/x.com\/LinuxCloudVPS","http:\/\/www.linkedin.com\/company\/linuxcloudvps-com"]},{"@type":"Person","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/person\/ed907227ee7d151c617e6d0fe74f531a","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"admin"},"sameAs":["http:\/\/www.linuxcloudvps.com\/"],"url":"https:\/\/www.linuxcloudvps.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/2130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/comments?post=2130"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/2130\/revisions"}],"predecessor-version":[{"id":2135,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/2130\/revisions\/2135"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/media\/2148"}],"wp:attachment":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/media?parent=2130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/categories?post=2130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/tags?post=2130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}