Skip to content
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

time命令存疑 #352

Closed
zchrissirhcz opened this issue Apr 12, 2022 · 4 comments
Closed

time命令存疑 #352

zchrissirhcz opened this issue Apr 12, 2022 · 4 comments

Comments

@zchrissirhcz
Copy link

https://wangchujiang.com/linux-command/c/time.html

图片

本地ubuntu20.04,运行 time 得到的输出不一样:

time -help 
zsh: command not found: -help
-help  0.00s user 0.00s system 82% cpu 0.002 total

图片

@jaywcjlove
Copy link
Owner

我这 centos 的

@zchrissirhcz

@zchrissirhcz
Copy link
Author

和系统没有太大关系,和用的shell有关系。我是 zsh,你的应该是 bash。
不同的shell环境下,time的输出不一样,因为time是shell内置的。

@zchrissirhcz
Copy link
Author

换言之,我建议参考这篇: https://linuxize.com/post/linux-time-command/ 进行更新

jaywcjlove pushed a commit that referenced this issue Apr 26, 2023
* fix(curl,time):格式化内容,并参考 #359 #352 修改文档

* fix(index.js):修复找不到词条的文字显示错误

* docs:对于未来的贡献者提出了明确的要求和提示

* docs:对于未来的贡献者提出了明确的要求和提示
github-actions bot added a commit that referenced this issue Apr 26, 2023
* fix(curl,time):格式化内容,并参考 #359 #352 修改文档

* fix(index.js):修复找不到词条的文字显示错误

* docs:对于未来的贡献者提出了明确的要求和提示

* docs:对于未来的贡献者提出了明确的要求和提示 8ea28b9
@conglinyizhi
Copy link
Contributor

我已经按照这个 issue 的提议更新了,能否关闭它呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants