리눅스 시스템 free command
# Operation System/Linux2022. 12. 8. 07:59리눅스 시스템 free command

centos7x 해당버전예서 보여지는 used에는 buff/cache 값이 따로 나누어져있습니다. 그러기에 실제로 사용하고 있는 메모리양을 구하기 위해서는 used + buff/cache 값이 됩니다. [darksharavim]free -h total used free shared buff/cache available Mem: 15G 7.5G 4.2G 235M 3.8G 7.5G Swap: 5.0G 1.0G 4.0G 메모리 사용량 ((used + [buff/cache]) x 100% ) / total 구 분 설 명 total 현 시스템에 설치되어있는 전체 메모리 크기. used 현재 사용 중인 메모리 크기를 나타낸다. ([total] - [free] - [buffer/cache]) free 시스템에서 사용..

리눅스 시스템 모니터링 top command
# Operation System/Linux2022. 10. 25. 14:40리눅스 시스템 모니터링 top command

top 시스템의 상태 파악(cpu, 메모리, 프로세스) 기본설정은 3초마다 화면갱신 [darksharavim]top top - 13:40:57 up 179 days, 22:28, 2 users, load average: 0.00, 0.02, 0.05 Tasks: 200 total, 1 running, 199 sleeping, 0 stopped, 0 zombie %Cpu(s): 1.4 us, 2.9 sy, 0.0 ni, 95.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem : 16266496 total, 8796040 free, 5646192 used, 1824264 buff/cache KiB Swap: 5242876 total, 2562760 free, 2680116 us..

curl이용 imap 및 pop3 접속체크
# E-Mail2022. 9. 23. 15:12curl이용 imap 및 pop3 접속체크

imap check [darksharavim.tistory.com]curl -u "mailid@test.com:password" ₩ imap://mail.test.com/inbox pop3 check [darksharavim.tistory.com]curl -u "mailid@test.com:password" ₩ pop3://mail.test.com/inbox

mariaDB password 복잡도 설정
# DataBase/Mysql(MariaDB)2022. 3. 29. 13:56mariaDB password 복잡도 설정

1. simple_pasword_check 설정 확인 plugin 디렉토리 확인 MariaDB [sensmail]> show global variables like 'plugin_dir%'; +---------------+------------------------+ | Variable_name | Value | +---------------+------------------------+ | plugin_dir | /usr/lib/mysql/plugin/ | +---------------+------------------------+ 1 row in set (0.01 sec) # cd /usr/lib/mysql/plugin # ls -l | grep simple_password* -rw-r--r-- 1 ..

[bash]오래된 로그 정리
# Script/Bash2022. 3. 25. 07:51[bash]오래된 로그 정리

logbak = /log/old_log logpath=/apps/log if [ -d $logbak ] ; then find $logpath -maxdepth 1 -type f -name '*20*' -mtime +3 -exec mv {} $logbak \; fi

image