Skip to main content

2.8) Viewing A File


We can now return to learning the fundamentals of Unix now that you have made a couple of files. To check that you have indeed made the file with the data in it and saved it successfully, you can use the Unix command more to view it:

more data1 (always hit return after the command to make it happen)

more data1 

If your data file is longer than can be shown on a single page then more will show you the first page full. To see the next page you hit the spacebar button. If you want to get out of more before seeing the whole document then type ‘q’.

You should see a listing of the ten lines of data in the file data1.