Linux common commands - less command Detailed

21 essential Linux test commonly used commands, every day a knock, knock three times each, monthly cycle, all can remember! !

https://www.cnblogs.com/poloyy/category/1672457.html

 

View Files

less test.txt

 

ps see the process through and show less pagination

ps -ef | less

 

Shows the percentage of the current number of lines

less -m test.txt

 

Displays the current line number / percentage of total number of rows and

less -M test.txt

 

Empty display continuous line of conduct

less -s test.txt

 

Less operation mode after entering

 

g: to the first line

G: to the last line

u: move forward half a screen

d: half a screen moving forward

f: Specifies the number of lines or backward movement of a screen

b: Moves the specified number of rows or a screen forward

j: down a row

k: move up one line

q: End less mode

 

Guess you like

Origin www.cnblogs.com/poloyy/p/12612088.html