View system resources in linux

Source: Internet
Author: User
Tags dmesg
Linux system resources to view the system www.2cto.com # uname-a # View kernel/operating system/CPU information # head-n1/etc/issue # view the operating system version # cat/proc/cpuinfo # View CPU information # hostname # View Computer Name #... view system resources in linux: www.2cto.com # 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 resources # 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 # swapon-s # View all swap partition # 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 statistics www.2cto.com process # ps-ef # View all processes # top # real-time display of process status users # 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 tasks of the current user www.2cto.com service # chkconfig -- list # list all system Services # chkconfig -- list | grep on # List all started System Service programs # rpm-qa # view the common commands of all installed software packages as follows: view the serial number of the motherboard: dmidecode | grep-I 'serial number' use the hardware detection program kuduz to detect the new hardware: service kudzu start (or restart) to view the 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 graphics card/sound card information: lspci | grep-I 'vga '[dmesg | grep-I 'vga'] to view the Nic information: dmesg | grep-I 'eth '[cat/etc/sysconfig/hwconf | grep-I eth] [lspci | grep-I 'eth'] www.2cto.com View PCI Information: lspci (more intuitive than cat/proc/pci) view USB devices: 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 view and start the 32-bit or 64-bit kernel mode of the system: isalist-v [isainfo-v] [isainfo-B] dmidecode: View hardware information, including bios, cpu, memory, and other information to determine the current display refresh frequency: /usr/sbin/ffbconfig-rev \? View system configuration:/usr/platform/sun4u/sbin/prtdiag-v view the patches applied in the current system: showrev-p displays the current running level: who-rH: nslookup-class = chaos-q = txt version. binddmesg | more View hardware information lspci display peripheral information, such as usb, Nic and other information lsnod View loaded driver lshwpsrinfo-v view current processor type and speed (clock speed) prtconf-v print the current OBP version www.2cto.com iostat-E to view the hard disk physical information (vendor, RPM, Capacity) prtvtoc/dev/rdsk/c0t0d0s view the disk's geometric parameters and partition information df-F ufs-o I display the number of I-nodes used and not used isalist-v for "/proc you can use the file view command to browse the file 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 remarks: proc-process information pseudo-filesystem process information camouflage file system hardware view CPU information (model) # cat/proc/cpuinfo | grep name | cut-f2-d: | uniq-c 8 Intel (R) Xeon (R) CPU E5410 @ 2.33 GHz (we can see eight logic CPUs and the CPU model) www.2cto.com # cat/proc/cpuinfo | grep physical | uniq-c 4 physical id: 0 4 physical id: 1 (actually two 4-core CPUs) www.2cto.com # getconf LONG_BIT 32 (it indicates that the current CPU runs in 32bit mode, but does not indicate that the CPU does not support 64bit) # cat/proc/cpuinfo | grep flags | grep 'LM '| wc-l 8 (the result is greater than 0, indicating 64bit computing is supported. lm refers to the long mode, and supports lm is 64bit) and then the detailed cpu information is fully read, but most of us do not care about it. # dmidecode | grep 'processor information' view memory Information # cat/proc/meminfo # uname-a Linux euis1 2.6.9-55. ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux (view the kernel information of the current operating system) # cat/etc/issue | grep Linux Red Hat Enterprise Linux AS release 4 (Nahant Update 5) (view information about the current operating system release) view the machine model # dmidecode | grep "Product Name"
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.