Debian

wwiki
Jhkim (토론 | 기여)님의 2019년 4월 13일 (토) 09:33 판 (ping)
이동: 둘러보기, 검색

설치된 패키지 검색

$ dpkg-query -l [검색어]

서비스 리스트

$ chkconfig --list

결과

alsa-utils                0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on

마지막에 나오는 S:on이 실행상태인것 같은데, 실제 서비스 실행상태와는 다른 경우가 있다.

$ service slapd status

smartctl

디스크 검사

$ sudo apt install smartmontools

$ smartctl /dev/mmcblk0

fsck

$ fsck /dev/mmcblk0

네트워크

DNS

$ cat /etc/resolv.conf

ping

ping: command not found

$ apt-get update

$ apt-get install iputils-ping

ipv6 비활성화

활성화여부 확인

sudo cat /proc/sys/net/ipv6/conf/all/disable_ipv6  

결과가 0이라면 ipv6이 활성화된 상태

/etc/sysctl.conf  

net.ipv6.conf.all.disable_ipv6 = 1  
net.ipv6.conf.default.disable_ipv6 = 1  
net.ipv6.conf.lo.disable_ipv6 = 1

sudo sysctl -p 하여 설정을 리로드

sudo cat /proc/sys/net/ipv6/conf/all/disable_ipv6  로 활성화 확인

사용자 관리

기존유저 user를 group에 추가

$ usermod -a -G group user

다른 사용자로 명령 실행

sudo -u www-data cmd

시간설정

sudo dpkg-reconfigure tzdata