楼主: jewelzd
1017 1

2011-04-05 00:08:52 类UNIX系统工具集手册 Hardware部分 [推广有奖]

  • 0关注
  • 0粉丝

学前班

50%

还不是VIP/贵宾

-

威望
0
论坛币
10 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
124 点
帖子
2
精华
0
在线时间
0 小时
注册时间
2011-4-4
最后登录
2011-4-5

楼主
jewelzd 发表于 2011-4-5 00:10:38 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
SYSTEMHardware | Statistics | Users | Limits | Runlevels | root password | Compile kernel | Repair grub
Running kernel and system information# uname -a # Get the kernel version (and BSD version) # lsb_release -a # Full release info of any LSB distribution # cat /etc/SuSE-release # Get SuSE version # cat /etc/debian_version # Get Debian version
Use /etc/DISTR-release with DISTR= lsb (Ubuntu), redhat, gentoo, mandrake, sun (Solaris), and so on. See also /etc/issue.

# uptime
# Show how long the system has been running + load

# hostname
# system's host name

# hostname -i
# Display the IP address of the host. (Linux only)

# man hier
# Description of the file system hierarchy

# last reboot
# Show system reboot history

Hardware Informations
Kernel detected hardware

# dmesg
# Detected hardware and boot messages

# lsdev
# information about installed hardware

# dd if=/dev/mem bs=1k skip=768 count=256 2>/dev/null | strings -n 8 # Read BIOS
Linux
# cat /proc/cpuinfo
# CPU model

# cat /proc/meminfo
# Hardware memory

# grep MemTotal /proc/meminfo
# Display the physical memory

# watch -n1 'cat /proc/interrupts'
# Watch changeable interrupts continuously

# free -m
# Used and free memory (-m for MB)

# cat /proc/devices
# Configured devices

# lspci -tv
# Show PCI devices

# lsusb -tv
# Show USB devices

# lshal

# Show a list of all devices with their properties

# dmidecode
# Show DMI/SMBIOS: hw info from the BIOS

FreeBSD
# sysctl hw.model
# CPU model

# sysctl hw
# Gives a lot of hardware information

# sysctl hw.ncpu
# number of active CPUs installed

# sysctl vm
# Memory usage

# sysctl hw.realmem
# Hardware memory

# sysctl -a | grep mem
# Kernel memory settings and info

# sysctl dev
# Configured devices

# pciconf -l -cv
# Show PCI devices

# usbdevs -v
# Show USB devices

# atacontrol list
# Show ATA devices

# camcontrol devlist -v
# Show SCSI devices
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:类UNIX系统工具 Hardware 系统工具 Ware Unix Hardware 类UNIX系统工具

沙发
jewelzd 发表于 2011-4-5 00:19:48
Load, statistics and messagesThe following commands are useful to find out what is going on on the system.# top                                # display and update the top cpu processes
# mpstat 1                           # display processors related statistics
# vmstat 2                           # display virtual memory statistics
# iostat 2                           # display I/O statistics (2 s intervals)
# systat -vmstat 1                   # BSD summary of system statistics (1 s intervals)
# systat -tcp 1                      # BSD tcp connections (try also -ip)
# systat -netstat 1                  # BSD active network connections
# systat -ifstat 1                   # BSD network traffic through active interfaces
# systat -iostat 1                   # BSD CPU and and disk throughput
# tail -n 500 /var/log/messages      # Last 500 kernel/syslog messages
# tail /var/log/warn                 # System warnings messages see syslog.conf

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
jg-xs1
拉您进交流群
GMT+8, 2025-12-25 21:04