binkery@T400:~$ cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
2 Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz
2个逻辑CPU
binkery@T400:~$ cat /proc/cpuinfo | grep physical | uniq -c
1 physical id : 0
1 address sizes : 36 bits physical, 48 bits virtual
1 physical id : 0
1 address sizes : 36 bits physical, 48 bits virtual
一颗CPU ,2个逻辑单元
binkery@T400:~$ cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l
2
(结果大于0, 说明支持64bit计算. lm指long mode, 支持lm则是64bit)
binkery@T400:~$ getconf LONG_BIT
64
当前运行在64位模式下
binkery@T400:~$ cat /proc/meminfo
binkery@T400:~$ uname -a
Linux T400 3.13.0-30-generic #55-Ubuntu SMP Fri Jul 4 21:40:53 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
binkery@T400:~$ cat /etc/issue
Ubuntu 14.04 LTS \n \l
binkery@T400:~$ sudo dmidecode | grep "Product Name"
Product Name: 276763C
Product Name: 276763C
binkery@T400:~$ env
binkery@T400:~$ free -m
total used free shared buffers cached
Mem: 2841 2690 151 333 53 624
-/+ buffers/cache: 2012 829
Swap: 2966 130 2836
binkery@T400:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 291G 40G 237G 15% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 1.4G 4.0K 1.4G 1% /dev
tmpfs 285M 1.3M 283M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.4G 26M 1.4G 2% /run/shm
none 100M 88K 100M 1% /run/user
binkery@T400:~$ du -sh Videos/
4.1G Videos/
binkery@T400:~$ uptime
10:46:03 up 7 days, 25 min, 4 users, load average: 1.72, 1.52, 1.40
binkery@T400:~$ ifconfig
binkery@T400:~$ route -n
binkery@T400:~$ netstat -lntp
binkery@T400:~$ netstat -antp
binkery@T400:~$ ps -ef
binkery@T400:~$ w
binkery@T400:~$ cut -d: -f1 /etc/passwd
binkery@T400:~$ cut -d: -f1 /etc/group
binkery@T400:~$ free
total used free shared buffers cached
Mem: 2909840 2779544 130296 340512 51300 576896
-/+ buffers/cache: 2151348 758492
Swap: 3038204 133328 2904876
- EOF -
本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动。
转载请注明:文章转载自 Binkery 技术博客 [https://binkery.com]
本文标题: Linux 系统资源查看管理常用命令
本文地址: https://binkery.com/archives/406.html