Collect Linux System Information to view commands for use! Play VPS Webmaster friends must have, hehe ~Linux-cmd system # uname-A # view kernel/OS/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 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 # grep memtotal/proc/Meminfo # View Total Memory # grep Memfree/proc/Meminfo # View Idle memory # uptime # View System uptime, number of users, load # cat/proc/loadavg # View system load disk and partition # 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|grep IDE # View IDE Device detection status on Startup network # 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 network statistics Progress # PS–EF #查看所有进程 # Top #实时显示进程状态用户 # w # view active user # ID< user name ># View specified user information # Last # View user log in 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 boot system service programs # RPM-QA # View all installed Packages
Linux System Information view command Daquan