- Requirements for installing Linux
A) backup of the data on the hard disk prior to Linux system installation
b) The host disk should be a Linux system reserved space and partition
c) Linux system requires at least one root partition and one swap partition
d) root partition file system by default in EXT3 format
e) You can boot the installer using a CD-ROM or USB device
f) Setup can read software installation package from CD, hard disk and network server
- Common commands for Linux
A) CD command: Toggle the current directory
b) LS command: View file and Directory commands
c) CP command: for copying files
d) MV command: For moving files, directories, or renaming
e) RM command: For deleting files or directories
f) SU command: For switching the current user
g) chmod command: Change the permissions of the file
h) PWD command: shows the exact path
- Linux file permissions
-RWXRWX---1 root plugdev
A) Linux file permissions total 10-bit length, divided into four segments
b) First paragraph: Distinguishing between files and directories
c) Second paragraph: Owner permissions
D) Third paragraph: User's permissions
e) Fourth: Permissions of other users
- Commands in the VI editor
A) Insert mode
1) Press "i" switch into insert mode "insert mode", press "I" into the insertion mode is the beginning of the cursor from the current position to enter the file;
2) Press "a" to enter the insertion mode, the text is entered from the next position of the current cursor position;
3) Press "o" to enter insert mode, insert a new line, and enter text from the beginning of the beginning.
b) Insert mode switch to command line mode
1) Press "esc" key
c) Delete text
1) "x": Delete the "back" character at the cursor location every time you press it.
2) "x": Uppercase X, each time you press, delete the "front" character at the cursor location.
3) "dd": Delete the line where the cursor is located.
d) Exit VI and save the file
1): w filename (enter "w filename" to save the article with the filename you specified)
2): Wq (input "wq", save and Exit VI)
3): q! (Enter q!, do not save the mandatory exit VI)
- Batch processing in Linux
The batch suffix in Linux is named. SH, for example we want to start the Tomcat service, just run startup.sh
Some basic operations in the Linux system