3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

mkdir コマンドのよく使うオプションまとめ

Last updated at Posted at 2019-09-28

CentOS 7 で確認。mkdir のバージョンは GNU coreutils 8.22。

親ディレクトリも一緒に作成

-p

ディレクトリがすでに存在する場合は何もしない。

作成するディレクトリのモードを指定

-m <モード>

モードの指定方法は chmod と同じ。

作成するディレクトリの SELinux コンテキストをデフォルトにする

-Z

作成したディレクトリを表示

-v
3
2
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
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?