Last active
November 6, 2021 11:31
-
-
Save nevill/7fe9cc7ec1adb3a5df4cce039e86d0c6 to your computer and use it in GitHub Desktop.
Useful shell commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 在执行程序10秒后终止 | |
ping 192.168.1.1 & read -t 10 || kill $! | |
ping 192.168.1.1 & sleep 10s; kill $! | |
# 计算 pi 2000 位 | |
perl -Mbignum=bpi -wle "print bpi(2000)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment