-
-
df -h (after the units have added)
-
-
free instruction, view memory usage
-
free -m (mb represents a unit of view)
-
-
head to view a file before n rows, if n is not it defaults to the first 10 lines
-
head plus file path
-
head -5 plus file paths (see the first five lines)
-
-
see the tail end of n lines of a file, if n is not specified, it defaults to 10 rows back
-
tail plus file path
-
tail -1 plus file path (see the last line of the last)
-
Dynamic changes in tail -f view files
-
-
less View all files
-
less + file path (auxiliary key: You can view digital from start to see the first few lines)
-
-
wc statistics file content information (including our number of lines and words, bytes)
-
wc-lwc need statistics file path
-
wc-l file path (the number of rows)
-
wc-w file path (number of words)
-
wc-c file path (bytes)
-
-
date (emphasis) indicates the operation time and date (read Set)
-
Output date (November 2019 Saturday, 9)
-
date +% F is 2018-11-9 (corresponding to date "+% Y-% m-% d")
-
date "% F% T" when the year, month, day, hour (quotation marks as a whole) (corresponding to the date "+% Y-% m-% d% H% M% S")
-
llinux Advanced articles
Guess you like
Origin www.cnblogs.com/liuxiaomo/p/11956913.html
Ranking