View Linux File Contents with cat.
There are so many ways to view Linux file contents. One of the simplest is way to view the file contents is using the cat command:
Example:
root@fedora ~]# cat filename.txt
Create file
Using cat command
Fedora Core
Operating
Systems
[root@fedora ~]#
Note: From the example above, the cat command is use with no greater-than (>) sign. The file name that you want to view is issue after the cat command. The text in the file is displayed immediately after you hit the enter key, all the contents of the file display after you hit enter key, the first line after the cat command. The "end of file" content is mark on the appearance of shell prompt.
Bookmark/Search this post with
Recent comments
15 hours 35 min ago
1 day 17 hours ago
2 days 21 hours ago
3 days 35 min ago
3 days 13 hours ago
4 days 18 hours ago
2 weeks 2 days ago
2 weeks 3 days ago
2 weeks 3 days ago
2 weeks 3 days ago