1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

WIP LinuC学習 part2

Posted at

基本的なファイル管理の実

mvコマンド

オプション一覧

-t, --target-directory=DIRECTORY move all SOURCE arguments into DIRECTORY
すべてのSOURCE引数をDIRECTORYに移動します

-tオプションは、移動先のディレクトリを指定するためのオプションです。通常、mvコマンドでは移動先のディレクトリをコマンドの最後の引数として指定しますが、-tオプションを使うことで移動先のディレクトリを先に指定することができます。
-tオプションで/home/backup/(移動先のディレクトリ)を指定して/home/user/test.txt を移動しているため、正しいコマンドになります。

-i, --interactive prompt before overwrite
上書きする前にプロンプ​​トを表示する

-n, --no-clobber do not overwrite an existing file
既存のファイルを上書きしない

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?