Specify Filenames and URLs
In some CLI commands and configuration statements—including
file (compare | copy | delete | list | rename | show),load,save,set system login useruser-nameauthenticationload-key-file, andrequest system software add—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 flash drive. You can use wildcards to specify multiple source files or a single destination file. Wildcards are not supported in HTTP or FTP. For more information about how to use wildcards, see Use Wildcards.
Wildcards are supported only by the
file (compare | copy | delete | list | rename | show)commands.When you issue the
file showcommand with a wildcard, it must resolve to one filename.path/filename—File on the local flash drive./var/filenameor/var/path/filename—File on the local hard disk.a:filenameora:path/filename—File on the local drive. The default path is/(the root-level directory). The removable media can be in MS-DOS or UNIX (UFS) format.hostname:/path/filename, hostname:filename, hostname:path/filename,orscp://hostname/path/filename—File on anscp/sshclient. This form is not available in the worldwide version of the JUNOS software. The default path is the user's home directory on the remote system. You can also specifyhostnameasusername@hostname.ftp://hostname/path/filename—File on an FTP server. You can also specifyhostnameasusername@hostnameorusername:password@hostname. The default path is the user's home directory. To specify an absolute path, the path must start with%2F; for example,ftp://hostname/%2Fpath/filename. To have the system prompt you for the password, specifypromptin place of the password. If a password is required, and you do not specify the password orprompt, an error message is displayed:user@host >file copy ftp://username@ftp.hostname.net//filenamefile copy ftp.hostname.net: Not logged in.user@host >file copy ftp://username:prompt@ftp.hostname.net//filenamePassword forusername@ftp.hostname.net: