This series of Linux primer is I in the "bird Brother's Linux private dishes" based on the summary of the basic content, mainly to record their own learning process, but also convenient for everyone to understand briefly
Linux distribution is an Ubuntu, not a book recommended CentOS, it is recommended to install dual systems, do not use virtual machines.
Code on GitHub:linuxpractice
Other content:
Linux Starter Chapter (ii)--File
Getting Started with Linux (iii)--Files and directories
Use of VIM with bash
First, the use of vim
[I],[o],[a],[r] (insert replace)
General mode —————————— > Edit mode
—————————————— ——————————————————
Cursor movement, search substitution < —————————— to edit content with insert substitution
[ESC]
[:],[/],[?]
Delete characters, entire line —————————— > command line mode
—————————————— ——————————————————
Copy entire row, paste whole line < —————————— read/save file
[ESC]
1) [V],[v],[ctrl]+[v]
2) Cursor Movement
3) [Y]
- Multi-file editing to enable copying of content between files
: n Edit the next file: N Edit the previous file: Files View all Documents
- Multi-window function: Sp{filename}
Switching between windows: [Ctrl] + [W] + [j]/[Ctrl] + [w] + [bottom] move to the window below
[Ctrl] + [W] + [k]/[Ctrl] + [W] + [top] move to the top window
[Ctrl] + [w] + [Q] End the current window
- Vim environment setting and recording ~/.VIMRC
Vim settings are typically stored in the/ETC/VIMRC file and can be modified using the # VIM ~/.VIMRC, but not recommended.
Second, Bash
Hardware, kernel, and shell
Graphical ———— > User Interface —————— > core ———— > Hardware
—————— ——————————————— ———— ————————
Text interface < ———— shell,kde,applications < —————— Kernel < ———— Hardware
Accept instructions from the user to control hardware work, including entities that work with CPU process systems
Memory Management and IO
The Shell's function is just an excuse to provide the user's operating system, call other naming (software) to execute, in the narrow sense of the shell is the Bash command, broadly speaking, the shell also includes the GUI software.
/bin/bash (linux default shell)
Bash Shell Features: command memory, command and file completion, command alias settings, job control, front and rear control, program scripts, wildcard characters.
Linux Getting Started (iv) use of--VIM with bash