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)

你可能感兴趣的:(linux)