They hold everything from
documentation to configuration files. Fortunately, it's easy to work with
them.
Viewing Text Files
A text file is simply a normal file that happens to contain human-readable
text. There's nothing special about it otherwise. The other kind of file,
a binary file, is meant to be interpreted by the computer.
You can view either kind of file with the less file pager if you have it
installed (install it if you haven't, it's quite useful). Type less
/etc/profile to view a sample text file. Notice that you can read the
characters even if their meaning is obscure. Type less /bin/ls to view a
binary file. As you can see, the ls program is not meant to be read by
humans.
Sometimes, you'll find files that end with .gz. These files may be viewed
with zless; you can run it like so:
zless /usr/doc/ae/changelog.Debian.gz
Tip: zless is great for viewing documentation, which is often shipped in
.gz form.
The difference between the two kinds of files is purely a matter of what
they contain, unlike in some other systems (such as DOS and MacOS), which
actually treat the files differently.
Pages:
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153