First, text sorting
Sort by default is not sorted by numeric size, and is sorted by Aciis table.
-N: Sort by numeric size;
-R: Descending sort
-T: Field delimiter
-K: Which field is the keyword to sort
[Email protected] ~]# sort-t:-k3-n/etc/passwd
Root:x:0:0:root:/root:/bin/bash
Bin:x:1:1:bin:/bin:/sbin/nologin
-U: The same row is only displayed once after sorting
-F: Ignore character capitalization when sorting
Uniq
The same row that is not adjacent is not a duplicate row
-D: Show only duplicate rows
-D: Show all duplicate rows
-C: Displays the number of duplicate rows in the file
Ii. Text Statistics
WC (Word count)
Number of lines of words bytes
-L: Show only rows
-W: Displays only the number of words
-C or-M: shows only the number of bytes
-L: The longest line includes the number of characters
Three, character processing commands
TR convert or delete characters
TR [OPTION] ... SET1 [SET2]
-D: Delete all characters that appear in the character set
Four, bash and its characteristics
Shell: Shell
Program-Process
A process is a copy of a program, and a process is a program execution instance
Process: In each process it appears that the current host has only the kernel and the current process
shell--Child Shell Pstree View
Bash Features:
1. Command history
View command history: Historical
-C: Empty command history
-D OFFSET [n]: Delete the specified location history command
-W: Save the Command history to the history file
command history buffer Size: histsize echo $HISTSIZE
Command history Usage Tips:
!n: Execute nth command in command history
!-n: Executes the last nth command in the command history
!: Execute Last Command
! String: The most recent command in the command history that starts with the specified string
!$ or ESC,.: Reference the last parameter of the previous command
Command completion: Tab key or two tabs
Path Completion: Ibid.
2. Pipelines, redirects
3. Command aliases
4. Command-line editing
1). Cursor Jump
A.ctrl+a: Jump to the beginning of the command
B.ctrl+e: Jump to the end of the command line
C.ctrl+u: Delete cursor to beginning of line
D.CTRL+K: Delete cursor to end of line
E.ctrl+l: Clear Screen
5. Command line expansion
6. File name Wildcard
7. Variables
8. Programming
This article is from the "Linux Blind Advanced Road" blog, please be sure to keep this source http://blindbird.blog.51cto.com/12338383/1878932
[Bird Brother Linux Video tutorial finishing]03_02_linux file management commands and bash features detailed