Set tab width for less output

lesstabulation

Is it possible for less output to set the tab width to a number X as it is for cat?

Best Answer

Yes, it is possible with less -x or less --tabs, e.g. less -x4 will set the tabwidth to 4.

You can configure defaults with the LESS environment variable, e.g. LESS="-x4".

Related Question