Modern ls

Share on:

List directory Unix utility written in pure Go. Has some extra options: Humanized relative timestamps, path mode and cross platform.

"I have it in my PATH!"👍

https://github.com/timob/ls

Some Features:

  • Compatiblity with GNU ls
  • -R has changed, meaning recursively lists all files with relative path names as one group. This means sort options such as by time (-t) can show most recent file modified under a path. (Useful for example to see latest logs in /var/log)
  • -O only list entries starting with .
  • Color output
  • Works on Linux/Windows/OSX

Screenshot showing -1PRtr options in effect, showing 1 column, only file paths, recursive subdir, sort by time reversed:

Showing now relative Humanized timestamps for last modified:

Improved layout:

Compared to standard MacOS ls: