서비스 설정 바꾸고 재시작하기
find
- --absolute-names, -P
- find /opt/assets -type f -perm 2664 -exec cp -p "{}" /home/bob/specialfiles/ \;
script
문자열 비교 =, !=
fallocate
lvm
sudo lvcreate -n storage -l 100%FREE volume1
yum
- (module) sudo yum -y module install container-tools:3.0 --skip-broken --allowerasing --nobest
- (remove) sudo yum -y autoremove nginx
*tip: 스킵을 허락한다 베스트
add the user in a group
- sudo gpasswd -a kodekloud wheel
- sudo visudo
- id kodekloud
selinux
- ls -Z
- ps Z <pid>
- id -Z
- getenforce
- restorecon -r /home/bob/context
- sestatus
exit
exit 150
/etc/fstab
- (stratis) /dev/stratis/kodekloud/kodekloud_files /kodekloud xfs x-systemd-requires=stratisd.service 0 0 0
- (raid) /dev/md0 /raid xfs defaults,usrquota,grpquota 0 0
- (vdo) /dev/mapper/compressed /mnt/compressed xfs _netdev,x-systemd.device-timeout=0,x-systemd.requires=vdo.service 0 0
- (swap) /swap_file swap swap defaults 0 0
* tip: man systemd.mount
tuned
/etc/tuned/tuned-main.conf
chage
sed
sudo lsof | grep sshd | grep -i reg | sed 's/.* //g' > /home/bob/sshdfiles.txt