Linux File Management class command detailed
Directory Management:
LS, CD, pwd, mkdir, rmdir, tree
File Management:
Touch, stat, file, RM, CP, MV, Nano
Date Management:
Touch, Clock, Hwclock, Cal
To view text:
Cat, TAC, more, less, head, tail
Cat: Connect and display
-N: Displays the line number of each row when displayed
-e: Show $ at end of each line
CTRL + C: End command
Split screen display:
More, less
MORE: Turn backwards
Less
Q Exit Command
Head: View Top N rows
Tail: View after n rows
-N
Tail-f: Look at the end of the file, do not exit, wait to display the subsequent append to this file new content;
Text Processing:
Cut, join, SED, awk,
Database: Databases
Relational database:
Table: two-dimensional table
Text file:
Cut
-D: Specifies the field delimiter, which is the default space
-F: Specify the fields to display
-f1,3 Show 1th and 3rd fields
-f1-3 Show 1th to 3rd fields
Text sort:
Sort
-N: Numeric sorting
-R: Descending sort
-T: Field delimiter
-K: Which field is the keyword to sort
-U: The same row is only displayed once after sorting
-F: Ignore character capitalization when sorting
Uniq: report duplicate rows or ignore duplicate rows-----------adjacent rows
-C: Shows the number of rows in a file that repeats
-D: Show only duplicate (adjacent) rows
Text Statistics :
WC (Word count): Displays the number of lines of words in bytes
-L: Number of rows
-L: The longest line contains the number of characters
-W: number of words
-C: Number of bytes
Character processing command:tr: convert or delete characters
TR "option" ... SET1 "SET2"
- d: Delete all characters that appear in the character set
This article is from the "11913800" blog, please be sure to keep this source http://11923800.blog.51cto.com/11913800/1839265
Linux Learning note--linux file Management class fame and wealth detailed