cal, chage: add Chinese translation (#6529)

beep
anderly011 2021-09-15 09:14:54 -03:00 committed by GitHub
parent 60e1eda7e2
commit 6e19670c2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 0 deletions

24
pages.zh/linux/cal.md Normal file
View 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
View 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}}`