{"id":3521,"date":"2018-04-25T17:15:15","date_gmt":"2018-04-25T14:15:15","guid":{"rendered":"http:\/\/www.systemcodegeeks.com\/?p=3521"},"modified":"2018-04-25T12:42:14","modified_gmt":"2018-04-25T09:42:14","slug":"linux-rename-file-example","status":"publish","type":"post","link":"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/","title":{"rendered":"Linux Rename File Example"},"content":{"rendered":"<p>Hello readers, in this tutorial, we will learn how to <span style=\"text-decoration: underline;\">rename<\/span> a file in the Linux operating system. For this tutorial, we will rename a file either:<\/p>\n<ul>\n<li>By using the <code>mv<\/code> command to rename the file<\/li>\n<li>Using <code>rename<\/code> command<\/li>\n<\/ul>\n<h2>1. Introduction<\/h2>\n<p><span style=\"text-decoration: underline;\">Renaming files<\/span> in Linux is not an advanced option, but it\u2019s surely the interesting one. Developers know that Linux has a powerful command-line interface which can be used to write this tutorial.<br \/>\n[ulp id=&#8217;SG9vnnKgRCD7iZxf&#8217;]<\/p>\n<h3>1.1 Renaming a file with &#8216;mv&#8217; Command<\/h3>\n<p>The simplest way of renaming the files or folders in the Linux operating system is with the <code>mv<\/code> command. Its basic purpose is to move the files or folders, but it also renames the files as the act of renaming the file is considered by the file-system as moving it from one name to another. This most basic way has the following prototype form:<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Syntax 1<\/em><\/span><\/p>\n<pre class=\"brush:bash;wrap-lines:false;\">mv [options] old_file_name new_file_name\r\n<\/pre>\n<p>The Syntax 1 will only work if the file is in the current working directory. If not, developers can specify the full path and can use:<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Syntax 1(a)<\/em><\/span><\/p>\n<pre class=\"brush:bash;wrap-lines:false;\">mv [options] \/&lt;path_to_file&gt;\/old_file_name \/&lt;path_to_file&gt;\/new_file_name\r\n<\/pre>\n<p>Do <em>remember:<\/em><\/p>\n<ul>\n<li>The <code>mv<\/code> command should have a write permission for the folder containing the files<\/li>\n<li>If developers want to <em>confirm<\/em> the file-name before renaming, they can use the <code>-i<\/code> option in conjugation with the <code>mv<\/code> command<\/li>\n<li>If developers want to display all the changes made by the <code>mv<\/code> command, they can use the <code>-v<\/code> option in conjugation with the <code>mv<\/code> command<\/li>\n<\/ul>\n<h3>1.2 Renaming a file with &#8216;rename&#8217; Command<\/h3>\n<p>The <code>rename<\/code> command in Linux operating system is used to rename multiple files using the Perl expressions. This command is more advanced than the <code>mv<\/code> because it supports the regular expressions, renames files to lowercase or uppercase and overwrites files using the Perl. This command also accepts the <em>wildcard<\/em> entries and has the following prototype form:<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Syntax 2<\/em><\/span><\/p>\n<pre class=\"brush:bash;wrap-lines:false;\">rename 's\/old-name\/new-name\/' file_name1.extn file_name2.extn\r\n<\/pre>\n<p>The letter <code>s<\/code> is the important part of the regular expression and it stands for &#8220;<span style=\"text-decoration: underline;\">substitute<\/span>&#8220;. The <code>rename<\/code> command comes with few optional arguments i.e.<\/p>\n<ul>\n<li><code>-v<\/code>: Prints the list of successfully renamed files along with the old names<\/li>\n<li><code>-f<\/code>: Forcefully overwrites the existing file<\/li>\n<li><code>-n<\/code>: Determine what changes would take place but not done for real<\/li>\n<\/ul>\n<h3>2. Practical usage<\/h3>\n<p>Let&#8217;s understand the usage of these commands with the help of the sample snippets.<\/p>\n<h4>2.2.1 Start Linux<\/h4>\n<p>Start a standalone Linux instance as shown below.<\/p>\n<figure id=\"attachment_3522\" aria-describedby=\"caption-attachment-3522\" style=\"width: 717px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-rename_guide-1.jpg\"><img decoding=\"async\" class=\"size-full wp-image-3522\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-rename_guide-1.jpg\" alt=\"Fig. 1: Start Linux instance\" width=\"717\" height=\"94\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-rename_guide-1.jpg 717w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-rename_guide-1-300x39.jpg 300w\" sizes=\"(max-width: 717px) 100vw, 717px\" \/><\/a><figcaption id=\"caption-attachment-3522\" class=\"wp-caption-text\">Fig. 1: Start Linux instance<\/figcaption><\/figure>\n<h4>2.2.2 Create a Sample file<\/h4>\n<p>To start with this tutorial, we will need to create a dummy file using the <code>vi<\/code> editor in Linux. Developers can write a dummy content to this file and save it using the <code>:wq!<\/code> option. The following Linux snippet can be used.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Query 1<\/em><\/span><\/p>\n<pre class=\"brush:bash;wrap-lines:false;\">$ vi file1.txt\r\n<\/pre>\n<p>The command gives the following output.<\/p>\n<figure id=\"attachment_3523\" aria-describedby=\"caption-attachment-3523\" style=\"width: 584px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-rename_guide-2.jpg\"><img decoding=\"async\" class=\"size-full wp-image-3523\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-rename_guide-2.jpg\" alt=\"Fig. 2: Sample file having the Dummy content\" width=\"584\" height=\"198\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-rename_guide-2.jpg 584w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-rename_guide-2-300x102.jpg 300w\" sizes=\"(max-width: 584px) 100vw, 584px\" \/><\/a><figcaption id=\"caption-attachment-3523\" class=\"wp-caption-text\">Fig. 2: Sample file having the Dummy content<\/figcaption><\/figure>\n<h4>2.2.3 Displaying the Content of Sample file<\/h4>\n<p>Once the file is created, developers can use the <code>cat<\/code> command to ensure that the file was successfully created at the given path. The following Linux snippet can be used.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Query 2<\/em><\/span><\/p>\n<pre class=\"brush:bash;wrap-lines:false;\">$ cat file1.txt\r\n<\/pre>\n<p>The command gives the following output.<\/p>\n<figure id=\"attachment_3524\" aria-describedby=\"caption-attachment-3524\" style=\"width: 579px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-rename_guide-3.jpg\"><img decoding=\"async\" class=\"size-full wp-image-3524\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-rename_guide-3.jpg\" alt=\"Fig. 3: Displaying the file content\" width=\"579\" height=\"88\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-rename_guide-3.jpg 579w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-rename_guide-3-300x46.jpg 300w\" sizes=\"(max-width: 579px) 100vw, 579px\" \/><\/a><figcaption id=\"caption-attachment-3524\" class=\"wp-caption-text\">Fig. 3: Displaying the file content<\/figcaption><\/figure>\n<h4>2.2.4 Renaming the file using the &#8216;mv&#8217; command<\/h4>\n<p>In short, to rename a file in Linux developer can use the following <code>mv<\/code> command. The following Linux snippet can be used.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Query 3<\/em><\/span><\/p>\n<pre class=\"brush:bash;wrap-lines:false;\">$ mv \/&lt;_path_to_the_file_&gt;\/file1.txt \/&lt;_path_to_the_file_&gt;\/welcome.txt\r\n<\/pre>\n<p>The command gives the following output.<\/p>\n<figure id=\"attachment_3525\" aria-describedby=\"caption-attachment-3525\" style=\"width: 579px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-rename_guide-4.jpg\"><img decoding=\"async\" class=\"size-full wp-image-3525\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-rename_guide-4.jpg\" alt=\"Fig. 4: Renaming the file\" width=\"579\" height=\"78\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-rename_guide-4.jpg 579w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-rename_guide-4-300x40.jpg 300w\" sizes=\"(max-width: 579px) 100vw, 579px\" \/><\/a><figcaption id=\"caption-attachment-3525\" class=\"wp-caption-text\">Fig. 4: Renaming the file<\/figcaption><\/figure>\n<h4>2.2.5 Renaming the file using the &#8216;rename&#8217; command<\/h4>\n<p>Let\u2019s say developers want to rename multiple files at once. To achieve this they can use the <code>rename<\/code> command in Linux. Here is the basic Linux snippet that can be used to rename the multiple files.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Query 4<\/em><\/span><\/p>\n<pre class=\"brush:bash;wrap-lines:false;\">$ rename 's\/\\.txt$\/\\.log\/' *.txt\r\n<\/pre>\n<p>As shown in Fig. 5, this command will rename all the <code>.txt<\/code> files to the <code>.log<\/code> in the working directory. Developers can verify this by doing the <code>ls -ltr<\/code> on the Linux terminal.<\/p>\n<figure id=\"attachment_3526\" aria-describedby=\"caption-attachment-3526\" style=\"width: 599px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-rename_guide-5.jpg\"><img decoding=\"async\" class=\"size-full wp-image-3526\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-rename_guide-5.jpg\" alt=\"Fig. 5: Renaming the files\" width=\"599\" height=\"70\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-rename_guide-5.jpg 599w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-rename_guide-5-300x35.jpg 300w\" sizes=\"(max-width: 599px) 100vw, 599px\" \/><\/a><figcaption id=\"caption-attachment-3526\" class=\"wp-caption-text\">Fig. 5: Renaming the files<\/figcaption><\/figure>\n<p>Make <em>note<\/em>, while doing the critical or the major tasks developer can verify the changes by running the <code>rename<\/code> command with <code>-n<\/code> argument.<\/p>\n<h3>3. pyRenamer<\/h3>\n<p><strong>pyRenamer<\/strong> is a renaming tool written in Python language to support the renaming of files using a desktop application. This application allows the file name change with a simple mouse click. At this moment, the official website is down, but users can install it from the 3rd part repositories using the following command:<\/p>\n<pre class=\"brush:bash;wrap-lines:false;\">sudo apt-get install pyRenamer\r\n<\/pre>\n<p>That\u2019s all for this post. Happy Learning!!<\/p>\n<h2>4. Conclusion<\/h2>\n<p>In this tutorial, developers learned how to rename a file or files in the Linux system using the <code>mv<\/code> or the <code>rename<\/code> command. I hope this article served you with whatever developers are looking for. You can download the sample commands in the <a href=\"#projectDownload\">Downloads<\/a> section.<\/p>\n<h2><a name=\"projectDownload\"><\/a>5. Download the Source Code<\/h2>\n<p>This was a tutorial of renaming the files in Linux.<\/p>\n<div class=\"download\"><strong>Download<\/strong><br \/>\nYou can download the full source code of this example here: <a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/Linux_file_rename_cmds.zip\" target=\"_blank\" rel=\"noopener\"><strong>Linux_file_rename_cmds<\/strong><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hello readers, in this tutorial, we will learn how to rename a file in the Linux operating system. For this tutorial, we will rename a file either: By using the mv command to rename the file Using rename command 1. Introduction Renaming files in Linux is not an advanced option, but it\u2019s surely the interesting &hellip;<\/p>\n","protected":false},"author":1389,"featured_media":192,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[61],"class_list":["post-3521","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux Rename File Example - System Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Hello readers, in this tutorial, we will learn how to rename a file in the Linux operating system.\" \/>\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.systemcodegeeks.com\/linux\/linux-rename-file-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux Rename File Example - System Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Hello readers, in this tutorial, we will learn how to rename a file in the Linux operating system.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/\" \/>\n<meta property=\"og:site_name\" content=\"System Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/systemcodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-25T14:15:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Yatin Batra\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@systemcodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@systemcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Yatin Batra\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/\"},\"author\":{\"name\":\"Yatin Batra\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/b0c9b724e83b9620cb4262f45e9f6e82\"},\"headline\":\"Linux Rename File Example\",\"datePublished\":\"2018-04-25T14:15:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/\"},\"wordCount\":789,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\",\"keywords\":[\"Linux\"],\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/\",\"name\":\"Linux Rename File Example - System Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\",\"datePublished\":\"2018-04-25T14:15:15+00:00\",\"description\":\"Hello readers, in this tutorial, we will learn how to rename a file in the Linux operating system.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/#primaryimage\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.systemcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\",\"item\":\"https:\/\/www.systemcodegeeks.com\/category\/linux\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Linux Rename File Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"name\":\"System Code Geeks\",\"description\":\"Operating System Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/systemcodegeeks\",\"https:\/\/x.com\/systemcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/b0c9b724e83b9620cb4262f45e9f6e82\",\"name\":\"Yatin Batra\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3f011dd665043468ba193f7b07472ebbedfa359cff5e576a91a5901c130ca6f1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3f011dd665043468ba193f7b07472ebbedfa359cff5e576a91a5901c130ca6f1?s=96&d=mm&r=g\",\"caption\":\"Yatin Batra\"},\"description\":\"Yatin has graduated in Electronics &amp; Telecommunication. During his studies, he has been involved with a large number of projects ranging from programming and software engineering to telecommunications analysis. He works as a software developer in the information technology sector where he is mainly involved with projects based on Java and J2EE technologies platform.\",\"sameAs\":[\"https:\/\/www.systemcodegeeks.com\"],\"url\":\"https:\/\/www.systemcodegeeks.com\/author\/yatin-batra\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux Rename File Example - System Code Geeks - 2026","description":"Hello readers, in this tutorial, we will learn how to rename a file in the Linux operating system.","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.systemcodegeeks.com\/linux\/linux-rename-file-example\/","og_locale":"en_US","og_type":"article","og_title":"Linux Rename File Example - System Code Geeks - 2026","og_description":"Hello readers, in this tutorial, we will learn how to rename a file in the Linux operating system.","og_url":"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/","og_site_name":"System Code Geeks","article_publisher":"https:\/\/www.facebook.com\/systemcodegeeks","article_published_time":"2018-04-25T14:15:15+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","type":"image\/jpeg"}],"author":"Yatin Batra","twitter_card":"summary_large_image","twitter_creator":"@systemcodegeeks","twitter_site":"@systemcodegeeks","twitter_misc":{"Written by":"Yatin Batra","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/#article","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/"},"author":{"name":"Yatin Batra","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/b0c9b724e83b9620cb4262f45e9f6e82"},"headline":"Linux Rename File Example","datePublished":"2018-04-25T14:15:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/"},"wordCount":789,"commentCount":0,"publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","keywords":["Linux"],"articleSection":["Linux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/","url":"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/","name":"Linux Rename File Example - System Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/#primaryimage"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","datePublished":"2018-04-25T14:15:15+00:00","description":"Hello readers, in this tutorial, we will learn how to rename a file in the Linux operating system.","breadcrumb":{"@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/#primaryimage","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-rename-file-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.systemcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Linux","item":"https:\/\/www.systemcodegeeks.com\/category\/linux\/"},{"@type":"ListItem","position":3,"name":"Linux Rename File Example"}]},{"@type":"WebSite","@id":"https:\/\/www.systemcodegeeks.com\/#website","url":"https:\/\/www.systemcodegeeks.com\/","name":"System Code Geeks","description":"Operating System Developers Resource Center","publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.systemcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.systemcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/systemcodegeeks","https:\/\/x.com\/systemcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/b0c9b724e83b9620cb4262f45e9f6e82","name":"Yatin Batra","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3f011dd665043468ba193f7b07472ebbedfa359cff5e576a91a5901c130ca6f1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3f011dd665043468ba193f7b07472ebbedfa359cff5e576a91a5901c130ca6f1?s=96&d=mm&r=g","caption":"Yatin Batra"},"description":"Yatin has graduated in Electronics &amp; Telecommunication. During his studies, he has been involved with a large number of projects ranging from programming and software engineering to telecommunications analysis. He works as a software developer in the information technology sector where he is mainly involved with projects based on Java and J2EE technologies platform.","sameAs":["https:\/\/www.systemcodegeeks.com"],"url":"https:\/\/www.systemcodegeeks.com\/author\/yatin-batra\/"}]}},"_links":{"self":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/3521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/users\/1389"}],"replies":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/comments?post=3521"}],"version-history":[{"count":0,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/3521\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media\/192"}],"wp:attachment":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media?parent=3521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/categories?post=3521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/tags?post=3521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}