Linux命令--部分常用命令

 

1、检查操作系统的环境

[root@localhost /]# cat /etc/redhat-release 
CentOS Linux release 7.5.1804 (Core) 

[root@localhost /]# uname -r
3.10.0-862.el7.x86_64

[root@localhost /]# uname -a
Linux localhost.localdomain 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

#有些版本的Linux可用这个命令
[root@localhost /]# cat /etc/issue

 2、安装vim
应该说是安装vim-enhanced :
yum install vim -y
默认是安装vi --vim,但在root用户用 xshell 连接时字体颜色没有区分,安装vim后,可以明显看出来,如果经常是用vi(vim)强烈推荐安装;



 

 

 

 

posted @ 2011-05-23 03:34  七彩乌云  阅读(117)  评论(0)    收藏  举报