mirror of https://github.com/CrimsonTome/tldr.git
cal, chage: add Chinese translation (#6529)
parent
60e1eda7e2
commit
6e19670c2f
|
@ -0,0 +1,24 @@
|
||||||
|
# cal
|
||||||
|
|
||||||
|
> 打印日历信息,高亮显示当前日期。
|
||||||
|
> 更多信息:<https://manned.org/cal>.
|
||||||
|
|
||||||
|
- 显示当前月份的日历:
|
||||||
|
|
||||||
|
`cal`
|
||||||
|
|
||||||
|
- 显示上个月、当前月和下个月:
|
||||||
|
|
||||||
|
`cal -3`
|
||||||
|
|
||||||
|
- 使用星期一作为一周的第一天:
|
||||||
|
|
||||||
|
`cal --monday`
|
||||||
|
|
||||||
|
- 显示特定年份的日历(4位数字):
|
||||||
|
|
||||||
|
`cal {{年份}}`
|
||||||
|
|
||||||
|
- 显示特定月份和年份的日历:
|
||||||
|
|
||||||
|
`cal {{月份}} {{年份}}`
|
|
@ -0,0 +1,24 @@
|
||||||
|
# chage
|
||||||
|
|
||||||
|
> 更改用户账户和密码到期信息。
|
||||||
|
> 更多信息:<https://manned.org/chage>.
|
||||||
|
|
||||||
|
- 列出用户的密码信息:
|
||||||
|
|
||||||
|
`chage -l {{用户名}}`
|
||||||
|
|
||||||
|
- 启用密码在 10 天内过期:
|
||||||
|
|
||||||
|
`sudo chage -M {{10}} {{用户名}}`
|
||||||
|
|
||||||
|
- 关闭密码过期:
|
||||||
|
|
||||||
|
`sudo chage -M -1 {{用户名}}`
|
||||||
|
|
||||||
|
- 设置账户到期日期:
|
||||||
|
|
||||||
|
`sudo chage -E {{YYYY-MM-DD}}`
|
||||||
|
|
||||||
|
- 强制用户在下次登录时更改密码:
|
||||||
|
|
||||||
|
`sudo chage -d {{0}}`
|
Loading…
Reference in New Issue