13, linux- file management commands cat, head, tail, more, less

1.cat file name or path

  cat -n: add line numbers to output content

  cat -b: blank lines do not add line numbers

2.tac: reverse view, you can not add parameters, can only be used alone

3.tail: 10 line after the default display

  tail -n: n display lines after

  Note: tail -f dynamic display log files, dynamic information tracking log

4.more: Page View, press ctrl + f View All

5.less: Page View, press q to exit Review

Guess you like

Origin www.cnblogs.com/z-xiao/p/11854576.html