Getting Started with Linux-5

Source: Internet
Author: User

Getting Started with Linux-5

1: What is the relationship between Editor VI and VIM
VI and VIM are software for editing files

vim 是vi的升级版 一般都用vim               vi 就是vim的符号链接文件           当vi 一个不存在的文件时 自动创建该文件,若没有写入内容退出即丢失  

2:vi Two modes of operation:

命令模式: 当vi一个文件时自动为命令模式,若要进入输入模式需要按 a 或者i    一般命令:              :wq  保存并退出             :w   只保存             :q   保存             :wq!保存并强制退出             :q! 强制退出不保存            输入模式:输入模式下 按Esc退出输入模式进入命令模式。

Advanced Applications for 3:vi: Find, quickly switch rows, set display line numbers

所有命令都在vi的命令模式下输入查找          / 123    在命令模式下输入 /123快速切换行   在命令模式下输入  :123   (切换到123行)设置显示行号  set nu取消显示行号    set nonu        要想修改默认显示设置  需要进入vi配置文件 ~/.vimrc                      在其中输入 set nu 或 set nonu                       (进入方法为 vi ~/。vimrc)

4:linux the meaning of some symbols in the command line

.       当前目录..      上一层目录-       前一个目录#       root用户的命令行提示符号$      普通用户的命令行提示符号/       根目录~ (波浪线)    宿主目录   (当前用户的目录  在  /home/username/下)               (root用户        在/root/下        cd ~  可以快速回到宿主目录*       万能匹配符号

5:VI Advanced Application: Row Delete _ copy and paste

行删除:命令模式下 dd  删除一行 (光标放到行首)           3dd 删除三行  (光标放到三行的第一行行首)行复制:命令模式下 yy  复制一行  (光标放到行首)           3yy fuzhi 三行 (光标放到三行的第一行的行首)粘贴:p   (从当前光标所在位置的下一行开始粘贴 )

After five articles about Linux, for simple operation is enough, but for the Linux application development behind us is a bit difficult, my method is, for a technology, first learn basic use, wait until further use of the time to further study, The advantage of the first: avoid the wrong end of the deep and do not know what to learn it, second: the prevention of pure theory empty, third: Learn to use, the technology as a tool rather than the purpose.

Getting Started with Linux-5

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.