LoginSignup
0
0

More than 3 years have passed since last update.

ファイルを探したり、パーミッションの変更したり。。。

Last updated at Posted at 2019-12-08

ディレクトリ配下のシンボリックリンクを探す

$ find . -type l

ディレクトリ配下のディレクトリのパーミッションを変更する

$ find . -type d -exec chmod 755 {} \;

ディレクトリ配下のファイルのパーミッションを変更する

$ find . -type f -exec chmod 644 {} \;

グループ変更

$ chgrp グループ名 ファイル名またはディレクトリ名

例えば、index.htmlのグループをapacheにする。

$ chgrp apache index.html

現在いるディレクトリ配下のファイルやディレクトリもまとめてapacheグループ変更する。

$ chgrp -R apache ./
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