Change ls datetime format - how?

Bo Berglund bo.berglund at gmail.com
Fri Feb 5 21:32:00 UTC 2021


On Fri, 05 Feb 2021 19:53:01 +0100, Volker Wysk <post at volker-wysk.de> wrote:

>> Actually, there is the --time-style argument of ls... Looks like we were
>> both stupid enough not to read the man page.   :)
>
>alias ll='ls -l --time-style="+%Y-%m-%d %H:%M"'
>

Thanks!
Now entered into .bashrc
As is this to get seconds:
alias lls='ls -al --time-style="+%Y-%m-%d %H:%M:%S"'


-- 
Bo Berglund
Developer in Sweden





More information about the ubuntu-users mailing list