#display #directory #ls #size #sorting #du

app lsxd

A easy way to display directories and their size

19 releases

Uses new Rust 2024

0.1.19 Aug 28, 2025
0.1.18 Aug 26, 2025

#269 in Filesystem

Download history 133/week @ 2025-07-31 354/week @ 2025-08-07 697/week @ 2025-08-14 171/week @ 2025-08-21 177/week @ 2025-08-28 5/week @ 2025-09-04 4/week @ 2025-09-25 7/week @ 2025-10-02

1,059 downloads per month

MIT license

14KB
255 lines

LSxD

A simple and naïve implementation of two unix commands (LS and DU) written in Rust ❤️

Table of Contents

Features

  • Displays the contents of a folder (including files and directories)
  • Displays the human readable size of files
  • Displays the human readable size of subdirectories
  • Can be recursive (using -d argument)
  • Sort by size (using -s argument)

Screenshots

lsxd without options

lsxd without -d option

Install

Using cargo:

```bash
    cargo install lsxd
```

Using GitHub releases

  1. Download lsxd from releases page

  2. Unzip the .tar.gz archive

    tar -zxvf {ARCHIVE.tar.gz} 
    
  3. Install lsxd binary:

     install -m 111 lsxd /opt/lsxd
    
  4. Run lsxd from everywhere on your computer

     echo export PATH=$PATH:/opt/lsxd/ >> {PATH/TO/YOUR/.BASHRC_FILE}
    

Arguments

Arg Description Default Example
-d Display depth 0 -d 2
-s Sort by size false -s

Limitation

Due to the way the Linux file system works, folder sizes are rounded to the block size (4.0kb)

Dependencies

~3–15MB
~133K SLoC