Linux Learning Notes

Source: Internet
Author: User

First, Linux common commands

1 ls      #列出目录下的文件 2 CD..   #返回上一层目录 3 cd ~    #进入Home目录 4 pwd     #查看当前路径
TAB key #自动补全: Enter the first few characters of the file or directory name, then press the TAB key, such as no phase weight will be automatically complete, if there is a phase weight and then press the TAB key, will be listed in the current directory all the files beginning with these characters

Ii. edit, save and exit files through VI

Press the ESC key to exit edit mode and enter the following commands for different situations:
1 : Wq   #保存后退出vi, if: wq! is forced storage after the exit (common)2: w    #保存但不退出 (Common)3 : w!    #若文件属性为 Read-only, force write to the archive 4: q    #离开 VI (Common)5 : q!   #若曾修改过档案, do not want to store, use! do not store files for forced departure 6 : e!   #将档案还原到最原始的状态

Linux Learning Notes

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.