Learn a Linux command every day--less[support page before and after viewing files]

Source: Internet
Author: User

Parameters  File
Parameter description:
    • -e When the file shows the end, automatically leave;
    • -N Displays the line number of each line;
    • /string: Search down the function of "string";
    • String: Search up the function of "string";
    • h Display Help interface;
    • q/q exit less command;
    • U scroll forward half page;
    • Y scrolls forward one line;
    • The SPACEBAR scrolls one page;
    • Enter the scroll line;
    • [PageDown]: flipping down one page;
    • [PageUp]: Flip up one page;

1. Full Screen navigation

    • CTRL + F-Move forward one screen
    • CTRL + B-Move backward one screen
    • CTRL + D-Move forward half screen
    • CTRL + U-Move backward half screen

2. Single-line navigation

    • J-Move one line forward
    • K-Move backward one line

3. Other navigation

    • G-Move to the last line
    • G-Move to the first line
    • Q/zz-Exit less command

4. Other useful commands

    • V-Edit the current file using the configured editor
    • H-Show help documentation for less

Case1:less File1;

Case2:less-n file1 "or cat N file1 |less";


Learn a Linux command every day--less[support page before and after viewing files]

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.