Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Linux command-- cat

Shulou Source: shulou.com Published: 2022-06-01 05:46:14 11月25日 Update

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.

Tags: File content command password file name text too much line number recommendation test configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Shulou Tech Info MySQL Shulou Technology Apple