linux
Linux
- コマンドとか
OS
/etc/issue
にOS情報が書かれていたりする 1)
shell
変数
$1
から順に引数が格納される 2)
権限
- ディレクトリ、ファイル指定もできる 3)
再帰的な変更
$ chmod -R 777 .
ディレクトリ指定
$ find . -type d -exec chmod 777 \{\} \;
ファイル指定
$ find . -type f -exec chmod 777 \{\} \;
拡張子指定
$ find . -type f -name '*.sh' -exec chmod 777 \{\} \;
1)
今更聞けない!LinuxのOSやバージョンの確認方法, エンジニアの入り口, https://eng-entrance.com/linux-os-version, 2021/07/20
2)
初心者向けシェルスクリプトの基本コマンドの紹介, Qiita, 2021/07/08
3)
Linuxコマンドのお勉強 再帰的にパーミッションを変更, Qiita, 2021/06/10
linux.txt · 最終更新: 2021/07/20 13:52 by 127.0.0.1