-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
touch: add Simplified Chinese Translation #12786
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @Smart-SangGe thank you for the new page, I left a suggestion.
pages.zh/common/touch.md
Outdated
# touch | ||
|
||
> 创建文件并设置访问/修改时间。 | ||
> 更多信息:<https://manned.org/man/freebsd-13.1/touch>。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> 更多信息:<https://manned.org/man/freebsd-13.1/touch>。 | |
> 更多信息:<https://manned.org/man/freebsd-13.1/touch>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your suggestion. I have made the changes according to your recommendation.
pages.zh/common/touch.md
Outdated
|
||
`touch -c -t {{YYYYMMDDHHMM.SS}} {{路径/到/文件1 路径/到/文件2 ...}}` | ||
|
||
- 将文件时间设置为另一个文件的时间,如果文件不存在则不创建: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, the current description is not clear that the command will set 文件1, 文件2 file time to emacs filetime.
I suggest
- replace emacs to 文件3
- change the description to 將文件時間設置為文件3的時間
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your suggestion. I have made the changes according to your recommendation.
Hello! I've noticed something unusual when checking this PR:
Is this intended? If so, just ignore this comment. Otherwise, please double-check the commits. |
1 similar comment
Hello! I've noticed something unusual when checking this PR:
Is this intended? If so, just ignore this comment. Otherwise, please double-check the commits. |
pages.zh/common/touch.md
Outdated
|
||
- 创建指定的文件: | ||
|
||
`touch 路径/到/文件名1 路径/到/文件名2 ...` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`touch 路径/到/文件名1 路径/到/文件名2 ...` | |
`touch {{路径/到/文件名1 路径/到/文件名2 ...}}` |
pages.zh/common/touch.md
Outdated
|
||
- 将文件的访问(a)或修改时间(m)设置为当前时间,如果文件不存在则不创建(-c): | ||
|
||
`touch -c -a|m 路径/到/文件1 路径/到/文件2 ...` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`touch -c -a|m 路径/到/文件1 路径/到/文件2 ...` | |
`touch -c -a|m {{路径/到/文件1 路径/到/文件2 ...}}` |
pages.zh/common/touch.md
Outdated
|
||
- 将文件时间(-t)设置为指定值,如果文件不存在则不创建(-c): | ||
|
||
`touch -c -t YYYYMMDDHHMM.SS 路径/到/文件名1 路径/到/文件名2 ...` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`touch -c -t YYYYMMDDHHMM.SS 路径/到/文件名1 路径/到/文件名2 ...` | |
`touch -c -t YYYYMMDDHHMM.SS {{路径/到/文件名1 路径/到/文件名2 ...}}` |
pages.zh/common/touch.md
Outdated
|
||
- 将文件时间设置为另一文件(-r,即文件3)的时间,如果文件不存在则不创建(-c): | ||
|
||
`touch -c -r 路径/到/文件3 路径/到/文件名1 路径/到/文件名2 ...` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`touch -c -r 路径/到/文件3 路径/到/文件名1 路径/到/文件名2 ...` | |
`touch -c -r {{路径/到/文件3}} {{路径/到/文件名1 路径/到/文件名2 ...}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for your contribution.
common
,linux
,osx
,windows
,sunos
,android
, etc.