본문 바로가기
IT/리눅스

[리눅스] 기본명령어

by psluckyguy 2020. 10. 5.
반응형

 



@디스크
smartctl -a dev/sda

▶ 사용자 

 

계정잠금해제

HP-UX

usedbset -d -u 계정명 auth_failures

/usr/lbin/modprpw -k 계정명

 

 

login커멘드

#logins -d 중복된 UID 유저 출력

#logins -p 패스워드 없는 유저 출력 

 

 

 

==========

scp -p22 -r /home/test 계정@x.x.x.x:/home/data

==========

 

==좀비프로세스찾기===

ps -ef | grep defunct | grep -V grep    > 찾기

 

ps -ef | grep defunct | awk 'print $3}' |xargs kill -9  >>좀비ps죽이기

 

=================

 

#vxdisk -o alldas list

#vxprint

#vxprint -ht vxdmpadm listctlr all

#iostat -En

#iostat -e

#ifconfig -a 

#netstat -nr

#netstat -i 2 3

#netstat -an | grep -i establish | grep -v 127.0.0.1

#df -k

#raidctl -L                     #metadb -i

#metastat

#prtdiag -v                   

#os info        #cpu info        #memory info

#psrinfo sar 2 3

#swap -s     #swap -l

#cfgadm -al

#cfgadm -o

#show_FcP_dev -al

 

 

 

▶ 실행(excute)

파일 실행 현재 디렉토리는  ./ 다른곳은 해당 디렉토리와 파일명을 입력 옵션 & 백그라운드로 실행

예 [root@zionserver /]#./test.sh &  

 

 


netstat -ntpl

mkdir -p

cp -R

rm -rf

id 

ls -altr

service ntpd restart

ntpq -p

service iptables save restart

chmod 755 -R 폴더명

vi /etc/sysconfig/iptables

로그 null 처리

cat /dev/null > /var/log/messages

'IT > 리눅스' 카테고리의 다른 글

쉘 스크립트  (0) 2022.03.25
리눅스 싱글모드 접속(패스워드 분실)  (0) 2022.03.17
samba  (0) 2022.02.12
firewall 방화벽 설정  (0) 2021.03.21
[우분투] 명령어  (0) 2020.12.08