View System Information command under Linux

View System Information command under Linux

Grateful for the dedication of the people
Transfer from: http://www.jb51.net/article/97157.htm

1.1 View CPU number
cat / proc / cpuinfo | grep "PHYSICAL the above mentioned id" | uniq | WC the -l
uniq command: Remove duplicate rows; wc -l command: count the number of rows
1.2 View CPU core number
cat / proc / cpuinfo | grep " Cores the CPU "| uniq
1.3 View CPU type
cat / proc / cpuinfo | grep ' model name' | uniq

2.1 Memory View the total number of
cat / proc / meminfo | grep MemTotal

Here is a collection of commands, for reference:
uname -a # View kernel / operating system / CPU linux system information of the
head -nl / etc / issue # check the OS version
cat / proc / cpuinfo # View CPU information
hostname # View linux command information system computer name
lspci -tv # list all PCI devices
lsusb -tv # linux system lists all USB devices information command
lsmod # listed kernel module loaded
env # viewing environment variable resources
free -m # View memory the amount and use of swap
df -h # see how each partition usage
du -sh # View the specified directory size
grep MemTotal / proc / meminfo # view the amount of memory
grep MemFree / proc / meminfo # view the amount of free memory
uptime # View system uptime, number of users, load
cat / proc / loadavg # View system load disk and partition
mount | column -t # View articulated partition status
fdisk -l # View all partition
swapon -s # View all swap partitions
hdparm -i / dev / hda # View disk parameters (only for IDE devices)
dmesg | IDE devices to detect network conditions when grep IDE # View start
ifconfig # View all the properties of the network interface
iptables -L # View firewall settings
route -n # View the routing table
netstat -lntp # View all listening ports
netstat -antp # view all established connections
netstat -s # View network statistics process
ps -ef # view all processes
top # display real-time process status of the user
w # view active user
id # specify the user to view information
last # view the user login log
cut -d: -f1 / etc all users / passwd # View system
cut -d: - f1 / etc / group # View all system groups
crontab -l # to view the current user's scheduled tasks service
chkconfig -list # lists all system services
chkconfig -list | grep on # start lists all system services
rpm -qa # View all installed packages
cat / proc / cpuinfo: View CPU-related parameters linux system command
cat / proc / partitions: View system information command linux hard disk and partition information
cat / proc / meminfo: memory information see linux system linux system command
cat / proc / version: Check version, similar to the uname -r
cat / proc / ioports: View equipment io port
cat / proc / interrupts: View interrupts
cat / proc / pci: pci device View information
cat / proc / swaps: View information for all swap partitions

3.1 Check the hard disk size
fdisk -l | grep Disk

Guess you like

Origin blog.csdn.net/weixin_43713498/article/details/88226219