lz

Crates.iolz
lib.rslz
version0.4.0
created_at2025-07-16 15:29:16.352917+00
updated_at2025-07-17 07:52:25.438357+00
descriptionA CLI tool to list the 5 most recently accessed files in a directory tree, sorted by last access time.
homepagehttps://github.com/AlexsJones/lz
repositoryhttps://github.com/AlexsJones/lz
max_upload_size
id1755666
size389,261
Alex Jones (AlexsJones)

documentation

https://github.com/AlexsJones/lz

README

lz

A blazingly fast CLI tool to list the 5 most recently accessed files in a directory tree, sorted by last access time.

Features

  • Recursively scans a directory and its subdirectories
  • Sorts files by last access time (most recently accessed first)
  • Prints the 5 most recently accessed files with their access timestamps

Installation

Add to your Cargo.toml or install via cargo:

cargo install --path .

Usage

lz [OPTIONS] [--path <PATH>]
  • --path <PATH>: The root directory to scan (defaults to current directory)

Example

lz --path /var/log

Output:

/var/log/syslog  (2024-06-10 14:23:01)
/var/log/auth.log  (2024-06-10 13:55:12)
/var/log/kern.log  (2024-06-10 13:40:05)
/var/log/dpkg.log  (2024-06-10 12:10:44)
/var/log/faillog  (2024-06-10 11:59:33)

License

Licensed under the MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT).

Contributing

Pull requests and issues are welcome!

Commit count: 0

cargo fmt