Linuxハードウェア情報の表示およびデバイスを駆動するコマンド


ハードウェア検出プログラムkuduzで新しいハードウェアを検出する:service kudzu start(or restart)
CPU情報の表示:cat/proc/cpuinfo
ボード情報の表示:cat/proc/pci
PCI情報の表示:lspci(cat/proc/pciより直感的)
メモリ情報の表示:cat/proc/meminfo
USBデバイスの表示:cat/proc/bus/usb/devices
交換パーティション情報の表示:cat/proc/swap
メモリ使用量の表示:free
キーボードとマウスの表示:cat/proc/bus/input/devices
システムのハードディスク(HDD)情報と使用状況の表示:fdisk&disk-l&df
各デバイスの割り込み要求の表示(IRQ):cat/proc/interrupts
システムアーキテクチャの表示:uname-a
  Linux   : cat /etc/issue    cat /proc/version 
  CPU  (  ): # cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
  CPU      : # cat /proc/cpuinfo | grep physical | uniq -c
  CPU   32bit   :# getconf LONG_BIT
    0,     64bit  . lm long mode,   lm  64bit: # cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l
             :  # cat /etc/issue | grep Linux
      : # dmidecode | grep "Product Name" 
      : # dmesg | grep -i eth

プロセス開始時間、終了時間、実行時間の表示:ps-o stime,etime 28486(SPID)
システム
# uname -a               #     /    /CPU  
# head -n 1 /etc/issue   #         
# cat /proc/cpuinfo      #   CPU  
# hostname               #       
# lspci -tv              #     PCI  
# lsusb -tv              #     USB  
# lsmod                  #          
# env                    #       

しげん
# free -m                #               
# df -h                  #          
# du -sh <   >        #          
# grep MemTotal /proc/meminfo   #       
# grep MemFree /proc/meminfo    #        
# uptime                 #         、   、  
# cat /proc/loadavg      #       

ディスクとパーティション
# mount | column -t      #          
# fdisk -l               #       
# swapon -s              #         
# hdparm -i /dev/hda     #       (    IDE  )
# dmesg | grep IDE       #      IDE      

ネットワーク
# ifconfig               #            
# iptables -L            #        
# route -n               #      
# netstat -lntp          #         
# netstat -antp          #            
# netstat -s             #         

プロセス
# ps -ef                 #       
# top                    #         

ユーザー
# w                      #       
# id <   >            #         
# last                   #         
# cut -d: -f1 /etc/passwd   #         
# cut -d: -f1 /etc/group    #        
# crontab -l             #            

サービス
# chkconfig --list       #         
# chkconfig --list | grep on    #            

プログラム
# rpm -qa                #