# last
# last | grep "still logged in"
# date; last | grep "still logged in"
# last | grep -E "119.72.198.200|119.72.195.161"
# last | grep -Ev "119.72.198.200|119.72.195.161"
# cat /var/log/secure | grep "Failed password"
# lastb | awk '{print $1}' | sort | uniq -c | sort -nr | head -10
# cat /var/log/secure | grep sshd:session
# cat /etc/logrotate.conf
/var/log/wtmp {
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
# df -h
# w
# iostat
# top -b
# vmstat
# top n 1 b
# top n 1 b | grep -E "^top|^Tasks:|^Cpu(s):|^Mem:|^Swap:"
Linuxのメモリ空:free(1行目) + buffers + cached