lls

command module
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2025 License: MIT Imports: 2 Imported by: 0

README

lls

The 'lls' tool is a lightweight version of the 'ls' command, which allows you to generate a list of files within a directory that has a large number of files (e.g. 30M).

How?

To use the 'lls' tool, you need to allocate a buffer in memory for the size of the directory you want to list. You can use the 'getdents64' system call to retrieve the list of files.

The larger the directory size, the more memory will be required for the buffer. To determine the necessary amount of memory in advance, you can run the ls -dl command.

For additional information on using the 'lls' tool, you can refer to this article.

Usage

$ lls > output.txt

$ lls / > output.txt

To adjust the memory usage of the 'lls' tool, you can use the -buf-size option (with a default value of 5MB). This allows you to specify the size of the buffer used to hold the list of files.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL