Linux: working with text files

Viewing Text Files

You can easily view files by using command-line tools ,including cat,less,head,and tail.

The simplest command for dealing with text files is cat.

e.g.:

cat mytextfile

tail mytextfile ( view the file from the last ,usually used in log files)

posted @ 2010-10-16 17:14  庚武  Views(136)  Comments(0Edit  收藏  举报