Linux System Information View command

Source: Internet
Author: User

[Guide] system uname-a View kernel OS CPU Information Head-n 1 etc issue view OS version number cat proc Cpuinfo view CPU information hostname View computer name Lspci-tv List all PCI devices LSUSB-TV

System

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

# head-n 1/etc/issue #查看操作系统版本号

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

# hostname #查看计算机名

# Lspci-tv #列出全部PCI设备

# Lsusb-tv #列出全部USB设备

# Lsmod #列出载入的内核模块

# env #查看环境变量

Resources

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

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

# Du-sh < folder name > #查看指定文件夹的大小

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

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

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

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

Disks and partitions

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

# fdisk-l #查看全部分区

# swapon-s #查看全部交换分区

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

# DMESG | grep IDE #查看启动时IDE设备检測状况

Internet

# ifconfig #查看全部网络接口的属性

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

# route-n #查看路由表

# NETSTAT-LNTP #查看全部监听port

# NETSTAT-ANTP #查看全部已经建立的连接

# netstat-s #查看网络统计信息

Process

# Ps-ef #查看全部进程

# Top #实时显示进程状态

User

# W #查看活动用户

# ID <username> #查看指定用户信息

# Last #查看用户登录日志

# cut-d:-f1/etc/passwd #查看系统全部用户

# cut-d:-f1/etc/group #查看系统全部组

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

Service

# chkconfig--list #列出全部系统服务

# chkconfig--list | grep on #列出全部启动的系统服务

Program

# Rpm-qa #查看全部安装的软件包


Linux System Information View command

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.