Just like this question: I want to open a file with e.g., less -Sx32 file.dat, but as I scroll down, keep the top line locked in place. How can I do this with less?

  • What does that -Sx32 do?
    – jarno
    May 28 '20 at 9:06
  • 1
    @jarno it turns off word wrapping and sets the tab size to 32. It is convenient for viewing large tab-separated data files, which are common in data science. Jun 6 '20 at 13:09
  • Oh, yes it is the same as -S -x32.
    – jarno
    Jun 6 '20 at 13:36

It requires some changes to less. There exists an enhancement request here in GitHub. If it was implemented, you could use something like

less --freeze-pane 0,1 file.dat

to do what you want.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.