Listing the contents of a directory
The following steps list the contents of a directory
- Open an xterm
- Move to the diectory which you want to list the contents for
- Type the following at the xterm prompt
ls
and a list of the files and directories in the current directory will be displayed.
- If not all of the file names appear on the screen (they scroll off the top) type the following at the xterm prompt:
ls | more
and scroll through the list of file names using the spacebar
- To get a detailed listing of a directory type the following at the xterm prompt:
ls -l | more
and scroll through the list of files using the spacebar