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";
CASE3:
Learn a Linux command every day--less[support page before and after viewing files]