View computer hardware properties in linux

Source: Internet
Author: User
Linux view computer hardware device properties # 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 computer hardware device properties in linux # uname-a # View kernel/OS/CPU information # head-n 1/etc/issue # View OS 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 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/ me Minfo # view the total memory # grep MemFree/proc/meminfo # view the amount of idle memory # uptime # view the system running time, number of users, 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 # 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 table # netstat -lntp # View all listening ports # netstat-antp # View all established connections # netstat-s # View Network Systems Information Process # ps-ef # View all processes # top # real-time display of process status users # w # View active users # id # 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 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 Service programs # rpm-qa # View all installed software packages cat/proc/cpuinfo: view CPU-related parameters cat/proc/partitions: View hard disk and partition cat/proc/meminfo: View memory information cat/proc/version: View version, similar to uname-rcat/proc /Ioports: view the device io port cat/proc/interrupts: view the interrupt cat/proc/pci: view the information of the pci device cat/proc/swaps: view the information of all swap partitions. how can I know the hardware devices in the system? Method 1: Use the lsdev command to display the devices and features in the system. For example: lsdev-C, but this command may not be available on the general system. for example, the Ora command I installed does not exist. Method 2: Display the/proc/dev file, which records some hardware information of the system, for example: cat/proc/dev method 3: to find a specific usb device, you can use the lsusb command to list all usb devices. If you want to find a specific pcmcia device, you can use the lspcmcia command to list all pcmcia devices. If you want to find a specific pci device, you can use the lspci command to list all pcm devices. In Linux, View hardware information and driver devices. in Linux, View hardware information and use the hardware detection program kudzu to test new hardware: service kudzu start (or restart). View CPU information: cat/proc/cpuinfo View board information: cat/proc/pci view PCI Information: lspci (more intuitive than cat/proc/pci) view memory information: cat/proc/meminfo view USB device: 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-a development of drivers in LINUX environment, first, we need to detect new hardware, and then develop the driver. Common commands are as follows: use the hardware detection program kudzu to detect new hardware: service kudzu start (or restart) to view CPU information: cat/proc/cpuinfo to view board information: cat/proc/pci view PCI Information: lspci (more intuitive than cat/proc/pci) view memory information: cat/proc/meminfo view USB device: 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-a dmidecode View hardware information, including bios, cpu, memory and other information dmesg | more View Hardware Information for "/proc" files can be viewed using the file view command to view 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

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.