Some basic Linux commands (software installation / basic settings ...)

Possible that some of the basic commands used in Linux

ifconfigcommand

If you use linux in the ifconfigcommand prompt command not found. Why?
Because if it is minimal install linux version, is not included with ifconfigthe installation package command, you need to install their own respective network tools
use the following command to install linux networking tools:

    $ sudo yum install net-tools

vimcommand

Using the vimcommand prompt command not found, also because there is no installing the package, there are two solutions:

  1. Use vithe command instead of vimcommand
  2. Enter the rpm -qa|grep vimcommand, if vim has been properly installed, will return the following three lines of code:
root@server1 [~]# rpm -qa|grep vim
vim-enhanced-7.0.109-7.el5
vim-minimal-7.0.109-7.el5
vim-common-7.0.109-7.el5

If a less one of them, such as the vim-enhanced, with the following command to install it:
yum -y install vim-enhanced
If the above three did not return to a, the following command can be used directly
yum -y install vim*

Guess you like

Origin www.cnblogs.com/vitoboy/p/12657479.html