Linux System Information viewing commands (commonly used on the Development Board) __linux

Source: Internet
Author: User

When using an embedded development Board running a Linux system (example imx6 Saber Lite), important commands are often used, such as viewing the system version of the brush into the development Board, the CPU of the Development Board, the various external devices that the Development Board inserts (such as the USB wifi,3g MODEM, SATA hard drive ..... ), the memory footprint.

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 < directory 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 #查看所有监听端口

# NETSTAT-ANTP #查看所有已经建立的连接

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

Process

# Ps-ef #查看所有进程

# Top #实时显示进程状态

User

# W #查看活动用户

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

# Last #查看用户登录日志

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

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

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

Service

# chkconfig--list #列出所有系统服务

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

Program

# Rpm-qa #查看所有安装的软件包

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.