Like that of .txt or .html
migrated from stackoverflow.com Feb 23 '10 at 8:48
|
easiest are
you can also use text editors like |
|||
|
|
|
you can use
using sed
using grep
using head/tail to display some parts of the file
Tools aside, you can also use just the shell to display your file
|
|||
|
|
For viewing HTML files you can also use |
|||
|
|
|
Also know that if it's a binary file it's may contain control char that will do some displeasing things with your terminal (like changing charset). If that happen use You can also use |
|||
|
|
|
file : Display the type of file cat : Display the content of the file and outputs it on stdout. You can use vi, emacs command to edit the file in Unix environment. If you do not have expertise in using vi/emacs you might find it little difficult to edit the file. If you have X11 enabled, You can use a number of Linux editors like gvim, kate, kwrite, kdevelop etc. Kwrite is my personal favorite in Linux. |
|||
|
|
