Linux Terminal command -- display file content

Source: Internet
Author: User
Linux Terminal Command & mdash; display file content 1.Cat: display file content as is 2. head: show start Head & amp; ndash; nnumberfilename without-n by default, show the first 10 rows 3.xxd: hexadecimal display data 4. touch: create an empty file and modify the file time. less: display Less by page... linux Terminal command -- display file content 1.Cat: display file content as is 2. head: show start Head-n number filename is not added by default-n, show the first 10 rows 3.xxd: hexadecimal display data 4. touch: create an empty file and modify the file time. less: Display by page LessH: Display auxiliary instructions Space: Next Page Enter: Next Line B: return to the previous page/: Enter search mode: forward?: Search back N: repeat reverse query n: Repeat forward query <: Jump to Start>: Jump to end 6. tail: tail: Position:/usr/bin/tail contains the Tail command. Standard syntax: tail [-f] [-c Number |-n Number |-m Number |-B Number |-k Number] [File] Description: The tail command starts the file specified by the parameter is written to the standard output. If no file is specified, standard input is used. The Number variable specifies the Number of units to be written to the standard output. The value of the Number variable can be a positive or negative integer. If the value is preceded by a plus sign, the file is written to the standard output starting with the number of units specified at the beginning of the file. If there is a minus sign before the value, the file is written to the standard output starting from the number of units specified at the end of the file. If no + (plus sign) or-(minus sign) exists before the value, read the file starting from the specified unit number at the end of the file. The Number variable determines the unit type of the start point of the count by The-B,-c,-k,-m, and-n flags. If no flag is specified, the tail command reads the last 10 lines of the specified file and writes it to the standard output. This is the same as entering-n10 in the command line. Example: tail-n 20 notes: output the last 20 lines of tail-c + 200 notes | pg: starting from 200th bytes, display a page of notes file 7.nl: mark the line number nl/usr/bin to copy the file to stdout, and add the line number l8.od: Display data Od with octal: /usr/bin is used to view the content of the binary file Od-t c filename: print content Od-t oCc filename: comparison of the printed content and ASSCi More: one page flip: f displays the current row number
 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.