Posted over 9 years ago. Visible to the public. Linked content.

Change Time Format when using ls on Mac OSX

If you want to display the timestamp of a file e.g. in ISO format when using ls on OSX, then you need to install the coreutils e.g. using homebrew

Copy
$ brew install coreutils

Then you can use

Copy
$ gls -l --time-style=long-iso

to display something like this:

Copy
-rwxrw-rw- 1 root wheel 433440000 2007-06-27 20:03 Clip 01.dv

ls -l produces:

Copy
-rwxrw-rw- 1 root wheel 433440000 27 Jun 2007 Clip 01.dv

Owner of this card:

Avatar
Matthias Marschall
Last edit:
over 9 years ago
Posted by Matthias Marschall to Matthias Marschall
This website uses short-lived cookies to improve usability.
Accept or learn more