For large files, the more command is used to display the file one screen at a time. Two other commands to be aware of are head and tail . These commands are useful to look at the contents of a file without viewing the entire file. The head command displays the first few lines of a file, and the tail command displays the last few lines of a file. The grep command searches through a file for lines containing a specified pattern or regular expression.
Several options are available.
There are more options to the grep command. To find out about the other options check the system documentation or online manual pages by typing man grep at the system prompt. The pwd command displays the path to the working directory, telling you where you are located in the file system. The ls command is used to list the contents of a directory. It lists the files and directories in the working or specified directory.