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

Related tags

Command Line lls
Overview

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 reduce the memory usage, you can specify the -buf-size option. If the size you specify is smaller than the actual size needed, you will not get the full file list.

Issues
  • IMHO: fix: close directory file

    IMHO: fix: close directory file

    blogを見てllsを動かしてみました。

    https://developers.prtimes.jp/2021/09/15/decommissioning_old_storage_list_a_dir_29million/

    プログラムを読み一点気になりましたのでご連絡いたします。

    opened by gongqi-zhen 2
  • use bytes.IndexByte

    use bytes.IndexByte

    We can use bytes.IndexByte for this purpose, and I think it's faster because it is written in assembly using special machine instructions.

    opened by DQNEO 2
  • add github action

    add github action

    null

    opened by catatsuy 0
  • add FAQs

    add FAQs

    null

    opened by catatsuy 0
  • call getdents multiple times

    call getdents multiple times

    Getdents can be called multiple times. Set the default size of the buffer to 5MB and call it multiple times.

    opened by catatsuy 0
  • Revert

    Revert "Merge pull request #5 from DQNEO/use-bytes-indexbyte"

    This reverts commit b58321b50e6ed14aa77fbb619efecadb96fddf66, reversing changes made to 1eb9e23513edad1a0e093b01cc885716930183f6.

    opened by catatsuy 0
Releases(v0.0.2)
Owner
Tatsuya Kaneko
Tatsuya Kaneko
yq lets you read YAML files easily on the terminal. You can find key/values easily

yq yq lets you read YAML files easily on the terminal. You can find key/values easily. Motivation Reading yaml configurations for k8s file becomes ard

Farhan 3 Nov 2, 2021
A simple shopping list that keeps track of a users shopping list using charm.sh tools

Terminal Shopping List This repo is a practise project for learning practical Go. I have chosen to use a toolset called Charm as it provides a rich se

Ben Clarke 0 Jan 13, 2022
A simple CLI tool that identifies duplicate JARS in a directory. It can remove them also if desired.

Mendix Userlib Cleaner This little utility can be used to identify and clean duplicate JARs. It was created mainly for Mendix apps due to lack of form

CINAQ Internet Technologies 11 Dec 15, 2021
Got: Simple golang package and CLI tool to download large files faster 🏃 than cURL and Wget!

Got. Simple and fast concurrent downloader. Installation ❘ CLI Usage ❘ Module Usage ❘ License Comparison Comparison in cloud server: [[email protected]

Mohamed El Bahja 525 Jan 6, 2022
Command-line tool to organize large directories of media files recursively by date, detecting duplicates.

go-media-organizer Command-line tool written in Go to organise all media files in a directory recursively by date, detecting duplicates.

Allan Avelar 8 Jan 6, 2022
Watcher - A simple command line app to watch files in a directory for changes and run a command when files change!

Watcher - Develop your programs easily Watcher watches all the files present in the directory it is run from of the directory that is specified while

Geet Sethi 0 Jan 2, 2022
Simple to do list API with Gin and Gorm (with Postgres)Simple to do list API with Gin and Gorm (with Postgres)

go-todo Simple to do list API with Gin and Gorm (with Postgres) Docker Clone this repository and run: docker-compose up You can then hit the followin

ansh-dev 0 Nov 20, 2021
This repository contains example apps created using GoCondor framework

Examples This repository contains example apps created using GoCondor framework what are the examples? 1- Todo API A todo api with the below routes:

Go Condor 0 May 7, 2021
Demonstrating how you can take an action to your intrusions detected by Falco using OpenFaaS functions

Kubernetes Response Engine powered by OpenFaaS Although Falco can be used to detect any intrusion attempts and sends alerts to channels according to t

Batuhan Apaydın 24 Nov 15, 2021
Softsuite - Start from gofiber boilerplate and plan to build large projects

Softsuite Thanks to Cozy (ItsCosmas) to build gofiber boilerplate. I start learn

Mai 0 Jan 19, 2022
A go language implementation of a CLI, based on input directory files

A go language implementation of a CLI, based on input directory files, using tree output of all file names, based on input database links, dynamic reading of database table information, based on input swagger files to automate the generation of the RESTFUL API.

Eric 2 Nov 20, 2021
Golang-based simple file server to serve files of the current working directory

fileserve Golang-based simple file server to serve static files of the current working directory File sharing in LAN or home network Web application t

Frank Hübner 2 Jan 9, 2022
`tmax` is a powerful tool to help you get terminal cmd directly.

The positioning of tmax is a command line tool with a little artificial intelligence. If you frequently deal with the terminal daily, tmax will greatly improve your work efficiency.

Jeremy 28 Oct 22, 2021
Get Brew Packages to update, just like you've experienced from Ubuntu

Get the number of Brew Packages to update, just like you've experienced from Ubuntu BrewUpdate is a simple utility written in Go, notify you how many

YeonGyu-Kim 13 Nov 6, 2021
You-Get is a tiny command-line utility to download media contents (videos, audios, images) from the Web,

You-Get NOTICE: Read this if you are looking for the conventional "Issues" tab. You-Get is a tiny command-line utility to download media contents (vid

Mort Yao 42.9k Jan 19, 2022
A Go package for converting RGB and other color formats/colorspaces into DMC thread colors (DMC color name and floss number)

go-c2dmc A Go package for converting RGB and other color formats/colorspaces into DMC thread colors (DMC color name and floss number). Implemented as

null 2 Dec 5, 2021
This repository contains utility functions that do not make sense in other packages.

Installation go get github.com/IQ-tech/go-utils Executing code before process exits AtInterruption receives a function that will be called once befor

IQ Tech 0 Dec 9, 2021
This repository contains gRPC server and client

link Данный репозиторий содержит gRPC сервер и клиент. Запуск Сервер Сервер офор

null 1 Dec 20, 2021
Ghissue - This repo contains a github issue parser, that is useful for Enterprise Github accounts.

Ghissue - This repo contains a github issue parser, that is useful for Enterprise Github accounts. Sometimes is needed to parse the content of the issue for some data extraction or statistics purposes.

niloofargheibi 0 Jan 1, 2022