linux 进程
[root@bogon ~]# ps aux
[root@bogon ~]# pstree -p |grep sshd
[root@bogon ~]# kill -l
kill -1 pid 重启
kill -9 pid 强制杀死
w 查询系统中已经登录的用户
pkill -9 -t tty1 踢出用户
//***********************************
查看硬件信息
[root@bogon bin]# dmesg | grep CPU
或
[root@bogon bin]# cat /proc/cpuinfo
Transmeta TransmetaCPU
SMP: Allowing 1 CPUs, 0 hotplug CPUs
Detected CPU family 6 model 69
UNSUPPORTED HARDWARE DEVICE: CPU family 6 model > 59
NR_CPUS:32 nr_cpumask_bits:32 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 14 pages/cpu @cac00000 s35928 r0 d21416 u2097152
Initializing CPU#0
CPU: Physical Processor ID: 0
mce: CPU supports 0 MCE banks
CPU0: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz stepping 01
Brought up 1 CPUs
microcode: CPU0 sig=0x40651, pf=0x1, revision=0x1c
[root@bogon bin]# vmstat 1 3
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
0 0 0 1724804 16772 100252 0 0 42 4 38 55 0 1 96 4 0
0 0 0 1724796 16772 100252 0 0 0 0 37 54 0 0 100 0 0
0 0 0 1724796 16772 100252 0 0 0 0 34 56 0 0 100 0 0
[root@bogon bin]# uname -a
Linux bogon 2.6.32-279.el6.i686 #1 SMP Fri Jun 22 10:59:55 UTC 2012 i686 i686 i386 GNU/Linux
[root@bogon bin]# file /bin/ls
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
更多推荐
所有评论(0)