shell

来源:互联网 发布:Ubuntu更新语言包命令 编辑:程序博客网 时间:2024/05/24 04:43

查看占用指定端口进程ID

netstat -tlnp | grep <port>

生成32位随机数

cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n1

删除目录下可以执行文件

find . -maxdepth 1 -type f -perm /111 -exec rm {} \;


shell记录-传递参数getopts

http://ancin.iteye.com/blog/1518579

原创粉丝点击