ifup 랜카드 활성화
ifdown 랜카드 비활성화
b block device ->저장장치
c 표준입출력장치
l link 바로가기
setuid 특정명령을 소유자 권한으로 실행
cd /var/log
#grep cloud maillog
#grep remove maillog
#grep sshd secure
which su -> /bin/su
cd /boot
cd grub/
cd /etc
vi /etc resolv.conf
root권한으로 /bin 디렉토리에서 a로 시작하는 모든 파일을 /text1/1.lst 파일로 ㅂ저장
mkdir /txt
ls /bin/a* > /txt/1.lst
su명령을 passwd 명령어를 root 사용자만 사용이 가능하고 일반 사용자들은 사용을 못하도록 설정
which passwd
/usr/bin/passwd
chmod 750 /usr/bin/passwd
chmod 4755 /usr/bin/passwd 4755 -su 허가권
chmod 4755 /usr/su
ls -l /bin/su*
su -testuser
password 입력시 허가 오류
find / -name ftp*
find / -name ftp* > 1.txt 2>error.txt
cat 1.txt
cat error.txt
lsof -i:22 포트가 열려 잇는지 확인