lsxd

Crates.iolsxd
lib.rslsxd
version0.1.19
created_at2025-08-12 06:11:23.732181+00
updated_at2025-08-28 20:14:04.967287+00
descriptionA easy way to display directories and their size
homepagehttps://github.com/vi17250/lsxd
repositoryhttps://github.com/vi17250/lsxd
max_upload_size
id1791422
size48,110
Victor 💡 (vi17250)

documentation

https://github.com/vi17250/lsxd

README

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)

Commit count: 101

cargo fmt