[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

Listing Files and Directories

You can view the router’s directory structure as well as individual files by issuing the file command in operational mode.

  1. To get help about the file command, type the following:

    Help shows that the file command includes several options for manipulating files.

  2. Use the list option to see the directory structure of the router. For example, to show the files located in your home directory on the router:

    The default directory for the file list command is the home directory of the user logged in to the router. In fact, the user’s home directory is the default directory for most of the JUNOS software commands requiring a filename.

  3. To view the contents of other file directories, specify the directory location. For example:
  4. You can also use the router’s context-sensitive help system to locate a directory. For example:
  5. You can also display the contents of a file. For example:

[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]