# lore

> lore is a free terminal app for Linux and macOS (and Windows through WSL) that lists every command you can type (programs on your PATH, your shell's builtins and your aliases) in one A to Z list, with an offline page for each: what it does, the examples you need, which package it came from, and its manual.

- Latest version: 0.4.9 (2026-11-25)
- Platforms: Linux and macOS, and Windows inside WSL; shells: bash, zsh and fish
- License: the lore licence (https://github.com/guhhammer/lore/blob/main/LICENSE): free to use at home or at work and to share unchanged; changes only as contributions; versions up to 0.4.6 are MIT
- Written in Rust, one binary, built on ratatui
- About 9,100 command pages built into the binary; pages in 41 languages when a translation exists; the interface in 12
- 100 recipes: short task pages that chain commands
- 33 colour palettes, the terminal's own colours by default
- Also: 46 tool cheat sheets, Learn X in Y minutes pages for 201 languages, the 850 DevDocs sets to download, and the beacon (what people use most, from Debian's and Homebrew's public numbers)
- A Claude Code plugin whose skill answers command-line questions from lore, offline
- Works offline. With Internet on, each page can add a cht.sh cheat sheet and the beacon refreshes weekly; Internet off stops every request lore makes on its own
- Shell history is only read, on the user's machine, to rank the commands they run most; it can be turned off
- Source and downloads: https://github.com/guhhammer/lore (https://github.com/guhhammer/lore/releases)
- Author: Gustavo Hammerschmidt (https://guhhammer.dev)

## Pages

- [lore](https://lore.guhhammer.dev/): what lore is, what it shows, its keys, and how to install it
- [Recipes](https://lore.guhhammer.dev/recipes): every recipe, by category
- [Full text](https://lore.guhhammer.dev/llms-full.txt): this index with every recipe written out, in one file

## Recipes

- [add a folder to the path](https://lore.guhhammer.dev/recipes/add-a-folder-to-the-path.md): Let the shell find programs in a folder, for good, and reload the settings without logging out.
- [add a user](https://lore.guhhammer.dev/recipes/add-a-user.md): Create an account with a home folder and a password, and let it use sudo if it should.
- [add to the end of a file](https://lore.guhhammer.dev/recipes/add-to-the-end-of-a-file.md): Add lines to a file without replacing it, also to a file only root can write.
- [add up numbers in a file](https://lore.guhhammer.dev/recipes/add-up-numbers-in-a-file.md): Sum a column of numbers, from a file or a command's output.
- [argument list too long](https://lore.guhhammer.dev/recipes/argument-list-too-long.md): "Argument list too long" from rm, cp or mv: too many files for one command line. Hand them over in batches.
- [ask for input in a script](https://lore.guhhammer.dev/recipes/ask-for-input-in-a-script.md): Ask yes or no, read a password without showing it, or wait for an answer with a time limit.
- [back up and restore postgresql](https://lore.guhhammer.dev/recipes/back-up-and-restore-postgresql.md): Run a .sql file, dump a PostgreSQL database and load it back, from the terminal.
- [change permissions of a folder and everything in it](https://lore.guhhammer.dev/recipes/change-permissions-of-a-folder.md): Give a folder, its subfolders and its files the permissions or the owner they need, without making them open to everyone.
- [check a certificate](https://lore.guhhammer.dev/recipes/check-a-certificate.md): See a site's TLS certificate, when it expires and who issued it, or the same for a .pem file.
- [check a file's permissions](https://lore.guhhammer.dev/recipes/check-a-files-permissions.md): See who may read, write and run a file or a folder, and why a path is refused.
- [check if a file or folder exists](https://lore.guhhammer.dev/recipes/check-if-a-file-or-folder-exists.md): Test in a script whether a path exists, is a file, a folder, empty or runnable.
- [check if a program is installed](https://lore.guhhammer.dev/recipes/check-if-a-program-is-installed.md): Find whether a command exists, where it is, and which package it came from.
- [check if a string contains a text](https://lore.guhhammer.dev/recipes/check-if-a-string-contains-a-text.md): Test in a script whether a string contains, starts with or matches something.
- [command not found after installing](https://lore.guhhammer.dev/recipes/command-not-found-after-installing.md): You installed a program but the shell says "command not found": find where it went and let the shell see it.
- [compare two folders](https://lore.guhhammer.dev/recipes/compare-two-folders.md): Find which files differ between two folders, or are only in one of them.
- [compress a folder](https://lore.guhhammer.dev/recipes/compress-a-folder.md): Pack a folder into one compressed file, look inside it, and unpack it again.
- [copy a folder](https://lore.guhhammer.dev/recipes/copy-a-folder.md): Copy a folder with everything inside it, keeping its dates and permissions if needed.
- [copy files to and from a server](https://lore.guhhammer.dev/recipes/copy-files-to-and-from-a-server.md): Copy a file or a whole folder between this machine and another one over ssh.
- [copy to the clipboard from the terminal](https://lore.guhhammer.dev/recipes/copy-to-the-clipboard-from-the-terminal.md): Send a command's output or a file to the clipboard, and paste from it.
- [copy without some folders](https://lore.guhhammer.dev/recipes/copy-without-some-folders.md): Copy a folder but leave out some of what is inside, like node_modules or .git.
- [copy, overwriting or not](https://lore.guhhammer.dev/recipes/copy-overwriting-or-not.md): Copy without being asked each time, or without ever replacing a file that is there.
- [count lines of code](https://lore.guhhammer.dev/recipes/count-lines-of-code.md): How many lines of code a project has, in total and by language.
- [count lines, words and files](https://lore.guhhammer.dev/recipes/count-lines-words-and-files.md): Count the lines of a file or of a command's output, the words, and the files in a folder.
- [count the processors](https://lore.guhhammer.dev/recipes/count-the-processors.md): How many processors and cores this machine has, and what they are.
- [create a large file](https://lore.guhhammer.dev/recipes/create-a-large-file.md): Make a file of a given size, for testing disks, uploads or swap.
- [create an empty file](https://lore.guhhammer.dev/recipes/create-an-empty-file.md): Make a new empty file, empty an existing one, or make a file with a few lines in it.
- [create nested folders](https://lore.guhhammer.dev/recipes/create-nested-folders.md): Make a folder and every folder above it that is missing, and copy a file into a path that does not exist yet.
- [dates and timestamps](https://lore.guhhammer.dev/recipes/dates-and-timestamps.md): Print dates in any format, turn epoch seconds into dates and back, use other time zones.
- [delete empty lines](https://lore.guhhammer.dev/recipes/delete-empty-lines.md): Take out the empty lines of a file, also the ones with only spaces.
- [delete files and folders](https://lore.guhhammer.dev/recipes/delete-files-and-folders.md): Remove files and folders, ask before each, or remove huge folders quickly.
- [delete lines containing a text](https://lore.guhhammer.dev/recipes/delete-lines-containing-a-text.md): Remove every line of a file that contains a word, or keep only those lines.
- [disk full but df says there is room](https://lore.guhhammer.dev/recipes/disk-full-but-df-says-there-is-room.md): "No space left on device" with free gigabytes: the disk is out of inodes, the slots for files. Find the folder with too many small files.
- [docker cannot connect to the daemon](https://lore.guhhammer.dev/recipes/docker-cannot-connect-to-the-daemon.md): "Cannot connect to the Docker daemon" or "permission denied" on docker.sock: start the service, or let your user use it.
- [download a whole folder from a website](https://lore.guhhammer.dev/recipes/download-a-whole-folder-from-a-website.md): Fetch every file under a web folder, without climbing to the folders above it.
- [environment variables](https://lore.guhhammer.dev/recipes/environment-variables.md): List, read, set and remove environment variables, for a command or for the session.
- [exclude a folder from find](https://lore.guhhammer.dev/recipes/exclude-a-folder-from-find.md): Search with find without going into folders like .git or node_modules.
- [find a file](https://lore.guhhammer.dev/recipes/find-a-file.md): Find a file by its name, by when it changed, or by what is written in it.
- [find a file's encoding](https://lore.guhhammer.dev/recipes/find-a-files-encoding.md): See which character encoding a text file is in, and convert it to UTF-8.
- [find big files](https://lore.guhhammer.dev/recipes/find-big-files.md): Find the files that take the most room, on a whole disk or in a folder.
- [find files containing a text](https://lore.guhhammer.dev/recipes/find-files-containing-a-text.md): Search every file under a folder for a word or a phrase, and show where it is.
- [find recently changed files](https://lore.guhhammer.dev/recipes/find-recently-changed-files.md): The newest files in a folder, or those changed in the last minutes or days.
- [find the script's own folder](https://lore.guhhammer.dev/recipes/find-the-scripts-own-folder.md): Inside a script, find the folder the script is in, to reach files next to it.
- [find this machine's ip address](https://lore.guhhammer.dev/recipes/find-this-machines-ip-address.md): This machine's address on the local network, and the one the internet sees.
- [find what killed a process](https://lore.guhhammer.dev/recipes/find-what-killed-a-process.md): A program vanished or says "Killed": usually the kernel ran out of memory and stopped it. Find out.
- [fix error while loading shared libraries](https://lore.guhhammer.dev/recipes/fix-error-while-loading-shared-libraries.md): "cannot open shared object file": a program needs a library that is missing or not where it looks.
- [fix windows line endings](https://lore.guhhammer.dev/recipes/fix-windows-line-endings.md): "bad interpreter: ^M" and odd characters: the file has Windows line endings (CRLF). Find them and change them to Unix ones (LF).
- [free disk space](https://lore.guhhammer.dev/recipes/free-disk-space.md): Find what fills a disk, then clear what is safe to clear: old package files, logs, caches.
- [get a file's name, folder and extension](https://lore.guhhammer.dev/recipes/get-a-files-name-folder-and-extension.md): Take a path apart in a script: the folder, the name, the name without its extension, the extension.
- [get inside a docker container](https://lore.guhhammer.dev/recipes/get-inside-a-docker-container.md): Open a shell in a running container, copy files in and out, read its logs, share a folder with it.
- [get the full path of a file](https://lore.guhhammer.dev/recipes/get-the-full-path-of-a-file.md): Turn a file's name into its whole path from /, through links if you want.
- [import and export a mysql database](https://lore.guhhammer.dev/recipes/import-and-export-a-mysql-database.md): Load a .sql file into MySQL or MariaDB, dump a database to one, and connect from the terminal.
- [keep a command running after logout](https://lore.guhhammer.dev/recipes/keep-a-command-running-after-logout.md): Start a long job so it survives closing the terminal or the ssh session, and come back to it.
- [list and close tmux or screen sessions](https://lore.guhhammer.dev/recipes/list-and-close-tmux-or-screen-sessions.md): See the terminal sessions left running, join one, or end them.
- [list only folders](https://lore.guhhammer.dev/recipes/list-only-folders.md): List the folders here and not the files, or only the files.
- [list users and groups](https://lore.guhhammer.dev/recipes/list-users-and-groups.md): See the accounts on this machine, the groups, and who is in each.
- [loop over files, numbers and lists](https://lore.guhhammer.dev/recipes/loop-over-files-numbers-and-lists.md): Repeat commands for every file of a kind, a range of numbers, or the items of an array.
- [make a script take options](https://lore.guhhammer.dev/recipes/make-a-script-take-options.md): Read a script's arguments and options, and stop with a usage line when they are wrong.
- [make a symbolic link](https://lore.guhhammer.dev/recipes/make-a-symbolic-link.md): Make a name that points to another file or folder, see where a link points, and change or remove it.
- [make web requests with curl](https://lore.guhhammer.dev/recipes/make-web-requests-with-curl.md): Send GET and POST requests, JSON and files, see headers and status codes, go through a proxy.
- [merge pdf files](https://lore.guhhammer.dev/recipes/merge-pdf-files.md): Join several PDF files into one, and take pages out of one.
- [pack a folder without some files](https://lore.guhhammer.dev/recipes/pack-a-folder-without-some-files.md): Make a tar archive of a folder, leaving out folders like node_modules and files like logs.
- [pretty-print json](https://lore.guhhammer.dev/recipes/pretty-print-json.md): Show JSON indented and coloured, pick values out of it, from a file or a web request.
- [print colors and new lines](https://lore.guhhammer.dev/recipes/print-colors-and-new-lines.md): Print text in color, and print new lines from a string, which plain echo may not do.
- [print or remove lines of a file](https://lore.guhhammer.dev/recipes/print-or-remove-lines-of-a-file.md): Show one line by its number, a range, skip the first ones, or take off the last.
- [read a file line by line](https://lore.guhhammer.dev/recipes/read-a-file-line-by-line.md): Go through a file's lines in a script, also split into fields, without losing spaces or backslashes.
- [read the system logs](https://lore.guhhammer.dev/recipes/read-the-system-logs.md): Find what went wrong: the errors since boot, a service's log, the kernel's messages.
- [rename many files](https://lore.guhhammer.dev/recipes/rename-many-files.md): Change the ending of many files, replace spaces in names, or number them.
- [replace text in a file](https://lore.guhhammer.dev/recipes/replace-text-in-a-file.md): Change every place a word or a phrase appears in a file, keeping a copy if you like.
- [replace text in many files](https://lore.guhhammer.dev/recipes/replace-text-in-many-files.md): Change a word or a phrase in every file under a folder that contains it.
- [run a script](https://lore.guhhammer.dev/recipes/run-a-script.md): Make a script runnable and run it, or run it in the shell you are in.
- [run commands on a server over ssh](https://lore.guhhammer.dev/recipes/run-commands-on-a-server-over-ssh.md): Run one command or a whole local script on another machine, without logging in by hand.
- [save a command's output in a variable](https://lore.guhhammer.dev/recipes/save-a-commands-output-in-a-variable.md): Keep what a command prints in a variable, or each line in an array, to use later in a script.
- [schedule a command with cron](https://lore.guhhammer.dev/recipes/schedule-a-command-with-cron.md): Run a command every day, every hour or every few minutes, and see what is scheduled.
- [search but skip some files](https://lore.guhhammer.dev/recipes/search-but-skip-some-files.md): grep through a project without its build folders, minified files or logs.
- [see a program's memory use](https://lore.guhhammer.dev/recipes/see-a-programs-memory-use.md): How much memory a program really uses, and which programs use the most.
- [see each command a script runs](https://lore.guhhammer.dev/recipes/see-each-command-a-script-runs.md): Debug a script: print every command as it runs, check its syntax, find common mistakes.
- [see the size of files and folders](https://lore.guhhammer.dev/recipes/see-the-size-of-files-and-folders.md): How much room each file and folder takes, here or anywhere, biggest last.
- [send output and errors to a file](https://lore.guhhammer.dev/recipes/send-output-and-errors-to-a-file.md): Keep what a command prints, its errors too, in a file, or throw them away.
- [set up an ssh key](https://lore.guhhammer.dev/recipes/set-up-an-ssh-key.md): Make a key, put it on a server to log in without a password, use a given key, change its passphrase.
- [show a folder tree](https://lore.guhhammer.dev/recipes/show-a-folder-tree.md): Show folders and files as a tree, to see how a project is laid out.
- [sort and remove duplicate lines](https://lore.guhhammer.dev/recipes/sort-and-remove-duplicate-lines.md): Sort lines, keep each once, count how often each appears.
- [split a big file](https://lore.guhhammer.dev/recipes/split-a-big-file.md): Cut a big file into smaller pieces, by lines or by size, and join them again.
- [split a string in bash](https://lore.guhhammer.dev/recipes/split-a-string-in-bash.md): Cut a string at a delimiter into parts or an array.
- [stop a frozen program](https://lore.guhhammer.dev/recipes/stop-a-frozen-program.md): Find a program that stopped answering and end it: politely first, by force if it must.
- [stop a script on errors](https://lore.guhhammer.dev/recipes/stop-a-script-on-errors.md): Make a script stop at the first failing command, say where, and still allow the ones that may fail.
- [sync two folders](https://lore.guhhammer.dev/recipes/sync-two-folders.md): Make one folder a copy of another, here or on a server, copying only what changed.
- [the internet does not work](https://lore.guhhammer.dev/recipes/the-internet-does-not-work.md): Go step by step from this machine out: its address, the router, the internet by number, then by name.
- [time a command](https://lore.guhhammer.dev/recipes/time-a-command.md): How long a command takes, and how much memory and processor it used.
- [undo changes in git](https://lore.guhhammer.dev/recipes/undo-changes-in-git.md): Throw away changes not committed yet, unstage files, or put work aside for later.
- [undo the last git commit](https://lore.guhhammer.dev/recipes/undo-the-last-git-commit.md): Take back a commit, keep its changes or not, fix its message, or undo one already pushed.
- [unmount a busy drive](https://lore.guhhammer.dev/recipes/unmount-a-busy-drive.md): "target is busy": something still uses the drive. Find it, stop it, then unmount.
- [unpack an archive](https://lore.guhhammer.dev/recipes/unpack-an-archive.md): Open any common archive: tar, zip, gz, xz, 7z, rar.
- [what is slowing the machine](https://lore.guhhammer.dev/recipes/what-is-slowing-the-machine.md): See whether the processor, the memory or a disk is the bottleneck, and which program is behind it.
- [what is using a port](https://lore.guhhammer.dev/recipes/what-is-using-a-port.md): Find the program listening on a port (port 80 here), see what it is, and stop it if it should not be there.
- [which linux version is this](https://lore.guhhammer.dev/recipes/which-linux-version-is-this.md): The distribution, its version, the kernel and the hardware it runs on.
- [which package a file came from](https://lore.guhhammer.dev/recipes/which-package-a-file-came-from.md): Find the package that installed a file or a command, or the one that would install a file you do not have yet.
- [which shell is running](https://lore.guhhammer.dev/recipes/which-shell-is-running.md): Find out which shell runs now, which one is your default, and change it.
- [who is logged in](https://lore.guhhammer.dev/recipes/who-is-logged-in.md): See who is on this machine now, who was before, and the failed attempts.
- [why won't a service start](https://lore.guhhammer.dev/recipes/why-wont-a-service-start.md): Read what a systemd service said when it failed, check its unit file and its configuration, then start it again.
- [work with strings in bash](https://lore.guhhammer.dev/recipes/work-with-strings-in-bash.md): Join, cut, replace, change the case of and trim strings in a script, without other programs.

## Optional

- [Source code](https://github.com/guhhammer/lore): the repository, under the lore licence
- [Releases](https://github.com/guhhammer/lore/releases): .deb, .rpm, static Linux and macOS binaries
- [Privacy](https://lore.guhhammer.dev/privacy): what this website records (nothing about visitors beyond the server's request log)
