linux

/var/log/secure

sshのlogなどはここを確認すれば良い。 /var/log/secure /var/log/secureとは|「分かりそう」で「分からない」でも「分かった」気になれるIT用語辞典

CentOSのversion確認

ssh hostA [root@hostA ~]# cat /etc/redhat-release CentOS release 6.5 (Final) ssh hostB [root@hostB ~]# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core)

ファイル、ディレクトリの所有権変更

chown -hR foo:foo /hoge/fuga # -h シンボリックリンクのみ所有権変更 # -R 再帰的に変更 Ref Linuxコマンド【 chown 】ファイルの所有者やグループを変更 - Linux入門 - Webkaru