shell 输入密码脚本不显示明文
#!/usr/bin/env bash echo -e "Enter Password:\c" # 在读取密码前禁止回显 stty -echo read password #
...Read more...
数人世相逢,百年欢笑.
#!/usr/bin/env bash echo -e "Enter Password:\c" # 在读取密码前禁止回显 stty -echo read password #
...Read more...
shell 获取域名证书的时间 #!/usr/bin/env bash for domain in `cat domain.txt` do END_TIME=$(echo | openssl s
...Read more...
检查高 CPU / 内存消耗进程 cpu #!/bin/bash ps -eo pid,user,ppid,%mem,%cpu,cmd --sort=-%cpu | head | tail -n
...Read more...
shell 脚本的帮助信息 #!/usr/bin/env bash ### ### my-script — does one thing well ### ### Usage: ### my-s
...Read more...
linux 重写 make 默认多核 which make => /usr/bin/make cp -rf /usr/bin/make /usr/bin/make.bak rm -rf /
...Read more...
bash 技巧 set -x -e -u -o pipefail set -xeuo pipefail -x :在执行每一个命令之前把经过变量展开之后的命令打印出来。 这个对于 debug 脚本
...Read more...