Change ls datetime format - how?
Volker Wysk
post at volker-wysk.de
Fri Feb 5 18:21:52 UTC 2021
Am Freitag, den 05.02.2021, 18:13 +0100 schrieb Bo Berglund:
> On Fri, 05 Feb 2021 13:37:18 +0100, Volker Wysk <post at volker-wysk.de> wrote:
>
> > > Please advice a setting I could but into .bashrc if needed to solve the problem.
> >
> > alias ll="ls -l --time-style=full-iso |sed
> > 's/^\(............................................\).................../\1/'
> > "
> >
> > This needs to be on one line. The backslash in the first line is not to be
> > removed.
> >
> > This won't work with arguments to the ls command. You could write a script
> > or a bash function for that.
> >
>
> Are you saying that the ls command cannot be set to display time in a decent
> format without bringing in other programs like sed?
> Amazing...
Actually, there is the --time-style argument of ls... Looks like we were
both stupid enough not to read the man page. :)
Cheers,
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20210205/873356b9/attachment.sig>
More information about the ubuntu-users
mailing list