Common system Information lookup commands under Linux

Source: Internet
Author: User

This is a text version:

System Information

#uname-a #查看内核/operating system/CPU information

#cat/etc/issue #查看操作系统版本

#cat/proc/version #包含GCC的版本信息

#cat/proc/cpuinfo #查看CPU信息

#hostname #查看计算机名

#lspci-tv #列出所有pci设备

#lsusb-tv #列出所有usb设备

#lsmod #列出加载的内核模块

#env #查看环境变量

Resource information

#free-M #查看内存使用量和交换区使用量

#df-H #查看各分区使用情况

#du-sh < directory name > #查看指定目录的大小

#grep Memtotal/proc/meminfo #查看内存总量

#grep Memfree/proc/meminfo #查看空闲内存总量

#uptime #查看系统运行时间, number of users, load

#cat/proc/loadavg #查看系统负载

Disk information

#mount | Column-t #查看挂接的分区状态

#fdisk-L #查看所有分区

#swapon-S #查看所有交换分区

#hdparm-I/dev/hda #查看磁盘参数 (for IDE devices only)

#dmesg | grep IDE #查看启动时IDE设备检测状况

Network Information

#ifconfig #查看所有网络接口的属性

#iptables-L #查看防火墙设置

#route-N #查看路由表

#netstat-LNTP #查看所有监听端口

#netstat-ANTP #查看已经建立的连接

Process information

#ps-ef #查看所有进程

#top #实时显示进程状态

User Information

#w #查看活动用户

#id < user name > #查看指定用户信息

#last #查看用户登录日志

#cut-D:-f1/etc/passwd #查看系统所有用户

#cut-D:-f1/etc/group #查看系统所有组

#crontab-L #查看当前用户的计划任务

  This is the picture version:

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.