Linux command-- cat
The cat command is mainly used to view the contents of a file, usually a text file. In the * test, it is mainly used to view relevant configuration files, password files, and so on.
Cat file name
Root@kali:~/linuxcmd# cat test2.txttest1test2test3root@kali:~/linuxcmd#
For ease of debugging, you can use the-n option to display the line number!
Root@kali:~/linuxcmd# cat-n test2.txt 1 test1 2 test2 3 test3root@kali:~/linuxcmd#
Other commands, such as more, are recommended if there is too much content.