Basic Search commands and viewing information under Linux

Source: Internet
Author: User

Find command and hardware information viewing is the most common system management and maintenance operations. Below is a brief comparison of basic Linux search commands, and lists some common hardware information to view commands.

Man common options
-k              知道功能、不知道名称-f              知道名称、不知道功能
Comparison of various find 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 the 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
See the most direct and most common commands for memory and CPUs:
[[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/ -/ the, trksize=0, sectsize=0, eccbytes=4Bufftype=unknown, buffsize=16384KB, maxmultsect= -, 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

Basic Search commands and viewing information under 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.