查看系统版本信息的命令: uname -a
联网安装vim
- ubuntu 系统输入命令:sudo apt-get install vim
- centos 系统输入命令:yum -y install vim*
此处可以看出我的Linux系统是Centos,安装过程如下:
[root@VM-0-5-centos home]# yum -y install vim*
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
Package 2:vim-minimal-7.4.629-8.el7_9.x86_64 already installed and latest version
Package 2:vim-common-7.4.629-8.el7_9.x86_64 already installed and latest version
......
Dependency Installed:
apr.x86_64 0:1.4.8-7.el7