网站面试题

1)检测网站是否运行正常

  curl -o /dev/null  -s  -w "%{http_code}" www.baidu.com

 

2)产生随机字符串

  cat /dev/urandom |sed 's/[^a-zA-Z0-9]//g'|strings -n 6|head -n 1

 

posted on 2018-04-11 16:22  标配的小号  阅读(159)  评论(0编辑  收藏  举报

导航