0d12727e7f
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@86 a672b425-5310-4d7a-af5c-997e18724b81
25 lines
733 B
HTML
25 lines
733 B
HTML
---
|
|
layout: page
|
|
category-page: fs
|
|
category-title: FileSystem
|
|
tags: directory list move rename
|
|
author: Mattia Hijman
|
|
title: mv
|
|
---
|
|
|
|
<p>The <code>mv</code> command is used to move a file from a given path to another. It can also be used to rename a file by moving it into the same directory, but with a different name.<br>
|
|
It stands for <i>MoVe</i>.
|
|
|
|
<pre>
|
|
mv [-finv] source target
|
|
</pre>
|
|
|
|
<h2>Flags</h2>
|
|
|
|
<ul>
|
|
<li> <b>-f</b>: Do not prompt for confirmation before overwriting the
|
|
destination path.</li>
|
|
<li> <b>-i</b>: Asks user confirmation before proceeding.</li>
|
|
<li> <b>-n</b>: Do not overwrite an existing file.</li>
|
|
<li> <b>-v</b>: Cause mv to be verbose, showing files after they are moved.</li>
|
|
</ul>
|