1: grep command:
Grep-v "char" file_name match text that does not contain "char"
Grep-n-w "char" file_name completely matches a character
Grep ^ s $ s is the text that matches the first or last row of s.
2: tr command
Tr set1 set2 replace set set1 with set2
Tr-s set1 compressed character
Tr-t ":" The default Delimiter is space.
Tr-d "set" deletes all characters in the set from the text
3: seq commands are used to generate sequences.
Seq 1 10 generates a sequence from 1 to 10 with line breaks as the Separator
Seq-s "" 1 + 2 10 specifies the separator as space, and the sequence increment is 2
4: The sort command is generally used with the uniq command for sorting.
Ls/boot | sort-n-k5-n indicates that the values are sorted by numbers, and-k 5 indicates that the values are listed as standard by 5th.
5: uniq for Statistics
Uniq-c: count the number of the same rows
6: cut is used to cut characters or lines
Cut-d ""-f 5/etc/passwd-d "" specifies the delimiter as a space and only displays the 5th regions.
Ls/boot | cut-c 5 truncates the fifth character
Cut-B 5 truncates the fifth byte.