LoginSignup
1
0

More than 5 years have passed since last update.

【cp -r/ rm -rf】ディレクトリ毎コピー/削除する[LINUX]

Last updated at Posted at 2019-01-01

はじめに

ディレクトリ毎コピー、削除する場合、オプションを指定する必要があります。
今回は、備忘録としてまとめておきます。

コピー/削除

任意のディレクトリ以下をすべてコピー

cpコマンドに-rオプションを付けて用いる。

$ cp -r original_dir/ next_dir/ 

ディレクトリ毎削除

rmコマンドに-rfオプションを付けて用いる。

$ rm -rf original_dir

おわりに

こちらの記事が役に立ったという方は、いいね、お願いします(^^)

1
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
1
0