大网数据广告活动
Linux 与通用命令

hledger-balance · 常用命令示例

· 52CE 我爱测

A flexible, general purpose "summing" report that shows accounts with some kind of numeric data. > This can be balance changes per period, end balances, budget performance, unrealized capital gains, etc. > More information: <https://hledger.org/hledger.html#balance>.

hledger balance

A flexible, general purpose "summing" report that shows accounts with some kind of numeric data. This can be balance changes per period, end balances, budget performance, unrealized capital gains, etc. More information: https://hledger.org/hledger.html#balance.

  • Show the balance change in all accounts from all postings over all time:

hledger

  • Show the balance change in accounts whose name contains expenses, as a tree, summarizing the top two levels only:

hledger expenses

  • Show expenses each month, and their totals and averages, sorted by total; and their monthly budget goals:

hledger --budget

  • Show monthly totals, averages, and budget goals for accounts matching the Expense type, as a two level tree without squashing boring accounts:

hledger type:X --budget --no-elide

  • Show end balances (including from postings before the start date), quarterly in 2024, in accounts whose name contains assets or liabilities:

hledger 'quarterly in 2024' assets liabilities

  • Show quarterly end balances in 2024 for asset and liability accounts, including zero balances, sorted by total, and summarized to three levels:

hledger date:2024 type:AL

  • Show investment assets' market [V]alue in base currency at the end of each quarter:

hledger assets:investments

  • Show unrealized capital gains/losses from market price changes in each quarter, for non-cryptocurrency investment assets:

hledger --gain assets:investments not:cryptocurrency

来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。

资料来源与适用范围

资料来源
tldr-pages contributors
适用范围
请按文中版本与环境说明核对
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。