Sorry, your browser cannot access this site
This page requires browser support (enable) JavaScript
Learn more >

安装和启动这个写很好:Install Docker Engine on Ubuntu 在上述教程install之后docker run hello-word之前可能需要启动docker后台服务:sudo service docker starthow would you know that the service name was docker: You can see them using...

echo $?即输出上一条执行命令的退出码另外if command; then fi也是对command的退出码进行判断,如果为0则条件成立

timeout 3 sleep 30 当 sleep 执行 3 秒的时候就会终止 包裹程序未超时,timeout传递退出代码(--preserve-status)(亲测似乎不加此选项也会保护退出代码) timeout --preserve-status 1m ping -c 5 Nostromo.local echo $? # 如果timeout包裹的程序超时,则返回值为124,否则为未超...

无下标控制,类似range-for array=(hello word) for element in $array do echo $element done 下标:`$

i=1 # in loop body i=`expr $i + 1`

一维 line=`cat syntest.sh | wc -l` echo $line 多维:返回数组 fnames=`ls testcase/functional | grep .sy` for fname in ${fnames[@]} do echo $fname done

if diff test.sh syntest.sh > tmpout; then # diff比较如果相同则返回0,则会if条件成立走上面的分支 echo "same." else echo "different." fi rm -rf tmpout

打开文件的进程定位到打开的进程 lsof <file> $ lsof /opt/mysql/data/5690/mysql-error.log COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME mysqld 12858 actiontech-universe 1w ...

https://blog.csdn.net/qq_29007291/article/details/84953671

旧服务器备份:把~/.halo压缩 tar -zvcf ~/.halo.tar.gz ~/.halo # 得到~/.halo.tar.gz 移到新服务器中在旧服务器上运行 scp ~/.halo.tar.gz <新服务器用户名>@<新服务器ip地址>:~/.halo.tar.gz #scp即secure copy,是用来进行远程文件拷贝的。数据传输...