8、用「>」小於號來重定向、儲存資訊、覆蓋原檔案資訊。例如:
a用「>」小於號來重定向:
[root@localhost apache-tomcat]# cd .. > cd .. >cd ..
[root@localhost 桌面]#
b用「>」小於號來重儲存資訊:
cat apache-tomcat/logs/catalina.2017-08-22.log | grep starting > start0822
c用「>」小於號來重複蓋原檔案資訊:
cat start2
資訊: starting service catalina
資訊: starting servlet engine: apache tomcat/7.0.79
資訊: starting protocolhandler ["http-bio-8080"]
資訊: starting protocolhandler ["ajp-bio-8009"]
資訊: starting service catalina
資訊: starting servlet engine: apache tomcat/7.0.79
資訊: starting protocolhandler ["http-bio-8080"]
資訊: starting protocolhandler ["ajp-bio-8009"]
[root@localhost 桌面]# cat start1 > start2
[root@localhost 桌面]# cat start2
資訊: starting service catalina
資訊: starting servlet engine: apache tomcat/7.0.79
資訊: starting protocolhandler ["http-bio-8080"]
資訊: starting protocolhandler ["ajp-bio-8009"]
注意:要追加資訊要用">>"而不是">"。例如:
cat start1 >> start2
[root@localhost 桌面]# cat start2
資訊: starting service catalina
資訊: starting servlet engine: apache tomcat/7.0.79
資訊: starting protocolhandler ["http-bio-8080"]
資訊: starting protocolhandler ["ajp-bio-8009"]
資訊: starting service catalina
資訊: starting servlet engine: apache tomcat/7.0.79
資訊: starting protocolhandler ["http-bio-8080"]
資訊: starting protocolhandler ["ajp-bio-8009"]
vue setInterval的巢狀例項
setinterval 方法可按照指定的週期 以毫秒計 來呼叫函式或計算表示式。音訊 audio timeupdate updatetime controls controls hidden 您的瀏覽器不支援 audio 標籤。audio date 2019年11月4日15 26 11 author...
Python基礎 之for迴圈巢狀例項
python基礎 之for迴圈巢狀實 一 在控制台中輸出以下字元樣式 例 for r in range 3 0 1 2 for c in range 5 01234 01234 01234 print end 在一行輸出 print 換行二 在控制台中輸出以下字元樣式 for r in range ...
Linux基礎 命令(五)
計畫任務 在指定時間去執行的指令碼,就是計畫任務 crontab l 列出當前所有已經設定好的計畫任務 e 編輯計畫任務表 r 清空所有任務計畫表 m 分鐘 h 小時 dom 天 mon 月 dow 周 command 執行的命令或者指令碼 0,30 9 18 1 5 home tianya scr...