mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-11 03:55:31 +03:00
cal, chage: add Chinese translation (#6529)
This commit is contained in:
parent
60e1eda7e2
commit
6e19670c2f
24
pages.zh/linux/cal.md
Normal file
24
pages.zh/linux/cal.md
Normal file
@ -0,0 +1,24 @@
|
||||
# cal
|
||||
|
||||
> 打印日历信息,高亮显示当前日期。
|
||||
> 更多信息:<https://manned.org/cal>.
|
||||
|
||||
- 显示当前月份的日历:
|
||||
|
||||
`cal`
|
||||
|
||||
- 显示上个月、当前月和下个月:
|
||||
|
||||
`cal -3`
|
||||
|
||||
- 使用星期一作为一周的第一天:
|
||||
|
||||
`cal --monday`
|
||||
|
||||
- 显示特定年份的日历(4位数字):
|
||||
|
||||
`cal {{年份}}`
|
||||
|
||||
- 显示特定月份和年份的日历:
|
||||
|
||||
`cal {{月份}} {{年份}}`
|
24
pages.zh/linux/chage.md
Normal file
24
pages.zh/linux/chage.md
Normal file
@ -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
Block a user