Linux9.19.1

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/weixin_45213666/article/details/101031940

vim editor
for editing the contents of a text file, is an upgraded version of the vi editor, compared with Vi, Vim editor has code coloring.

(1) Vim editor has Mode 3:
1. Command mode: to control cursor movement, the text can copy, paste, delete, and search and so on.

2. Enter mode: normal text entry.

3. line mode: To save and exit the document, as well as set the editing environment.
Here Insert Picture Description
dd: delete or cut the number of line of the cursor
digital + dd: delete or cut lines cursor
yy: copy the entire cursor line
numbers + yy: copy cursor lines of evidence gathering
p: Paste
u: revocation previous
n: display the search command to locate the next string
N: display the search command to locate a string
line mode : :
W save
and: q
:! forced to exit
: set nu show line numbers
: set no nu not display line numbers
: s / 1/2 to 1 line of the first cursor replace 2
: s / 1/2 / G row where the cursor replace all 1 2
:% S / 1/2 / G in the text All replaced 2 1

yun parameter
[] a unique identifier used to distinguish other warehouse
name Name Description
baseurl loading address
set enabled language is not available 0 1 may
gpgcheck not check parity 0 = 1
gpgkey a public address, when gpgcheck is 0, not write

shell script
1.Shell script name at random, but generally suffix .sh, to indicate that the script file.
2.Shell script format:
#! / bin / bash script statement tells the system with the kind of shell interpreter to execute the script
#example script comments
pwd script text
ls -l

Guess you like

Origin blog.csdn.net/weixin_45213666/article/details/101031940