lls

command module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 2 Imported by: 0

README

lls

lls is lightweight ls. Using lls, you can get a list of files in a directory that contains a large number of files.

How?

You allocate a buffer for the size of the directory, and then call the getdents64 system call directly.

The larger the size of the directory, the more memory you will need. By running ls -dl, you will know how much memory to allocate in advance.

See this article for more information.

Usage

$ lls > output.txt

$ lls / > output.txt

If you want to change the memory usage, you can specify the -buf-size option (default: 5MB).

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