1 . Ȯ.
- #more /etc/issue ( cat /etc/issue)
- #more /proc/version (cat /proc/version)
2. ý ϵ Ȯ. ( /proc)
- #more /proc/cpuinfo ( cpu Ȯ )
- #more /proc/meminfo (memory Ȯ)
- #more /proc/pci (ϵ Ȯ)
3. ý α Ȯ.
- #more /var/log/messages (#tail -f /var/log/messages)
ý α Ȯ
- #more /var/log/secure (#tail -f /var/log/secure)
Console α ( IP Ȯ )
) α
Sep 5 15:27:24 test sshd[24780]: Could not reverse map address 211.187.90.4.
Sep 5 15:27:24 test sshd[24780]: Accepted password for root from 211.187.90.4 port 1457 ssh2
- #more /var/log/boot.log
ý Ȱȭ Ȯ
- #more dmesg
̽ Ȯ.
- #lastlog
/etc/passwd ϵ ֱ ̵ Ȯ
- #last | more
Ȯ
4.Ʈũ Ȯ
- #ifconfig ( ī Ȯ)
- #netstat –an | more ( #netstat –an | more LISTEN )
ýۿ Ʈ Ȯ
- #netstat –an | grep SYN_RECV
SYN Flooding ݿ ɼ
- #mii-tool -v
Ʈũ Ȯ
[root@mapo log]# mii-tool -v
eth0: negotiated 100baseTx-FD, link ok (ӵ)
product info: vendor 00:08:18, model 22 rev 2
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok (Ʈũ ũ )
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
eth1: no link
product info: vendor 00:08:18, model 22 rev 2
basic mode: autonegotiation enabled
basic status: no link
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
[root@mapo log]#
- #tcpdump -i eth0 (eth1)
Eth0 ó Ŷ Ȯ
- #tcpdump -i eth0 –c 22
Eth0 ó Ư Ʈ (22) Ŷ Ȯ
- # ping ش ( Ȯ)
5. ý 뷮 Ȯ
- #df -h
Ƽ 뷮 Ȯ
Fdisk -l
ũ Ƽ Ȯ
6. cpu , memory Ȯ
#top
3:58pm up 61 days, 19:03, 1 user, load average: 0.00, 0.00, 0.00
(uptime) ()
131 processes: 130 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states: 0.0% user, 0.2% system, 0.0% nice, 99.3% idle
(cpu 0 )
CPU1 states: 0.0% user, 0.0% system, 0.0% nice, 100.0% idle
(cpu 0 )
Mem: 2064692K av, 2052536K used, 12156K free, 0K shrd, 56816K buff
( )
Swap: 2097112K av, 5564K used, 2091548K free 1916536K cached
( swap ) (뷮) ()
7. swap Ȯ
#free
total used free shared buffers cached
Mem: 2064692 2052368 12324 0 56844 1916536
-/+ buffers/cache: 78988 1985704
Swap: 2097112 5564 2091548
8. processes Ȯ
#ps –ef | more
ýۿ μ Ȯ.
9. hostname
# vi /etc/sysconfig/network
ϳ hostname
#/etc/rc.d/init.d/network restart ( Ʈ )
10. network ip