Viewing UNIX Files


UNIX files can be viewed using the command

cat

This command will display the entire content of a text file. However, if the file is more than one page in length, then the information may scroll off the screen. To keep this from happening, you can use the command

more

The more command will pause after displaying a page of text, and you can go on to the next page of text by hitting the space bar.

You can also do a keyword search of the text by typing

/keyword   

For example, if you were looking through a file using the more command, and wanted to skip to the word "drosophila" you would type

/drosophila

and the more command would search through the file until it found that word.

For more help with the more command or to see the online UNIX manual and all the extensions to the more command, click here.


UNIX

Commands

Directory

File

Other

Help

Search