Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Viewing Files and Directories

 

The SRC software stores information in files on the system, including configuration files, log files, and system software files. You can use operational commands to view files and directories on the system. Topics include:

Directories on the C Series Controller

The C Series Controller has numerous directories used by the operating system. Table 10 lists directories on a C Series Controller.

Table 10: Directories on a C Series Controller

Directory

Description

  /altroot

Files that are a snapshot of the file system. You can use these files to restore the file system to the state in the snapshot.

  /altvar

Files that are a snapshot of the file system. You can use these files to restore the file system to the state in the snapshot.

  /media

Mount points created automatically for dynamic devices (for example, USB flash drive)

  /opt/UMC

Files for installed components

  /tmp

Temporary files

  /var/home

Home directory for local users

  /var/log

System log files

  /var/UMC

Operational files and log files

Listing Files and Directories

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

The user’s home directory is the default directory for most of the SRC software commands that require a filename.

Note

You can change the default directory by using the set cli directory command.

  • To view a list of the file commands, type the following:

  • Use the list option to see the directory structure. For example, to show the files located in your home directory:

  • To view the contents of other file directories, specify the directory location. For example:

  • You can also use the CLI context-sensitive help system to locate a directory. For example:

  • You can also display the contents of a file. For example:

Specifying Filenames and URLs

In some CLI commands and configuration statements—including file copy, file, archive, load, and save—you can include a filename.

You can specify a filename or URL in one of the following ways:

  • filename—File in the user’s current directory on the local system. You can use wildcards to specify multiple source files or a single destination file. Wildcards are not supported in 7.0.0 Hypertext Transfer Protocol (HTTP) or FTP.

    Note

    Wildcards are supported only by the file compare, file copy, file delete, file list, file rename, file show, and save commands. When you issue the file show command with a wildcard, it must resolve to one filename.

  • path/filename—File on the local system.

  • File URL—File URL of local files.

  • usb:filename—Files on a dynamically mounted USB port.

    Note

    This format supports only a single partition on a USB storage device. If the system device of the USB storage device contains more than one partition, the SRC software sorts the partitions according to file system type and uses the first partition.

  • ftp://hostname/path/filename—File on an FTP server. You can also specify hostname as username@hostname or username:password@hostname.

    For example:

    user@host> file copy ftp://username@ftp.hostname.net//filename