Linux文件系统命令 cat
生活随笔
收集整理的這篇文章主要介紹了
Linux文件系统命令 cat
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
命令名:cat
功能:在當前窗口中查看制定位置的文件的內容。
eg:
renjg@renjg-HP-Compaq-Pro-6380-MT:~/test$ cat /etc/apache2/ports.conf # If you just change the port or add more ports here, you will likely also # have to change the VirtualHost statement in # /etc/apache2/sites-enabled/000-default.confListen 80 Listen xxxx Listen xxxx <IfModule ssl_module>Listen 443 </IfModule><IfModule mod_gnutls.c>Listen 443 </IfModule># vim: syntax=apache ts=4 sw=4 sts=4 sr noet renjg@renjg-HP-Compaq-Pro-6380-MT:~/test$常見用法:將輸出的內容顯示行號
renjg@renjg-HP-Compaq-Pro-6380-MT:~/test$ cat -n /etc/apache2/ports.conf 1 # If you just change the port or add more ports here, you will likely also2 # have to change the VirtualHost statement in3 # /etc/apache2/sites-enabled/000-default.conf4 5 Listen 806 Listen xxxx7 Listen xxxx8 <IfModule ssl_module>9 Listen 44310 </IfModule>11 12 <IfModule mod_gnutls.c>13 Listen 44314 </IfModule>15 16 # vim: syntax=apache ts=4 sw=4 sts=4 sr noet renjg@renjg-HP-Compaq-Pro-6380-MT:~/test$?
轉載于:https://www.cnblogs.com/Spider-spiders/p/7403335.html
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的Linux文件系统命令 cat的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: node版本查看管理工具
- 下一篇: Kafka消息模拟器