A basic command
can add path after LS
CD ~
LS-A lists hidden folders A lot of them start with.
LS-L lists permissions modification times for files
mkdir Creating a folder mkdir-p contiguous folders
PWD Displays absolute paths
Touch Create empty Directory
Echo creates a file with content
Cat View Content
CP Copy
MV Move
Two. Vim Editor
VI divided into three modes, General mode edit mode command line mode
I is entering edit mode ESC exit: Q
Key instructions
HJKL Direction key
0/home to move the front character of this line
End build moves to the last row
G move to the last line of the file NG n is the number to move to the first line GG move to line one
/word finding words
? Word looks up for word n is a duplicate lookup before the action N is reverse lookup
X is to remove one character backwards, and X is to delete one character forward
DD Delete a row
YY Copy a row
P for Paste
: N Edit Next file
: N Edit Previous file
: Files lists the file currently opened by this vim
Three. What is a shell
The shell is an interface that provides the user's operating system, and the user communicates with the kernel for information.
Linuxu used a bash shell.
Bash's main advantages
Command Memory Ability
Command and file completion capabilities
Command alias setting capability
Job Foreground background control
Program Scripts
Wildcard characters
Linux Learning One