FG
💻 Software

Less: Quickly Jump to Line Number in Large File

Fresh5 days ago
Mar 15, 202691735 views
Confidence Score1%
1%

Problem

I'm struggling to figure out a way to do this...I'm using to view a large (~1GB) file. I want to jump to line "$n" in the file - preferably without having to wait for lines 1-($n-1) to scroll by in my terminal. I would do this in vim using something like this: Is there an equivalent command line option? If not, is there a way to do this once the file is open in ?

Error Output

less

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Less: Quickly Jump to Line Number in Large File

Low Risk

If the file is open you can type: to go to the 100th line. to go to 50% into the file. to go to the line containing 100th byte. You can use these from terminal by adding in front of them:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment