[LINUX] 3 best ways to use the less command

Introduction

I am using the less command when checking the log. Here are the 3 best ways to use it that you often use.

Frequently used usage / options

# 1.When you want to check the file contents by searching with a specific wording
grep The wording file name you want to search| less

# 2.When you want to display without wrapping when one sentence of the log is long
less -S file name

# 3.When you want to display the line number
less -N file name

Key operation displayed in less

Key Description
/ Search for
n Search for
F Update if there is an addition at the end

Recommended Posts

3 best ways to use the less command
[Linux] How to use the echo command
How to use the Linux grep command
How to use the generator
Linux user addition, how to use the useradd command
How to use the grep command and frequent samples
(Remember quickly) How to use the LINUX command line
How to use the decorator
How to use the zip function
How to use the optparse module
In the python command python points to python3.8
How to use MBDyn (command setting)
[linux] kill command to kill the process
How to use the ConfigParser module
Use the xmodmap command to operate the Caps Lock key as the Ctrl key.
How to use the Spark ML pipeline
I tried to summarize the umask command
[python] How to use __command__, function explanation
How to calculate Use% of df command
Three ways to access the __main__ namespace
Use numpy's .flatten () [0] to retrieve the value
How to use CUT command (with sample)
Don't use rm command to delete files
How to use the IPython debugger (ipdb)
Try rewriting the file with the less command
Use the command previously entered in IDLE
How to use the C library in Python
How to use MkDocs for the first time
Use the retry processing mode added to Boto3
Use the MediaWiki API to get Wiki information
How to use the graph drawing library Bokeh
How to use the NHK program guide API
The easiest way to use OpenCV with python
Use click to create a sub-sub command --netsted sub-sub command -
[Algorithm x Python] How to use the list
Use the Python framework "cocotb" to test Verilog.
Convert XLSX to CSV on the command line
Use pygogo to get the log in json.
Create a command to get the work log
I want to use the activation function Mish
How to use the grep command to recursively search directories and files to a specified depth
Steps to use the AWS command line interface (Python / awscli) on Mac OS X
I want to use Linux commands at the command prompt! Use Linux commands at the command prompt instead of Git Bash
The best tool to protect your privacy from your photos ...!
How to create an article from the command line
[For beginners] How to use say command in python!
How to delete the specified string with the sed command! !! !!
less command I want to definitely remember this [linux command]
How to use TensorFlow on GPUs less than Titan
I wanted to use the Python library from MATLAB
[Python] How to use the graph creation library Altair
How to use the exists clause in Django's queryset
Specify MinGW as the compiler to use with Python
[Introduction to Udemy Python3 + Application] 27. How to use the dictionary
[Introduction to Udemy Python3 + Application] 30. How to use the set
How to use the model learned in Lobe in Python
I want to automate ssh using the expect command!
How to use the Rubik's Cube solver library "kociemba"
Let's add it to the environment variable from the command ~
I want to use the R dataset in python
I can't use the darknet command in Google Colaboratory!