Linux File Management commands and linux commands
File command and Its Usage
File: Type of the file content.
Du command and Its Usage
-S:
-H:
Read command and usage
Describes the relationships and differences between the three open source protocols GPL, BSD, and Apache.
Free Software
Open source agreement, copyright description
List Linux releases and describe their relationships with Linux kernels
Linux, GNU: GNU/Linux,
Release: Fedora, RedHat (CentOS, mandrake,), SUSE, Debian (Ubuntu, Mint), Gentoo, LFS (Linux From Scratch)
Compile: the source code is converted to a binary format program that can be executed on the corresponding platform, which is closely related to hardware.
RedHat: Common Format
View text:
Cat, tac, more, less, head, tail
Cat: connect and print
Cat/etc/issue
Cat/etc/fstab
Cat/etc/issue/etc/fstab
-N: displays the row number, cat-n/etc/issue.
-E: displays the row Terminator, $
End character of each line in the text file: $
-T: displays tabs and tabs.
-A: all
Tac/etc/issue: the first line is displayed at the end, and the first line is displayed at the end.
Ctrl + C: interrupt, interrupted
Split-screen display
More, less
More: backward flip
More/etc/rc. d/rc. sysinit
Space: backward flip
B: Forward
Less
B: Forward
Head: view the first n rows of the file
Head/etc/inittab-n 2 display the first two rows
Tail: view the last n rows of the file.
Tail/etc/inittab-n 5 display the last 5 rows
N = 10 rows by default,
-N: specifies n rows.
-F: follow: Check the end of the file and do not exit. Wait for the new content to be appended to this file to be displayed;
Text processing:
Cut, join, sed, awk
Cut
-D: Specifies the field separator. The default value is space,
-F: field, specifying the field to be displayed
-F 1: Display 1st Fields
-F 1st: 3rd and fields are displayed.
-F 1-3: Display 1st to 3rd Fields
Cut-d:-f 1/etc/passwd