Viewing files
Submitted by Des on Sun, 10/06/2013 - 13:48
To view a file you can use cat, more, and less commands
cat will output to standard output which will be your screen, if its a big file cat will only show the end of the file.
cat textfile1
To see a file one page at a time use more or less commands
more textfile1
less textfile1
To edit a file you can use vi
vi textfile1
To view only the top 10 lines of a file
head -10 textfile1
To view the last 10 lines of a file
tail -10 textfile
To view x number of top and last lines
head -x textfile
tail -x textfile