Documents

lsr – directory listing utility with io_uring

lsr is a command-line implementation of ls that uses the Linux io_uring interface to batch filesystem-related system calls. It aims to reduce the overhead associated with obtaining information about files and directories, particularly when dealing with large directory listings. Its approach differs from alternatives that concentrate primarily on colours, icons and visual presentation.

The io_uring interface provides an asynchronous system-call mechanism within the Linux kernel. By using this facility, lsr can perform certain filesystem operations more efficiently than implementations relying exclusively on conventional synchronous system calls. The program also provides familiar listing options, including long-format output, sorting and hidden-file handling. Although the syscall batching functionality is specific to Linux, the utility can operate on other supported Unix-like systems without that optimisation. Its emphasis on filesystem performance makes it useful for examining directories containing large numbers of entries.

This is free and open source software.

Key Features

  • Uses io_uring for filesystem syscall batching on Linux.
  • Supports single-column and multi-column directory listings.
  • Long listing mode with extended file metadata.
  • Optional colour-coded output.
  • Optional file-type icons.
  • Supports terminal hyperlinks.
  • Displays hidden files, with an option to omit implicit directory entries.
  • Can group directories before regular files.
  • Sorts entries by modification time.
  • Supports reversing the listing order.
  • Cross-platform support – runs on Linux, macOS, and BSD.

Website: tangled.org/rockorager.dev/lsr
Support:
Developer: Tim Culverhouse
License: MIT License

Options available with lsr

lsr is written in Zig. Learn Zig with our recommended 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