Common but useful query commands in Linux

Source: Internet
Author: User
Article Title: query commands that are not commonly used but are useful in Linux. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems and open source, and other basic classification I. Command for viewing system version information
 
Several Methods to view linux version information:
 
1. uname-
 
2. cat/proc/version
 
3. cat/etc/issue
 
4. lsb_release-
 
Details about lsb_release-
 
Log on to the server and execute lsb_release-a to list all version information, for example:
 
1. [root@3.5.5Biz-46 ~] # Lsb_release-
 
2. lsbversion: 1.3
 
3. Distributor ID: RedHatEnterpriseAS
 
4. Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 1)
 
5. Release: 4
 
6. Codename: NahantUpdate1
 
7. [root@3.5.5Biz-46 ~] #
 
This command applies to all linux releases, including Redhat, SuSE, and Debian.
 
Ii. Command for viewing hardware information (Linux & Solaris)
 
Command for viewing hardware information in linux
 
View CPU:
 
Cat/proc/cpuinfo
 
View memory:
 
Cat/proc/meminfo
 
Free
 
View Hard Disk:
 
Df-h-T (no device cannot be seen)
 
Fdisk-l can be viewed in redhat9.0; redhat Enterprise Edition does not work.
 
View IRQ usage
 
Cat/proc/interrupts
 
There are several commands in linux to view the information of many hardware devices.
 
Lspci-v
 
Dmidecode
 
Dmesg
 
Solaris:
 
Nic speed: dmesg | grep link
 
CPU frequency: psrinfo-v or mpstat
 
Cpu/memory, etc.: prtdiag-v (most of the information is listed) needs to first enter/usr/platform/sun4u/sbin
 
Hard Disk: iostat-E
 
Iii. Speed and traffic
 
View traffic:
 
Iptraf
 

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.