Linux Command and learning progress comprehensive collation
PWD View current Location CD jump to what directory LS display all files and directories ls-l display directory details CD. Return to the previous level VI lnany.txt create a file VI. lnany.txt Create a hidden file vim is the upgrade feature of VI more appeared-bash:vim:command not found solution
I. So how to install vim?
Enter the Rpm-qa|grep vim command, and if Vim is properly installed, it will return the following three lines of code:
[email protected] [~]
# 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 one of the strips is missing, such as vim-enhanced, use the command yum-y install vim-enhanced Laian:
yum -y
install
vim-enhanced
If none of the above three strips is returned, you can use the Yum-y install vim* command directly
yum -y
install
vim*
When executing a command on a Linux terminal
Prompt for errors
You need to being root to perform the This command is prompt to get root permissions
Enter the SU enter password
can be resolved
Vim lnany.txt Create a file vim. lnany.txt Create a hidden file LS-LH h= Human user-friendly display file (showing file size with units of the kind) Ls-a Show hidden files
Linux Command and learning progress comprehensive collation