Here are some specific examples: 1. Open the file less catalina.out 2. View the file and display the line number less -N catalina.out 3. Locate a line (here, line 10) less +10g catalina.out This is the 10th row. You can verify by displaying the line number, less -N +10g catalina.out 4. After opening the file, search for content in it Find the timestamp 2018-07-06 15:24:00,025 and enter the command /2018-07-06 15:24:00,025 The found content will be automatically highlighted, followed by n for the next one and N for the previous one. Same for searching upwards? Find content Finally, don't forget to exit the less command with q This is the end of this article about the detailed explanation of the linux less command examples. For more related linux less command details, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! |
<<: The problem of Vue+tsx using slot is not replaced
>>: Solution to mysql ERROR 1045 (28000) problem
1. CSS Navigation Bar (1) Function of the navigat...
Table of contents 1. Basic grammar 2. Filter by c...
Summary: Problem solving records of MYSQL: No mat...
After the changes: innodb_buffer_pool_size=576M -...
Introduction: AD is the abbreviation of Active Di...
Table of contents What to do when registering an ...
1. Check whether the MySQL service is started. If...
How to determine whether the current Linux system...
This article example shares the specific code of ...
1. Alibaba Cloud selects the appropriate cloud se...
This article shares a blinds special effect imple...
Anyone who has studied or used HTML should be fam...
Download from official website: https://www.mysql...
This article shares the specific code of JavaScri...
Table of contents Oracle Isolation Levels MySQL I...