Linux · Others
Ledger
Ledger is a plain‑text double‑entry accounting tool for the command line.
- License
- GPL-2.0
- Latest version
- 3.4.1
What is Ledger?
Ledger is a mature, open‑source accounting system that stores all data in simple text files using a straightforward syntax. It originated in the early 2000s and has been maintained by a small community, making it stable and well‑documented. It runs on any Unix‑like system, including all major Linux distributions.
The tool is aimed at users comfortable with the terminal who need precise control over their financial records—freelancers, small business owners, and accountants who prefer scriptable workflows. Unlike GUI programs, Ledger lets you edit, query, and generate reports with standard text editors and shell pipelines.
Compared with Windows tools like GnuCash, Ledger feels more lightweight and transparent: there’s no hidden database, just readable files you can version‑control. The learning curve is steeper, but once mastered it offers fast, reproducible reporting without the overhead of a graphical interface.
Best for: Users who prefer a text‑based, scriptable accounting system and are comfortable with the command line.
Key features of Ledger
- Plain‑text ledger files (human readable)
- Double‑entry accounting with automatic balancing
- Powerful command‑line reporting (register, balance sheet, income statement)
- Customizable output formats (CSV, HTML, PDF via external tools)
- Support for multiple currencies and exchange rates
- Scripting friendly – can be combined with awk, grep, etc.
- Built‑in budgeting and forecasting
- Extensible through user‑written scripts
Pros
- Fully portable data – easy backup and version control
- No GUI dependencies, runs on any Linux distro
- Highly scriptable for automated workflows
- Fast performance even with large data sets
Cons
- Steep learning curve for users unfamiliar with CLI
- No native graphical interface; requires third‑party front‑ends for visual editing
- Limited visual charting compared to full‑featured GUI apps
Windows programs Ledger replaces
How to install Ledger on Linux
sudo apt install ledgersudo apt install ledgersudo dnf install ledgersudo pacman -S ledgersudo zypper install ledgerTips for Windows users
Export your GnuCash data to CSV (File → Export → CSV) and then import it into Ledger using the csv2ledger utility or by writing a simple import script; Ledger’s syntax is line‑oriented, so you’ll need to map GnuCash accounts to Ledger accounts manually. Keyboard shortcuts differ: Ledger relies on your editor’s shortcuts rather than menu shortcuts. Adopt a workflow where you edit the ledger file in your favorite editor, then run ledger register or ledger bal to generate reports.
Ledger: frequently asked questions
How do I install Ledger on Ubuntu?
Use the package manager: sudo apt install ledger.
Can Ledger handle multiple currencies?
Yes, you can specify currency symbols per transaction and define exchange rates within the ledger file.
Is there a GUI for Ledger?
There are third‑party front‑ends like ledger-web or fava, but the core tool remains command‑line only.
How do I back up my Ledger data?
Since data is plain text, copy the ledger file(s) to a backup location or commit them to a version‑control system like Git.
Updated