Ledger is an accounting program which is invoked from the command-line using a textual ledger file. See the documentation (ledger.pdf, or use 'info ledger') for full documentation on creating a ledger file and using Ledger to generate reports.