常用Linux命令备忘

最后更新日期:2014-06-20 01:03:27



Linux命令太博大精深了,一些有用的命令,记录一下

一.系统信息类

1.1 查看发行版

uname

1
2
3
4
5
6
7
8
9
# uname
Linux
# uname -r
2.6.32-358.6.2.el6.x86_64
# uname -a
Linux www.fanicy.com 2.6.32-358.6.2.el6.x86_64 #1 SMP Thu May 16 20:59:36
UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

cat

1
2
3
4
5
6
7
8
# cat /etc/redhat-release #适用于RedHat系列
CentOS release 6.5 (Final)
#当前centos 版本与redhat对应的版本的命令
# cat /proc/version
Linux version 2.6.32-358.6.2.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org)
(gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) )
#1 SMP Thu May 16 20:59:36 UTC 2013

rpm

1
2
3
4
5
# rpm -q redhat-release #适用于RedHat
package redhat-release is not installed
# rpm -q centos-release #适用于CentOS
centos-release-6-5.el6.centos.11.2.x86_64

二.待补充

2.1 待补充

##参考







结束语