I want to see coloured output of the ls command and so I added

export CLICOLOR=1

to .bashrc file but now the spacing between columns in the output of the ls command changes. How do I maintain the same spacing between columns as the ls command without -G option?

enter image description here

  • You're right...I was multi-tasking and didn't read it through. What if you tried ls -WG for the non-printable characters. – Allan Apr 14 '16 at 20:28
  • I just removed my aliases and tried ls and ls -G my columns line up perfectly. Do you have anything else in your .bash_profile (or anywhere else) that will modify the behavior of ls? – Allan Apr 14 '16 at 20:33
  • @Allan I checked .bashrc, bash_profile, .profile and there's nothing which could possibly alter the behaviour of ls command. – ajay Apr 14 '16 at 21:10

You must log in to answer this question.

Browse other questions tagged .