0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【CLI】ファイルやディレクトリをコピーする方法【Mac】

Posted at

dittoコマンドを使用するとファイルやディレクトリをコピーできます。

コピー先ディレクトリの内容をコピー元ディレクトリの内容で上書き

ditto path/to/source_directory path/to/destination_directory

コピーされる各ファイルごとにターミナルウィンドウに1行出力

ditto -V path/to/source_directory path/to/destination_directory

元のファイルパーミッションを保持したままファイルまたはディレクトリをコピー

ditto -rsrc path/to/source_directory path/to/destination_directory
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?