System # uname-a # view kernel/operating system/CPU information # head-n 1/etc/issue # view operating system version # cat/proc/cpuinfo # view CPU information # hostname # View computer name # lspci-TV # list all PCI devices # lsusb-TV # list all USB devices # lsmod # list loaded kernel modules # env # view environment variables
Resource # free-m # view memory usage and swap zone usage # df-h # view the usage of each partition # du-sh <Directory Name> # view the size of a specified directory # grep MemTotal/ proc/meminfo # view the total memory # grep MemFree/proc/meminfo # view the Amount of idle memory # uptime # view the system running time, number of users, and load # cat/proc/loadavg # view the system load
Disk and partition # mount | column-t # view the status of the mounted partition # fdisk-l # view all partitions www.2cto.com # swapon-s # view all swap partitions # hdparm-I/dev/ hda # view disk parameters (applicable only to IDE devices) # dmesg | grep IDE # view the IDE Device Detection Status at startup
Network # ifconfig # view the attributes of all network interfaces # iptables-L # view firewall settings # route-n # view route tables # netstat-lntp # view all listening ports # netstat-antp # View all established connections # netstat-s # view network statistics
Process # ps-ef # view all processes # top # real-time display Process status user # w # view active users # id <User Name> # view specified user information # last # view User Logon logs # cut-d: -f1/etc/passwd # view all users in the system # cut-d:-f1/etc/group # view all groups in the system # crontab-l # view the scheduled tasks of the current user
Service # chkconfig -- list # list all system services # chkconfig -- list | grep on # list all started system service programs # rpm-qa # view all installed software packages
Common commands are as follows: view the serial number of the motherboard: dmidecode | grep-I 'serial number' use the hardware detection program kuduz to detect new hardware: service kudzu start (or restart) to view CPU information: cat/proc/cpuinfo [dmesg | grep-I 'cpu '] [dmidecode-t processor] view memory information: cat/proc/meminfo [free-m] [vmstat] view Board information: cat/proc/pci view graphics card/sound card information: lspci | grep-I 'vga '[dmesg | grep-I 'vga'] to view the NIC information: dmesg | grep-I 'eth '[cat/etc/sysconfig/hwconf | grep-I eth] [lspci | grep-I 'eth'] www.2cto.com <! -- More --> View PCI information: lspci (more intuitive than cat/proc/pci) view USB devices: cat/proc/bus/usb/devices view keyboard and mouse: cat/proc/bus/input/devices view system hard disk information and usage: fdisk & disk-l & df view interrupt requests of each device (IRQ ): cat/proc/interrupts view system architecture: uname-
View and start the system's 32-bit or 64-bit Kernel Mode: isalist-v [isainfo-v] [isainfo-B] dmidecode to view hardware information, including bios, cpu, memory and other information to determine the current display refresh frequency:/usr/sbin/ffbconfig-rev \? View System Configuration:/usr/platform/sun4u/sbin/prtdiag-v view the patches applied in the current system: showrev-p displays the current running level: who-rH: nslookup-class = chaos-q = txt version. binddmesg | more view hardware information lspci display peripheral information, such as usb, Nic and other information lsnod view loaded driver
Lshwpsrinfo-v view the type and speed (clock speed) of the current processor prtconf-v print the current OBP version www.2cto.com iostat-E view the hard disk physical information (vendor, RPM, Capacity) prtvtoc/dev/rdsk/c0t0d0s view disk geometric parameters and partition information df-F ufs-o I display the number of used and unused I-nodes isalist-v
For files in "/proc", you can use the File View command to browse its content. The file contains system-specific information: cpuinfo host CPU information Dma host DMA channel information Filesystems File System Information Interrupts host interrupt information Ioprots host I/O port number information Meninfo host memory information Version Linux memory Version information remarks: proc-process information pseudo-filesystem process information camouflage File System author ustcfxx