본문 바로가기

Hojung's Command List

Total Commands : 232

 (e)grep (6)
 * find large files (2)
 * System info (12)
 * Term Key (8)
 * use previous argu (1)
 *CD/DVD cmd (5)
 *DNS test (4)
 ab (2)
 apg (1)
 arping (4)
 at (1)
 awk (1)
 cal (2)
 cd and pushd (3)
 crontab (7)
 curl (4)
 dd (1)
 dhclient (1)
 dig (2)
 du (1)
 echo (1)
 editcap (1)
 ethtool (2)
 find (20)
 head (1)
 history (1)
 host (1)
 hping3 (6)
 ifconfig (3)
 lftp (1)
 logger (1)
 ls (2)
 lsof (2)
 mail (2)
 man (1)
 mergecap (1)
 mount (8)
 nc (netcat) (1)
 ncftpput (1)
 netcat(nc) (1)
 netstat (1)
 nice (2)
 nl (1)
 nmap (5)
 ntpdate (1)
 openssl (15)
 ping (1)
 pkill (1)
 ps (2)
 rar (1)
 recode (6)
 rename (3)
 rm (1)
 route (2)
 rpm (4)
 sed (4)
 smb (3)
 snmpwalk (2)
 sort (4)
 ssh (1)
 tar (6)
 tcpdump (10)
 top (1)
 touch (2)
 uniq (1)
 vi (11)
 wall (2)
 wget (3)
 yum (5)
 zip/unzip (6)

HDD 에서 읽지 못하는 블럭이 있는지 테스트

badblocks -s /dev/sda

Written by Hojung at 2010-05-20 16:01:00

HDD Read Speed 체크

hdparm -tT /dev/sda

Timing cached reads: 13164 MB in 1.99 seconds = 6599.03 MB/sec
Timing buffered disk reads: 318 MB in 3.02 seconds = 105.41 MB/sec
Written by Hojung at 2010-05-20 15:45:37

HDD 정보 (모델, 버퍼사이즈, 모드, ..)

hdparm -i /dev/sda

Model=ST3320418AS, FwRev=CC45, SerialNo=9VMBVZ1M
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
BuffType=unknown, BuffSize=16384kB, MaxMultSect=16, MultSect=off
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=625142448
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
AdvancedPM=no WriteCache=enabled
Drive conforms to: unknown: ATA/ATAPI-4,5,6,7
Written by Hojung at 2010-05-20 15:44:59

HDD 정보 (전체 작동한 시간, Power Cycle 횟수, 온도, ...)

smartctl -A /dev/sda

=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 116 099 006 Pre-fail Always - 111012109
3 Spin_Up_Time 0x0003 097 097 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 122
.....
Written by Hojung at 2010-05-20 15:43:42

SMBIOS/DMI 정보

dmidecode -q | more

BIOS Information
Vendor: Dell Inc.
Version: A06
Release Date: 12/23/2009
Address: 0xF0000
Runtime Size: 64 kB
ROM Size: 8192 kB
Written by Hojung at 2010-05-20 15:36:38

마운트 정보

mount | column -t

/dev/sda6 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
/dev/sda1 on /boot type ext4 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
Written by Hojung at 2010-05-20 15:35:04

USB 정보

lsusb -tv

/: Bus 08.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
|__ Port 1: Dev 2, If 0, Class=HID, Driver=usbhid, 1.5M
|__ Port 1: Dev 2, If 1, Class=HID, Driver=usbhid, 1.5M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
|__ Port 2: Dev 2, If 0, Class=HID, Driver=usbhid, 1.5M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M
|__ Port 6: Dev 4, If 0, Class=hub, Driver=hub/4p, 480M
|__ Port 4: Dev 5, If 0, Class=stor., Driver=usb-storage, 480M
Written by Hojung at 2010-05-20 15:34:14

PCI 정보

lspci -tv

-[0000:00]-+-00.0 Intel Corporation 4 Series Chipset DRAM Controller
+-01.0-[0000:01-04]----00.0-[0000:02-04]--+-00.0-[0000:03]----00.0 nVidia Corporation G98 [Quadro NVS 420]
| \-02.0-[0000:04]----00.0 nVidia Corporation G98 [Quadro NVS 420]
+-03.0 Intel Corporation 4 Series Chipset HECI Controller
+-03.2 Intel Corporation 4 Series Chipset PT IDER Controller
+-03.3 Intel Corporation 4 Series Chipset Serial KT Controller
+-19.0 Intel Corporation 82567LM-3 Gigabit Network Connection
+-1a.0 Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #4
+-1a.1 Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #5
+-1a.2 Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #6
+-1a.7 Intel Corporation 82801JD/DO (ICH10 Family) USB2 EHCI Controller #2
+-1b.0 Intel Corporation 82801JD/DO (ICH10 Family) HD Audio Controller
+-1c.0-[0000:05]--
+-1c.1-[0000:06]--
+-1d.0 Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #1
+-1d.1 Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #2
+-1d.2 Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #3
+-1d.7 Intel Corporation 82801JD/DO (ICH10 Family) USB2 EHCI Controller #1
+-1e.0-[0000:07]--
+-1f.0 Intel Corporation 82801JDO (ICH10DO) LPC Interface Controller
+-1f.2 Intel Corporation 82801 SATA RAID Controller
\-1f.3 Intel Corporation 82801JD/DO (ICH10 Family) SMBus Controller
Written by Hojung at 2010-05-20 15:33:38

CPU 정보

grep "model name" /proc/cpuinfo

model name : Intel(R) Core(TM)2 Quad CPU Q9650 @ 3.00GHz
model name : Intel(R) Core(TM)2 Quad CPU Q9650 @ 3.00GHz
model name : Intel(R) Core(TM)2 Quad CPU Q9650 @ 3.00GHz
model name : Intel(R) Core(TM)2 Quad CPU Q9650 @ 3.00GHz
Written by Hojung at 2010-05-20 15:32:33

시스템에 등록된 파티션 정보

cat /proc/partitions
(or fdisk -l)

major minor #blocks name

8 0 312571224 sda
8 1 192748 sda1
8 2 1 sda2
8 3 20480000 sda3
8 5 1951866 sda5
8 6 253907293 sda6
8 16 312571224 sdb
8 17 312568641 sdb1
Written by Hojung at 2010-05-20 13:52:05

리눅스 배포버전

cat /etc/issue | head -1

Ubuntu 9.10 \n \l
Written by Hojung at 2010-05-20 13:50:39

커널버전 및 시스템 아키텍처 정보

uname -a

Linux hojung-desktop 2.6.31-20-generic-pae #58-Ubuntu SMP Fri Mar 12 06:25:51 UTC 2010 i686 GNU/Linux
Written by Hojung at 2010-05-20 11:46:01