Linux in the main search command and view information

Source: Internet
Author: User

Find commands and hardware information to view the daily system administration, most common maintenance operations.

Follow the Linux Basic Find command to make a simple comparison. and lists some of the hardware information frequently used by the view command.

Man often uses options
-k              知道功能、不知道名称-f              知道名称、不知道功能
Comparison of various search commands
whereis         查找命令的可执行文件、源文件、man page路径whatis          读取命令的描写叙述apropos         基于功能的查找which           找出将要执行的命令的版本号locate          搜索文件名称数据库find            依据指定的查询条件搜索文件find . -type f | grep -i blasfidn . -type f -name "*.a" | grep -i blaslsb_release -a  查看系统版本号alias           查看全部别名ls -lh          按k、m、g查看文件
Viewing hardware information GPU information

View Mic Card Information

sudo micinfo

viewing GPU Information

sudo nvidia-smi

How to view the NIC model under Linux/centos. How to view motherboard model, cpu/graphics information, hard drive model and other hardware information

View NIC Model
[[email protected]]# lspci | grep Ethernet  00:19.082567V-2 Gigabit Network Connection
View the most direct and most frequently used commands for memory and CPU:
[[email protected]]# FreeTotal used free shared buffers Cachedmem:3069504     528876    2540628          0      76648     396152-/+ Buffers/cache:56076    3013428Swap:5124692          0    5124692[[email protected]]# Cat/proc/cpuinfoProcessor:0VENDOR_ID:GENUINEINTELCPU Family:6Model: atModel Name:pentium (R) dual-core CPU E6500 @2.93Ghzstepping:TenCPU MHz:1596.000Cache Size:2048Kb
View hard drive information (view hard drive model and hard drive serial number):
[[email protected]]# df-hFilesystem Size used Avail use% mounted ON/DEV/SDA52.0G272M1.6G the%//DEV/SDA8199G188M189G1%/home/dev/sda39.7G1.3G7.9G the%/usr/dev/sda29.7G198M9.0G3%/VAR/DEV/SDA1 AboutM -M theM -%/boot

Method 1:

[[email protected]]# 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=?

-? curchs=16383/ -/ the, cursects=16514064, Lba=yes, lbasects=268435455Iordy=on/off, Tpio={min: -, W/iordy: -}, Tdma={min: -, rec: -} PIO modes:pio0 pio1 Pio2 pio3 Pio4 DMA modes:mdma0 mdma1 mdma2 UDMA modes:udma0 udma1 udma2 Advancedpm=yes:disa Bled (255) writecache=enabled Drive Conforms to:unknown:ata/atapi-0ata/atapi-1ata/atapi-2ata/atapi-3ata/atapi-4ata/atapi-5ata/atapi-6ata/atapi-7* signifies the current active mode

Method 2:

[[email protected]]# DMESG | grep ATAAta1:sata Max udma/133Cmd0xf190 ctl0xf180 BMDMA0xf150 IRQ185Ata2:sata Max udma/133Cmd0Xf170 ctl0xf160 BMDMA0xf158 IRQ185Ata1:sata Link Up3.0Gbps (sstatus123SControl -) ata1.xx: ata-8: SAMSUNG He253gj,1AJ30001, Max udma/133Ata2:sata Link Down (sstatus0SControl -) Vendor:ata Model:samsung he253gj Rev:1Aj3ata3:sata Max udma/133Cmd0xf130 ctl0xf120 BMDMA0XF0F0 IRQ185Ata4:sata Max udma/133Cmd0Xf110 ctl0Xf100 BMDMA0Xf0f8 IRQ185Ata3:sata Link Down (sstatus0SControl -) Ata4:sata link Down (sstatus0SControl -) Ata5:pata Max udma/ -Cmd0xe040 ctl0xe030 BMDMA0xe000 IRQ177
[[email protected]]# dmidecode|more# dmidecode 2.102.4 present.57231800type024 bytesBIOS Information        Vendor: Intel Corp.        Version: GTG4310H.86A.0019.2009.0625.1334        06/25/2009

Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.

Information on the main search commands and views of Linux

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.