トップ 差分 一覧 ソース 検索 ヘルプ PDF RSS ログイン

mv

mv : MoVe

ファイルディレクトリの名前の変更や移動するコマンド。移動できるのは同一パーティション内のファイルディレクトリ

 書式

mv [オプション] 移動元 移動先

 オプション

オプション 意味
-i 対話的なファイル移動

 使用例

ファイルtestの名前をtest.txtに変更する。

$ mv test test.txt

ファイルtest.txtをディレクトリdocsに移動する。

$ mv test.txt docs

ファイルtest.txtをディレクトリdocsにファイル名test1.txtという名前で移動する。

$ mv test.txt docs/test1.txt

[コマンド]