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版本查看管理工具
- 下一篇: linux内核多种进程间通信机制