View common commands for Linux systems, Linux View system configuration common commands

Source: Internet
Author: User
Tags dmesg

One, the Linux CPU size
Cat/proc/cpuinfo |grep "model name" && cat/proc/cpuinfo |grep "Physical ID"


Description: Detailed information about each CPU can be seen in/proc/cpuinfo under Linux. But for a dual-core CPU, you will see two CPUs in the Cpuinfo. It is often mistaken for a two single-core CPU.
You should actually differentiate between single-core and dual-core by physical Processor ID. The physical Processor ID can be found from Cpuinfo or DMESG. Flags if there are HT instructions to support Hyper-Threading technology to determine the number of physical CPUs you can view the value of the physical ID, the same

Following


Second, memory size

Cat/proc/meminfo |grep Memtotal

Three, hard disk size
Fdisk-l |grep Disk

Four
UNAME-A # Linux System Information command to view kernel/Os/cpu information


Five, head-n 1/etc/issue # View OS version, is the number 1 not the letter L

Vi. Cat/proc/cpuinfo # Linux System Information commands for viewing CPU information

Vii. hostname # View Linux System Information commands for computer names

Viii. Lspci-tv # List of all PCI devices

Ix. LSUSB-TV # Lists Linux System Information commands for all USB devices

X. LSMOD # List of loaded kernel modules

Module Size used byautofs4 26513 3 sunrpc 260521 1 8021q 25317 0 garp 7152 1 8021qstp 2218 1 GARPLLC 5546 2 garp,s Tpcpufreq_ondemand 10544 2 powernow_k8 18171 1 freq_table 4936 2 Cpufreq_ondemand,powerno W_k8mperf 1557 1 powernow_k8ip6t_reject 4628 2 Nf_conntrack_ipv6 8748 2 nf_defrag_i Pv6 11182 1 nf_conntrack_ipv6xt_state 1492 2 nf_conntrack 79357 2 nf_conntrack_ipv6,xt _stateip6table_filter 2889 1 ip6_tables 19458 1 Ip6table_filteripv6 321422-ip6t                _reject,nf_conntrack_ipv6,nf_defrag_ipv6ppdev 8537 0 parport_pc 22690 0 parport   36209 2 ppdev,parport_pcasus_atk0110 14216 0 sg 29350 0 microcode 112653           0 Serio_raw    4594 0 k10temp 3609 0 edac_core 46581 0 edac_mce_amd 14705 0 snd_hda_codec_ Realtek 68136 1 Snd_hda_intel 27823 2 snd_hda_codec 121518 2 snd_hda_codec_realtek,snd_hda_intelsnd                _HWDEP 6652 1 snd_hda_codecsnd_seq 55759 1 snd_seq_device 6500 1 SND_SEQSND_PCM 86635 2 Snd_hda_intel,snd_hda_codecsnd_timer 22411 3 snd_seq,snd_pcmsnd 69 907 Snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_seq_device,snd_pcm,snd_  Timersoundcore 7958 1 sndsnd_page_alloc 8470 2 snd_hda_intel,snd_pcmi2c_piix4 12608                  0 r8169 60023 0 mii 5376 1 r8169shpchp 32778 0 ext4 363408 3 mbcache 8193 1 ext4jbd2 90230 1 ext4sr_mod 15177 0 Cdro   M 39085 1 Sr_modsd_mod              38976 3 crc_t10dif 1541 1 SD_MODAHCI 41127 2 pata_acpi 3701                    0 ata_generic 3837 0 pata_atiixp 4211 0 Radeon 917108 0 TTM             80957 1 radeondrm_kms_helper 40087 1 radeondrm 265638 3 radeon,ttm,drm_kms_helperi2c_algo_bit              5935 1 Radeoni2c_core 31084 5 i2c_piix4,radeon,drm_kms_helper,drm,i2c_algo_bitdm_mirror                 14133 0 Dm_region_hash 12085 1 dm_mirrordm_log 9930 2 dm_mirror,dm_region_hashdm_mod 82839 Dm_mirror,dm_log

Xi. env # View environment variable resources

less_termcap_mb=hostname=localhost.localdomainless_termcap_md=less_termcap_me=term=xtermshell=/bin/ Bashhistsize=1000nls_lang=american_america. al32utf8ssh_client=192.168.1.104 2465 22qtdir=/usr/lib64/qt-3.3oldpwd=/homeless_termcap_ue=qtinc=/usr/lib64/ Qt-3.3/includessh_tty=/dev/pts/1user=rootld_library_path=/usr/lib/oracle/11.2/client64/lib:ls_colors=rs=0:di= 01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg =30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01; 31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*. Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31 :*. deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*. jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*. xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v= 01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01 ; 35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35: *.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*. aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*. Ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:oracle_base=/usr/lib/oracle/11.2less_ termcap_us=mail=/var/spool/mail/rootpath=/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/ sbin:/usr/bin:/usr/local/erlang/bin:/home/rabbitmq_server-3.3.1/sbin/:/usr/lib/oracle/11.2/client64/bin:/root/ Binpwd=/lang=zh_cn. utf-8kde_is_prelinked=1modulepath=/usr/share/modules/modulefiles:/etc/modulefilesloadedmodules=kdedirs=/uSrssh_askpass=/usr/libexec/openssh/gnome-ssh-askpasshistcontrol=ignoredupsshlvl=1 

12. Free-m # View memory usage and swap area usage

                    Total used       free     shared    buffers     cachedmem:          3706       3534        171          0       3258-/+ Buffers/cache:        244       3461Swap:         3711          0       

13, Df-h # View the usage of each partition

[[email protected]/]# df-h file system          capacity  used with  available percent mount point/dev/mapper/volgroup-lv_root                       50G  6.4G   41G  14%/tmpfs                 1.9G   72K  1.9G   1%/dev/shm/dev/sda1             485M   38M  422M   9%/boot/dev/mapper/volgroup-lv_home                      406G  2.8G  382G   1%/Home

The following is not a demonstration


14, Du-sh # View the size of the specified directory
15. grep Memtotal/proc/meminfo # View Total Memory
16. grep Memfree/proc/meminfo # View the amount of free memory
17. Uptime # View System uptime, number of users, load
18. Cat/proc/loadavg # View system load disks and partitions
19, Mount | column-t # View the status of the attached partition
20. Fdisk-l # View all partitions
21. Swapon-s # View all swap partitions
22. Hdparm-i/dev/hda # View disk parameters (for IDE devices only)
23, DMESG | grep IDE # VIEW IDE device detection network at startup
24. Ifconfig # View the properties of all network interfaces
25. Iptables-l # View firewall settings
26. Route-n # View the routing table
27. NETSTAT-LNTP # View all listening ports
28. NETSTAT-ANTP # View all established connections
29. Netstat-s # Viewing the network statistics process
30. Ps-ef # View All Processes
31, Top # Real-time display process status users
32. W # View Active Users
33. ID # View specified user information
34. Last # View user log in log
35, cut-d:-F1/ETC/PASSWD # View All users of the system
36, cut-d:-f1/etc/group # View all system groups
37. Crontab-l # View the current user's scheduled tasks service
37. Chkconfig–list # List all system services
38, Chkconfig–list | grep on # list all started system services
39. Rpm-qa # View all installed packages
40. Cat/proc/cpuinfo: Linux system commands to view CPU-related parameters
41, Cat/proc/partitions: View the Linux hard disk and partition information System Information command
42. Cat/proc/meminfo: Linux system command to view Linux system memory information
43, Cat/proc/version: View version, similar to Uname-r
44. Cat/proc/ioports: View device IO port
45. Cat/proc/interrupts: View interrupts
46. CAT/PROC/PCI: View PCI Device information
47. Cat/proc/swaps: View information for all swap partitions

View common commands for Linux systems, Linux View system configuration common commands

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.