惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

MyScale Blog
MyScale Blog
J
Java Code Geeks
Vercel News
Vercel News
A
About on SuperTechFans
G
Google Developers Blog
C
Check Point Blog
腾讯CDC
N
Netflix TechBlog - Medium
博客园 - 司徒正美
S
SegmentFault 最新的问题
D
DataBreaches.Net
博客园_首页
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
博客园 - 聂微东
量子位
雷峰网
雷峰网
IT之家
IT之家
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
博客园 - 三生石上(FineUI控件)
H
Help Net Security
宝玉的分享
宝玉的分享
博客园 - 叶小钗

neverland

‘Welcome datacomp’ n memory of the man who put red and green squiggles under words Photos Note Photos Photos Photos pikabubu 在香港骑共享单车:访客视角的经验 Day for Night Note Love Is to Be Invested in Someone’s Continual Expansion Photos Photos Note Photos Photos Photos Repetitive Cycles The Slow Death of the Power User Photos Photos Photos Photos The Life and Times of an American Tween Photos AI 裁员潮卑鄙生存指南 The Unethical Guide to Surviving AI Layoffs True resilience is not about bouncing back Note Note
一个冷门的速查日历方法
2026-05-27 · via neverland

一个冷门的速查日历方法 (2026-05-27 16:22)

就是终端里的 cal 命令了。之所以喜欢用这个首先是因为快:我平时固定是开着终端的(作为 vscodium 的底部面板),码字过程中直接打个 cal(pun intended)就能看当月日历,比打开日历应用或者 menubar item 都要快。其次因为是终端输出,就是纯文本,可以直接复制到笔记里参考或者进一步标注。当然缺点就是比较简陋,不过我本来就喜欢这种野兽派纯文本风格,所以反而是加分项了。

以下是一些常用选项和参数:

# 显示 2025 全年
cal 2025 # shorthand for `cal -y 2025`

# 显示今年 3 月
cal -m 3

# 显示本月和紧邻的前后月份
cal -3

# 旋转行和列(每周为一列)并显示周数
ncal -w # shorthand for `cal -N -w`

更多用法可以看手册页 man cal。如其中的 history 一节所说这也是个上古命令了,从 Version 1 AT&T UNIX (1971) 就有,几十年就是这样下来了(