This is a sample output of ls -l on my Ubuntu 17.04 box:

drwxr-xr-x 2 amoro amoro 4096 kvě  6 16:26 myfile

There are two parameters that I don't recognize. Counting from left to right, the 6th and the 7th, i.e., kvě and 6 respectively. I googled this but couldn't find an answer. Do you have any clues?

  • 3
    it should be the date (of last modification of the file). Is kve short for the name of a month in your language?
    – Zanna
    May 7 '17 at 9:59
  • 2
    Yes, it's the date of the last time the file has been modified. kvě 6 16:26 is Czech for May 6 16:26
    – M. Becerra
    May 7 '17 at 10:03
  • 1
    Run: LC_ALL=en_US.utf8 ls -l
    – Ravexina
    May 7 '17 at 10:03
  • Might be useful askubuntu.com/questions/673741/…
    – M. Becerra
    May 7 '17 at 10:11
  • Ok that's weird since the installation language I choose is English. How can I change this? Running this command returns the expected output LC_ALL=en_US.utf8 ls -l. But How can I make this change effective? May 7 '17 at 10:24

When encountering similar situations, try setting the default locale as en_US, in your case with the command is ls -l, you would run:

LC_ALL=en_US.utf8 ls -l

It will produce all output in en_US so there will be no confusion.

-rw-rw-r-- 1 ravexina ravexina  79 Sep 20 2016 test.txt

You can change it using:

localectl set-locale LC_ALL=en_US.utf8

or only for date:

localectl set-locale LC_TIME=en_US.utf8

then logout and login again, if it did not take effect, reboot your system.

  • It works, but how can I make the change effective? I tried localectl set-locale LANG=en_US.utf8, but doesnt work May 7 '17 at 10:34
  • Updated my answer ;)
    – Ravexina
    May 7 '17 at 10:44
  • TIL about localectl! I know other locale related commands but not that. Also, why the bias to en_US? :P
    – Zanna
    May 7 '17 at 10:47
  • @Zanna Great ;) There is no bias. :D I guess it's just more likely for non native English users (like me) to use US. Maybe I'm wrong :D I really don't like systemd and it's stuff. so I try to learn more about them and less hating its stuff :))
    – Ravexina
    May 7 '17 at 10:58
  • I think the usual recommendation to get temporarily English output is to use the C locale
    – Zanna
    May 7 '17 at 11:01

Here's one on my system

drwxrwxr-x  2 zanna zanna 4096 May  5 07:44 custom

Left to right we have

  • type (directory)
  • mode (permissions)
  • hardlinks (2)
  • owner (zanna)
  • group (zanna)
  • size (in bytes)
  • month last modified (May)
  • day of the month last modified (5th)
  • time last modified on that day
  • filename

So the fields confusing you are the month and day of the last modification of the file. Kve must be a month or abbreviation of the name of a month in your system locale/language.

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.