2016-11-14 cp コマンドでディレクトリごとファイルをコピーする Unix/Linux メモ。 $ cp --parent foo/bar/*.json target/ コピー元のディレクトリ階層(foo/bar/)を維持した状態でコピーされる。