If you suffer from slow `ls` in when listing a lot of files, consider changing the colourisation used by the `ls` command.
A folder with 100,000 files takes 18seconds to list.

BUT after disabling colourisation for setuid/setgid, executable flags, you can reduce this to under 1second :

export LS_COLORS='ex=00:su=00:sg=00:ca=00:'
time ls --color=always
real 0m0.954s

Sign in to participate in the conversation
Ubuntu Social

This server was setup for the Ubuntu community to use.