Basically, vi/vim is divided into three modes: Command mode, Insert mode and Last line mode
In command mode
1. Move the cursor p> w(e) Move the cursor to the next word
b move to
The UNIX operating system (Eunice) is a powerful multi-user, multi-tasking operating system that supports multiple processor architectures. According to the classification of the operating system, it is a time-sharing operating system. It was first developed by KenThompson, Dennis Ritchie and Douglas McIlroy in 1969 Developed in AT&T’s Bell Labs in the year. At present, its trademark rights are owned by the International Open Standards Organization, and only UNIX systems that conform to a single UNIX specification can use the name UNIX, otherwise it can only be called UNIX-like (UNIX-like)
Basically, vi/vim is divided into three modes: Command mode, Insert mode and Last line mode
In command mode
1. Move the cursor p> w(e) Move the cursor to the next word
b move to
1. Count the number of digits in the document
2. Compare the differences between the files of the two machines
#!/bin/bash
dir=/data/web
[ -f /tmp/md5.list] && >/tmp/md5.lis
1. while loop
Syntax structure: while condition; do……; done
1) Infinite loop
While:
do
command
done
2) Endless loop
While 1
Do
command
Blog post outline:
Don’t talk nonsense, just use the grammar example:
Requirement①:
first name and 2. last name, and finally displayed on the screen: “Your full name is:” content:
Question requirements
Write a shell and see if there are custom users (ordinary users) in your Linux system. If so, how many?
Core points
centos6 uid>=500
eentos7 uid>=1000
awk -F’:”
shell
See 100 linux shell questions.
Function to reduce duplication of code.
Shell is a collection of system commands
The first line starts with #!/bin/bash
#!/bin/bash
echo “123”
w
ls
Sp
Sometimes it is necessary to write some timed task scripts, a brief summary, memos.
>>> import datetime
>>> datetime.datetime.now()
datetime.datetime(2018, 5, 23, 17, 16, 33, 61000)
>>> print
Yum (full name Yellow dog Updater, Modified) is based on RPM package management. It can automatically download and install RPM packages from a specified server, automatically handle dependencies, a
1, mount the optical drive
https:/ /www.cnblogs.com/healy/p/11428622.html
2 , Make network yum source files invalid
3, enter the configuration file view
4. Invalidate networ
let usage method [email protected]:/tmp# n1=5
[email protected]:/tmp# n2=10< br />[email protected]:/tmp# let result=n1+n2
[email protected]:/tmp# echo $result
15
[email protected]:/tmp# let n1++
[