‘ls -l’ file timestamp format

localels

When I issue the command:

ls -l

The file/directory modification timestamp column (specifically the month part) is displayed in the native language of the country I'm based in instead of English.

How can I force ls to use another 'culture' in that column?

Example:

enter image description here

Best Answer

Use the locale environment variables such as LANG or LC_ALL:

LANG=C ls -l

This way only the current ls instance uses another locale. You can also change it for the whole session:

export LANG=C
ls -l

Read man 7 locale for details. Use locale -a to list the possible locales you can choose from.

Related Question