linux覆盖和追加
生活随笔
收集整理的這篇文章主要介紹了
linux覆盖和追加
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
nohup 的使用是十分方便的,只需在要處理的命令前加上 nohup 即可,標準輸出和標準錯誤缺省會被重定向到 nohup.out 文件中。一般我們可在結尾加上"&"來將命令同時放入后臺運行,也可用">filename?2>&1"來更改缺省的重定向文件名。
nohup 示例
| [root@pvcent107 ~]# nohup ping www.ibm.com & [1] 3059 nohup: appending output to `nohup.out' [root@pvcent107 ~]# ps -ef |grep 3059 root 3059 984 0 21:06 pts/3 00:00:00 ping www.ibm.com root 3067 984 0 21:06 pts/3 00:00:00 grep 3059 [root@pvcent107 ~]# |
在進行文件重定向的時候,>表示覆蓋,>>表示追加。
cat a >> b 追加
總結
以上是生活随笔為你收集整理的linux覆盖和追加的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: GoldenGate学习笔记(11)_常
- 下一篇: linux 其他常用命令