https://blog.csdn.net/jinking01/article/details/85316837
#!/bin/bash
set -xv
exec 1>mylog 2>&1
free
df -h
pwd
把这个指令放到文件的最上端,文件的输入全都会输入到指定的文件中
exec 1>deploylog.log 2>&1
https://blog.csdn.net/jinking01/article/details/85316837
#!/bin/bash
set -xv
exec 1>mylog 2>&1
free
df -h
pwd
把这个指令放到文件的最上端,文件的输入全都会输入到指定的文件中
exec 1>deploylog.log 2>&1
2万+
6483
1万+
2397
1424
7021

被折叠的 条评论
为什么被折叠?