19 releases
Uses new Rust 2024
| 0.1.19 | Aug 28, 2025 |
|---|---|
| 0.1.18 | Aug 26, 2025 |
#269 in Filesystem
1,059 downloads per month
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
-dargument) - Sort by size (using
-sargument)
Screenshots
Install
Using cargo:
```bash
cargo install lsxd
```
Using GitHub releases
-
Download
lsxdfrom releases page -
Unzip the .tar.gz archive
tar -zxvf {ARCHIVE.tar.gz} -
Install
lsxdbinary:install -m 111 lsxd /opt/lsxd -
Run
lsxdfrom everywhere on your computerecho 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