Linux Basic Knowledge PART3

Source: Internet
Author: User

Tar Package
tar-cvf/test/abc.tar/test/* #打包, first write the name of the tar package, write the content to be packaged, if the absolute path is written, then the Directory page will be packaged in
TAR-CVZF #调用gunzip Compressed Tar Package
TAR-TF Abc.tar #查看tar包
TAR-XVF abc.tar-c/test/#-c Specify the decompression path
CP #命令不适合备份文件, takes up too many files

Vim
command line mode common commands: G jumps to the end of the line, GG jumps to the beginning, $ jumps to the end of the line, 0 jumps to the beginning
Copy 3 lines, press 3 and then YY
Digital +yy Copy several lines
Digital +p Paste a few lines
Number +DD Delete a few lines, after DD +p equivalent to cut operation
10+g Jump To Line 10
U undo
Ctrl+r forward
/Find n View next find content

Vim three states: command line Edit extension

Vim Extended State:

:%s/python/python/g% Global change, changing Python to Python,g includes second, third, and so on each line

Start level
Vim/etc/.inittab
Init 0 shutdown
Init 6 Restart
Shutdown-h now shutdown

Single-User mode
Restart, select the interface by E,

Add a init=/bin/sh to the back.

Delete RHGB Qu\iet

CTRL + X

Remember to add, make sure to change the password successfully

System hangs on another system disk, set boot Select boot, select rescue mode, do not point skip, point to continue,
Chroot/mnt/sysimage then change the password to restart boot mode.

Linux Basic Knowledge PART3

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.