---
layout: page
category-page: fs
category-title: FileSystem
tags: directory list move rename
author: Mattia Hijman
title: mv
previous-page: pages/fs/mkdir.html
next-page: pages/fs/pwd.html
---
The mv
command is used to move a file and directories from a given path to another.
If both files are in the same filesystem it will result as a renaming of the file
mv [-finv] source target