---
title: "How to rename a file in Linux?"  
description: "How to rename a file in Linux?"  
author: "Mukul Goenka"  
published: 2022-04-15  
canonical: https://answers.mindstick.com/qa/96833/how-to-rename-a-file-in-linux  
category: "troubleshooting"  
tags: ["troubleshooting", "linux"]  
reading_time: 1 minute  

---

# How to rename a file in Linux?

How to [rename](https://www.mindstick.com/interview/23303/how-to-rename-extention-of-mdf-file) a file in Linux?

## Answers

### Answer by Hitesh Vohra

![How to rename a file in Linux?](https://answers.mindstick.com/questionanswer/28a3507f-c49f-4aae-a49e-53b786630c18/images/e7449e6a-f1ea-430c-884a-1a3344d55791.jpeg)\

- There are various ways to **rename files in [Linux](https://answers.mindstick.com/qa/96810/what-is-linux),** including the graphical user interface and a number of dedicated terminal commands. Individual files can be renamed reasonably easily, however renaming numerous files at once can be difficult.
- To move files and directories from the terminal, use the Linux mv (move) command. The syntax is as follows:
- mv [options] [source] [destination]

- When you use the mv command and specify a target directory, the source file is moved to that directory. If the destination file has a different name than the source file, the mv command renames the source file to that name.

\

**Read More: [How to copy a file in Linux?](https://answers.mindstick.com/qa/96831/how-to-copy-a-file-in-linux)**


---

Original Source: https://answers.mindstick.com/qa/96833/how-to-rename-a-file-in-linux

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
