Documents

nls – modern ls alternative with tabular output

nls is a command-line alternative to ls that presents directory contents in structured tables inspired by Nushell. It combines the visual presentation of a modern file-listing utility with conventional shell behaviour, making it suitable for interactive terminal sessions and command-line pipelines. Users can inspect files without switching to Nushell or changing their preferred shell.

The program distinguishes between interactive and non-interactive output. When running in a terminal, it presents tables with useful metadata and configurable columns. When its output is redirected or piped into another command, it uses a simpler format suitable for further processing. It also offers JSON output for applications and scripts that need structured file information. Directory size estimation operates within a configurable time budget to avoid spending excessive time traversing large directory trees.

This is free and open source software.

Key Features

  • Nushell-inspired tabular directory listings.
  • Displays Git status for individual files and directories.
  • Estimates directory sizes with configurable calculation depth and time budgets.
  • Configurable columns covering names, types, sizes, timestamps, permissions, ownership, inode numbers, and Git information.
  • Supports JSON output for structured processing.
  • Automatically adapts output for pipes, redirects, and non-interactive execution.
  • Provides suggestions when directory paths are mistyped.
  • Optional Nerd Font icons for files and directories.
  • Configurable colours for file types, sizes, timestamps, and Git status.
  • Supports recursive directory listings and multiple path arguments.
  • Reads configuration from TOML files, with command-line options taking precedence.
  • Cross-platform support – runs on Linux, macOS, and Windows.

Website: github.com/nolight132/nls
Support:
Developer: nolight132
License: MIT License

nls in action

nls is written in Go. Learn Go with our recommended free books and free tutorials.


Related Software

ls alternativesProgramming LanguageLicense
ezaRustMIT License
lsdRustApache License 2.0
colorlsRubyMIT License
ls++PerlPerl/artistic license
ls-goGoMIT License
kShellMIT License
NatlsRustMIT License
gGoMIT License
logo-lsGoMIT License
lsvVlangMIT License
facadCMIT License
lsrZigMIT License
lvC++GNU General Public License v3.0
lsxRustGNU General Public License v3.0
llaRustMIT License
plsRustGNU General Public License v3.0
zlistZigMIT License
ls-fRustMIT License
lsnoteRustMIT License

Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted