Linux command to view the contents of the document summary

Document Content Access command:

cat from the first row to display file contents

  Options and parameters:
  -A: the equivalent of integration options -vET can list some special characters and not just blank;
  -b: lists the line number, line number do only for non-blank line display, blank lines are not marked line number !
  -E: The end of the line break character $ displayed;
  -n: Print the line number, along with a blank line will also have a line number, not too different -b option;
  -T: the [tab] ^ I button to show up;
  - v: list some do not see the special characters

 

tac beginning to show from the last row, it can be seen tac is cat 's written backwards!

nl time display, take the opportunity to output line number!

more page by page display file contents

less and more similar, but more than more Better yet, he can move forward flip!

  Options and parameters:

 

  Spacebar: Scroll down one;
  [PageDown]: Scroll down one;
  [PageUp]: turning up one page;
  / string: down search 'string' of;
  the string:? Up Search for "character function string "in;
  the n-: before repeating a search (and / or related?!) 
  N: a reverse search before repeating  (and / or related?!)
  q: less leave this program

 

head look first few lines

  -n: followed by the number representing the intended display a few lines of allegiance

tail just look at the tail lines

  Options and parameters:

 

  -n: followed by the number representing the show a few lines of meaning loyalty
  -f: this duration to detect the connected behind the file name, until press [ctrl] -c will end tail detection

 

od read the contents of the file in binary mode!

Guess you like

Origin www.cnblogs.com/yanmou/p/11611797.html