摘要: Bash is built to handle multiple programs running in parallel. time cat Type time cat and then hit ctrl-c before one second, as close as possible with 阅读全文
posted @ 2024-06-26 17:54 Zhentiw 阅读(7) 评论(0) 推荐(0) 编辑
摘要: Subshell () You can wrap a cmd into () then it works a spreated command line. $ (if test -f cool.txt; then echo true; else echo false; fi); echo $? fa 阅读全文
posted @ 2024-06-26 17:38 Zhentiw 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Exit code and Operators (&&, ||, 😉 When the previous command run successful, it returns 0, otherwise 1 $ date Wed Jun 26 12:17:17 EEST 2024 $ echo $? 阅读全文
posted @ 2024-06-26 17:31 Zhentiw 阅读(3) 评论(0) 推荐(0) 编辑