📌  相关文章
📜  输出到日志文件 bash - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:31.530000             🧑  作者: Mango

代码示例1
#!/bin/bash
echo "This logs to where I want, but using echo" > /var/log/mycustomlog

OR

#!/bin/bash
echo "I will just append to my custom log file" >> /var/log/customlog