3 ms·
I think less does exactly what you're asking for, unless you need to edit the file. less and vim have similar keybindings. For multi-gigabyte files, you may wa
by copperx 8y ago
I think less does exactly what you're asking for, unless you need to edit the file. less and vim have similar keybindings. For multi-gigabyte files, you may want to disable line counting and perhaps seek ahead via command line options to make startup instantaneous.
- Asooka 8y agoYou don't even have to disable line counting explicitly, less is kind enough to tell you "counting lines is taking a long time, interrupt to disable". So you can just ctrl-c if the file is too long and you don't want to wait.