码迷,mamicode.com
首页 > 系统相关 > 详细

linux命令——cat

时间:2017-08-13 23:25:37      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:linux命令   cat   

    cat命令主要是用于查看文件内容,一般是文本文件内容的文件,在渗透测试中,主要是用于查看相关配置文件、密码文件等,用法主要是:

cat 文件名


root@kali:~/linuxcmd# cat test2.txt
test1
test2
test3
root@kali:~/linuxcmd#


    为了调试方便,可以使用-n选项进行显示行号!

root@kali:~/linuxcmd# cat -n test2.txt
     1  test1
     2  test2
     3  test3
root@kali:~/linuxcmd#


    如果内容过多的话推荐使用其他命令,如more!


本文出自 “eth10” 博客,请务必保留此出处http://eth10.blog.51cto.com/13143704/1955917

linux命令——cat

标签:linux命令   cat   

原文地址:http://eth10.blog.51cto.com/13143704/1955917

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!