Basic Search commands and information in Linux, and query commands in linux

Source: Internet
Author: User

Basic Search commands and information in Linux, and query commands in linux

Searching for commands and hardware information is the most common operation for daily system management and maintenance. Next we will make a brief comparison of the Basic Search commands in Linux and list some common hardware information viewing commands.

Man common options
-K knows the function, does not know the name-f knows the name, does not know the function
Comparison of various search commands
Description of the command query executable file, source file, and man page path whatis description of the command. apropos searches for the function based on the function. which finds the version of the command to be run. locate searches for file names. database find Based on the specified Query conditional search file find. -type f | grep-I blasfidn. -type f-name "*. a "| grep-I blaslsb_release-a view system version alias view all aliases ls-lh view files by k, m, g
View hardware information GPU Information

View mic card information

sudo micinfo

View gpu Information

sudo nvidia-smi

In Linux/centos, how does one view Nic models, motherboard models, CPU/graphics card information, hard disk models, and other hardware information?

View Nic Model
[root@www.ctohome.com]# lspci | grep Ethernet  00:19.0 Ethernet controller: 82567V-2 Gigabit Network Connection
The most direct and Common commands for viewing memory and cpu:
[root@www.ctohome.com]# free             total       used       free     shared    buffers     cachedMem:       3069504     528876    2540628          0      76648     396152-/+ buffers/cache:      56076    3013428Swap:      5124692          0    5124692[root@www.ctohome.com]# cat /proc/cpuinfo processor       : 0vendor_id       : GenuineIntelcpu family      : 6model           : 23model name      : Pentium(R) Dual-Core  CPU      E6500  @ 2.93GHzstepping        : 10cpu MHz         : 1596.000cache size      : 2048 KB
View hard disk information (view Hard Disk Model and hard disk serial number ):
[root@www.ctohome.com]# df -hFilesystem            Size  Used Avail Use% Mounted on/dev/sda5             2.0G  272M  1.6G  15% //dev/sda8             199G  188M  189G   1% /home/dev/sda3             9.7G  1.3G  7.9G  15% /usr/dev/sda2             9.7G  198M  9.0G   3% /var/dev/sda1              99M   17M   77M  18% /boot

Method 1:

[root@www.ctohome.com]#  hdparm -i /dev/sda/dev/sda: Model=SAMSUNG HE253GJ                         , FwRev=1AJ30001, SerialNo=      S2B5J90ZC12060 Config={ Fixed } RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4 BuffType=unknown, BuffSize=16384kB, MaxMultSect=16, MultSect=?16? CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes:  pio0 pio1 pio2 pio3 pio4  DMA modes:  mdma0 mdma1 mdma2  UDMA modes: udma0 udma1 udma2  AdvancedPM=yes: disabled (255) WriteCache=enabled Drive conforms to: unknown:  ATA/ATAPI-0 ATA/ATAPI-1 ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-4 ATA/ATAPI-5 ATA/ATAPI-6 ATA/ATAPI-7 * signifies the current active mode

Method 2:

[root@www.ctohome.com]#    dmesg | grep ATAata1: SATA max UDMA/133 cmd 0xf190 ctl 0xf180 bmdma 0xf150 irq 185ata2: SATA max UDMA/133 cmd 0xf170 ctl 0xf160 bmdma 0xf158 irq 185ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)ata1.00: ATA-8: SAMSUNG HE253GJ, 1AJ30001, max UDMA/133ata2: SATA link down (SStatus 0 SControl 300)  Vendor: ATA       Model: SAMSUNG HE253GJ   Rev: 1AJ3ata3: SATA max UDMA/133 cmd 0xf130 ctl 0xf120 bmdma 0xf0f0 irq 185ata4: SATA max UDMA/133 cmd 0xf110 ctl 0xf100 bmdma 0xf0f8 irq 185ata3: SATA link down (SStatus 0 SControl 300)ata4: SATA link down (SStatus 0 SControl 300)ata5: PATA max UDMA/100 cmd 0xe040 ctl 0xe030 bmdma 0xe000 irq 177
[root@www.ctohome.com]# dmidecode|more# dmidecode 2.10SMBIOS 2.4 present.57 structures occupying 2318 bytes.Table at 0x000E84B0.Handle 0x0000, DMI type 0, 24 bytesBIOS Information        Vendor: Intel Corp.        Version: GTG4310H.86A.0019.2009.0625.1334        Release Date: 06/25/2009


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.