Lullar    


ビデオジャパンは、最大でランク。

mv (UNIX) mv (UNIX)

出典: フリー百科事典『ウィキペディア(Wikipedia)』 Source: material may be challenged Wikipedia encyclopedia (Wikipedia) 』

mv (エムブイ)はPOSIXおよびSingle UNIX Specificationで規定されているコマンドである。 mv (Emubui) is a POSIX and Single UNIX Specification are specified in the command. mvは「move」の略であり、ファイルやディレクトリの移動、名前の変更をするコマンドである。 mv will "move" stands for moving files and directories, the command to change the name.

目次 Contents

[ 編集 ] 構文 Syntax

mv [options] source destination mv [options] source destination
mv [options] source... directory mv [options] source ... directory

[ 編集 ] POSIXオプション POSIX option

  • -f 上書きの確認の問い合わせをしない。 -f Do not overwrite confirmation query.
  • -i destination がすでに存在する場合、上書きの確認の問い合わせをする(-fと-iが両方とも指定された場合、後から指定された方のオプションが有効になる)。 -i destination already exists, overwrite confirmation to the contact (-f and-i when both are specified, and will enable those options specified time).

[ 編集 ] Example

mv myfile mynewfilename mv myfile mynewfilename 'mynewfilename'がディレクトリでないとしてファイル名が変更される。 'mynewfilename' is not a directory as the file name changes.
mv myfile /myfile mv myfile / myfile 'myfile'をカレントディレクトリからルートディレクトリに移動する。 'myfile' to move from the current directory to the root directory.
mv myfile dir/myfile mv myfile dir / myfile 'myfile'をカレントディレクトリのdir配下に移動する。 'myfile' to move the current directory under the dir.
mv myfile dir/ mv myfile dir / 前述と同様の意味となる。 Which means the same as above. ファイル名は暗黙的におなじと扱われる。 Treated with the same file name implicitly.
mv myfile dir/myfile2 mv myfile dir/myfile2 'myfile'をdir/に移動し、さらにファイル名を'myfile2'に変更する。 'myfile' to dir / go to the file name more 'myfile2' to change.
mv foo bar baz dir/ mv foo bar baz dir / 複数のファイルをdir/に移動する。 Multiple files dir / to move.
mv --help mv - help コマンドの構文について簡潔なヘルプを表示する。 Show a brief help about the command syntax. (GNU の版のみ) (GNU's version only)
man mv man mv 'mv'のオンライン・マニュアルを表示する。 'mv' to view the online manual.

[ 編集 ] 外部リンク External links

  • Manpage of MV (JM Project) Manpage of MV (JM Project)
  • mv man page(FreeBSD版、英語) mV man page (FreeBSD version, English)
  • mv man page(OpenBSD版、英語) mV man page (OpenBSD version, English)
  • mvドキュメント(GNU版、英語) mv document (GNU version, English)
  • mv(1) man page(SunOS リファレンスマニュアル) mV (1) man page (SunOS Reference Manual)
  • mv(1) man page(HP-UX リファレンス) mV (1) man page (HP-UX Reference)

ビデオジャパンは、最大でランク。




© Lullar