System #uname-A # view kernel/OS/CPU Information #Head-N1/etc/issue # View OS version #Cat/proc/Cpuinfo # Viewing 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 variable resource # Free-m # View memory usage and swap usage #DF-H # View the usage of each partition #du-SH< directory name ># View the size of the specified directory #grepmemtotal/proc/Meminfo # View total Memory #grepmemfree/proc/Meminfo # Viewing idle memory #Uptime# View System uptime, number of users, load #Cat/proc/loadavg # Viewing system load disks and partitions #Mount| Column-t # View attached partition status # fdisk-L # View all partitions # Swapon-S # view all swap partitions # hdparm-i/dev/HDA # View disk parameters (for IDE devices only) # DMESG|grepIDE # View IDE device detection network at startup #ifconfig# View the properties of all network interfaces # Iptables-L # View firewall settings # route-N # View routing table # Netstat-LNTP # View all listening ports # netstat-ANTP # View all established connections # netstat-S # View the 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 log in log #Cut-D:-f1/etc/passwd# View All users of the system #Cut-D:-f1/etc/Group # View system All groups # Crontab-L # View the current user's Scheduled Tasks service # Chkconfig--List # list all system Services # Chkconfig--list |grepon # List all boot system service programs # RPM-QA # View all installed packages other commonly used commands are organized as follows: View the serial number of the motherboard: Dmidecode|grep-I.'Serial Number'detecting new hardware with hardware detector Kuduz: Service kudzu start (or restart) 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 video card/sound card info: LSPCI |grep-I.'VGA'[DMESG |grep-I.'VGA'] View nic information: DMESG|grep-I.'ETH'[Cat/etc/sysconfig/hwconf |grep-I. ETH][LSPCI |grep-I.'ETH'] View PCI information: LSPCI (compared to cat/proc/PCI more intuitive) View USB devices:Cat/proc/bus/usb/devices viewing the keyboard and mouse:Cat/proc/bus/input/devices viewing system hard disk information and usage: fdisk& Disk–l &DFto view interrupt requests (IRQ) for each device:Cat/proc/Interrupts View system architecture:uname-a view and start the system's 32-bit or 64-bit kernel mode: isalist–v [isainfo–v][isainfo–b] View hardware information, including BIOS, CPU, memory, and more: Dmidecode determine the current display refresh rate:/usr/sbin/ffbconfig–rev?To View System configuration:/usr/platform/sun4u/sbin/Prtdiag–v View the patches already applied in the current system: SHOWREV–P Displays the current runlevel:W.H.O.–RH View Current bind version information: Nslookup–class=chaos–q=txt version.bind View hardware information: DMESG| Moredisplay peripheral information, such as USB, NIC, etc.: LSPCI view loaded driver: Lsnod LSHW View current processor type and speed (main frequency): Psrinfo-v Print the current OBP version number: prtconf-v View hard disk physical information (vendor, RPM, capacity): Iostat–e view disk geometry and partitioning information: Prtvtoc/dev/rdsk/c0t0d0s shows that I have been used and not used-Node Number:DF–F ufs–o i isalist–v for "/proc "files can use the File View command to browse its contents, the file contains system-specific information: Host CPU information: CPUINFO Host DMA Channel information: DMA file System Information: Filesystems host interrupt information: interrupts host I/o port number information: Ioprots host memory information: Meninfo Linux Memory Version information: Edition NOTE: proc–process information pseudo-filesystem process information masquerading file system
Linux View hardware configuration commands