Common commands for viewing devices in linux

Source: Internet
Author: User
Linux commonly used to view the device command # uname-a # view the kernel/operating system/CPU information # head-n1/etc/issue # view the operating system version # cat/proc/cpuinfo # View CPU information # hostname # view the computer name www.2cto.com #...
Command # 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 www.2cto.com # 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 zone usage # df-h # view the usage of each partition # du-sh <目录名> # 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 system load disks and partitions # mount | column-t # view the status of mounted partitions # fdisk-l # View All partitions www.2cto.com # swapon-s # View all swap partitions # hdparm-I/dev/hda # View disk parameters (only applicable 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 www.2cto.com # ps-ef # View all processes # top # Real-Time display process status User # w # View active users # id <用户名> # Viewing specified user information # last # viewing user logon logs # cut-d:-f1/etc/passwd # viewing all users in the system # cut-d: -f1/etc/group # View all system groups # crontab-l # view the scheduled task service of the current user # chkconfig -- list # list all system Services # chkconfig -- list | grep on # list all started System Services
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.