← 返回命令列表

Linux command

ledger 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show balance

ledger -f [journal.ledger] balance

Show register

ledger -f [journal.ledger] register

Balance for account

ledger -f [journal.ledger] balance [Expenses]

Monthly summary

ledger -f [journal.ledger] register --monthly

Print transactions

ledger -f [journal.ledger] print

Budget report

ledger -f [journal.ledger] budget

说明

ledger is a plain text accounting tool. It processes double-entry accounting journals. The tool generates reports from simple text files. It supports multiple currencies and commodities.

参数

-f _FILE_
Journal file.
balance
Show account balances.
register
Show transaction register.
print
Print transactions.
--monthly
Group by month.
--period _PERIOD_
Time period filter.
--help
Display help information.

FAQ

What is the ledger command used for?

ledger is a plain text accounting tool. It processes double-entry accounting journals. The tool generates reports from simple text files. It supports multiple currencies and commodities.

How do I run a basic ledger example?

Run `ledger -f [journal.ledger] balance` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f _FILE_ do in ledger?

Journal file.