Linux viewing System Information commands are essential for Linux beginners, and these commands are also useful because the first thing you can do to get into Linux is to look at the system information first, so the necessary systems to learn about these Linux System Information commands are very necessary! In addition to the Linux distribution of the more commonly used System Information query command, you can refer to, but also can test learning, when necessary man, must learn to use the man command, hehe # uname-a # View kernel/operating system/CPU information # head-n 1/ Etc/issue # view OS version # Cat/proc/cpuinfo # view CPU Info # 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 Resources # free-m # View memory usage and swap usage # df-h # View the usage of each partition &N bsp;# du-sh < directory name > # View the size of the specified directory # grep memtotal/proc/meminfo # View total Memory # grep memfree/proc/meminfo # view idle inside Stock # Uptime # View System uptime, number of users, load # cat/proc/loadavg # View 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) &N bsp;# DMESG | grep IDE # View IDE device detection on startup network # Ifconfig # View properties of all network Interfaces # iptables-l # View firewall settings # route-n # View route table # Nets TAT-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 user # ID < username > # view specified user letter # Last # View user login log # cut-d:-F1/ETC/PASSWD # View System All users # 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 | grep on # Lists all started system services # RPM-QA # View all installed Packages
Linux View System Information command (compare all)