1. Use the cat command to merge the files vertically:
1) Master the vertical merging of files using the cat command:
A) For example: Use the cat command to vertically merge the three files of Baby.age, baby.kg, and baby.sex into a baby file:
Cat Baby.age baby.kg Baby.sex >baby
b) For example: Use the Cat command to add the contents of the Baby.age file to the Baby2 file:
Cat Baby.age >>baby2
2. Archive files and archiving technologies:
1) Mastering the definition of archiving: Archiving (archiving) is the packaging of many files (or directories) into one file.
2) Understand the purpose of archiving: The purpose of archiving is to facilitate backup, restore and file transfer operations.
3) Master the function of the tar command: put multiple files (which may also include directories, because the directory itself is also a file) in a tape or disk archive file. And in the future, you can restore only some of the files specified in the archive as needed.
4) Master the common options for the tar command:
C: Create a new tar file.
T: Lists the contents of the directory in the tar file.
x: Extract the files from the tar file.
F: Specify the archive or tape (or possibly floppy) device (typically selected).
V: Displays the details of the packaged file, and V is the 1th letter of the verbose.
Z: Use the gzip compression algorithm to compress the packaged files.
J: Use the BZIP2 compression algorithm to compress the packaged file.
3. Create, view, and extract an archive using the tar command:
1) Master example of using the TAR command to create an archive file
For example: Use the TAR command to package the Arch directory as an archive file called Arch.tar (requires displaying all packaged files and directories):
tar cvf arch.tar arch
Master example of using the TAR command to view an archive file:
For example, use the TAR command to display Arch.tar All files in this archive file (package):
tar tf Arch.tar
2) An example of the use of the tar command to extract an archive file:
For example: How to recover everything in arch.tar using the tar command:
tar xvf arch.tar-c path
4. File compression and decompression:
1) Grasp the definition of compression: Compression is a large file through a number of compression algorithms into a small file.
2) to understand the purpose of compression: mainly to reduce the size of the file, which will save the disk or tape storage space, In addition, the transfer of these small files over the network can also reduce network browsing (that is, bandwidth savings).
3) master the definition of decompression: decompression is the way to restore a file that passes through some compression algorithms before it is compressed.
4) Examples of the use of GZIP commands and Gunzip commands:
a) For example: Compressed files File1 compressed into. gz format should use the command: gzip file1–c >/path/name.gz
B) For example: The command to extract the compressed file file1.gz:
gunzip file1.gz;
5) Learn the examples of the use of BZIP2 commands and BUNZIP2 commands:
a) For example: Compress the file file1 into. bz2 format the command that should be used is: bzip2 file1;
B) For example: The command to extract the compressed file file1.bz2:
bunzip2 file1.bz2;
5. Compress and decompress while using the tar command:
1) Learn about the use of compression and decompression while using the tar command
a) For example: Use the TAR command to package the Arch directory and use gzip technology to compress the packaged file (the packaged file is named arch.tar.gz):
tar cvfz arch.tar.gz arch
B) For example: Use the TAR command to package the Arch directory and use bzip2 technology to compress the packaged file (the packaged file is named arch.tar.bz2): Tar cvfj arch.tar.bz2 Arch
6. VI Editor Introduction:
1) Master VI definition: VI is a UNIX and Linux system embedded in the standard body (text) editor, it is an interactive type of body editor, it can be used to create and modify body files.
2.VI Editor operating mode (see Linux System Management P255)
1) Master the VI Editor in the 3 basic mode:
A) command-line mode: The default mode for VI. In this mode, all inputs are interpreted as VI commands, which can be used to modify, copy, move, paste, and delete the text, as well as to move the cursor, search for strings, and exit VI operations.
b) Edit mode: In edit mode, the text can be entered in a previous file. In this mode, each character entered is interpreted by the VI editor as the body of the input. Use the ESC key to return to the command-line mode.
c) Extended mode: Also called the last line mode on some UNIX systems. In this mode, you can use some advanced editing commands, such as searching and replacing strings, saving or exiting the VI editor, and so on. To enter the last line mode, you need to enter a colon (:) in the command line mode, and the colon will move the cursor to the last line of the screen.
3. Cursor movement in VI Editor (see Linux System Management P256)
1) Master the relationship between the keys used to move the cursor position in the VI editor and the cursor movement, as in the following table:
4. Enter insert mode (see Linux System Management P258)
1) command to enter insert mode from command line mode:
A: Enter insert mode and add after the cursor.
I: Enter the insert mode and insert it before the cursor.
O: Enter insert mode and open a new line below the current (cursor) line.
5. Delete and copy operations in command line mode (see Linux System Management P259)
1) master commonly used buttons for deleting and copying
6. Paste command
1) Master the Paste command:
7. Undo and Redo Commands
1) master the commonly used undo and redo Commands:
8. Storage and exit of extended mode and files
1) Master commands commonly used in extended mode:
9. Quickly move the position of the cursor in the file
1) command to quickly move the position of the cursor in the file
10. Quickly move the position of the cursor in the screen
1) command to quickly navigate the position of the cursor in the screen
Linux system Boot Order:
1) Mastering the Order of Linux system boot: (see attached 1)
among them, the work of the BIOS is to check the computer hardware devices, such as CPU, memory and fan speed;
The MBR will be in the 1th block of the boot disk, with a size of 512B. The first 446 of the program code is used to select the boot partition (partition), that is, which partition to load the boot code;
in the kernel part, the driver of the computer device is mainly installed so that the operating system can control the device on the computer. And a read-only mount/(root) file system, that is, at this time the operating system can only read the root file system (directory) where the partition;
the INIT program has a process ID of 1, which is the 1th program executed by the Linux operating system.
1.BOIS initialization and boot loader (see Linux System Management P313)
1) Master the definition of BIOS: BIOS (Basic input/output System) (abbreviated for the base input/output systems), which is the interface between hardware and software, and is a very basic interface.
2.GRUB Programs and grub.conf files (see Linux System Management P317)
1) Mastering the definition of grub: GRUB is the abbreviation for the Grand Unified Bootloader (multiple OS boot manager).
2) Master grub configuration file as: grub.conf
Set the Grub MD5 encryption command Grub-md5-crypt
Password = plaintext or Password--md5 ciphertext (edit the password for the Grub configuration file)
Title Red Hat header
Password = plaintext or Password--md5 ciphertext (the password required to load the kernel system boot)
3. Initialization of the kernel and initialization of INIT (see Linux System Management P322)
1) Master the init configuration file as:/etc/inittab
2) Understand the work that the INIT program will do:
a) Decide which run levels (RunLevel) to use for the preset (default).
b) Perform some system initialization scripts (programs) to initialize the operating system.
c) Execute the program in the corresponding directory according to the settings of the run level to determine which services to start.
d) Set some key combinations.
e) Define the UPS uninterruptible power system, which is the program to be executed when there is a problem with the supply or when the power is restored.
f) Generate 6 virtual consoles, i.e. Tty1~tty6.
4.run levels (operating level) (see Linux System Management P326)
1) Master all the operating levels and the corresponding functions of each operation level:
5. Shut down the system and restart the system (see Linux System Management P342)
1) Master the commonly used commands to shut down the system:
Shutdown-h now
Halt
Poweroff
Init 0
2) Master the commonly used commands to restart the system:
Shutdown-r now
Reboot
Init 6
Ctrl+alt+delete Key
6. Master single-user mode to modify the user's password
7. Master Rescue Mode
Linux operating System Fundamentals (iii)