JN0-102 · Question #172
Using the command, user@router# load override latest.conf, where in the file system will the latest.conf be located?
The correct answer is A. /var/home/user/. When loading a configuration file without specifying an absolute path in Junos OS, the system by default looks for the file in the current user's home directory.
Question
Using the command, user@router# load override latest.conf, where in the file system will the latest.conf be located?
Options
- A/var/home/user/
- B/var/config/saved/
- C/var/tmp/
- D/config/
How the community answered
(45 responses)- A91% (41)
- B2% (1)
- C2% (1)
- D4% (2)
Why each option
When loading a configuration file without specifying an absolute path in Junos OS, the system by default looks for the file in the current user's home directory.
When the `load override <filename>` command is issued without an absolute path, Junos OS, like many Unix-like systems, expects the file to be located in the current user's home directory. For a user named 'user', this directory is `/var/home/user/`.
`/var/config/saved/` is not the default location for the `load` command to look for user-specified configuration files.
`/var/tmp/` is a temporary directory and not the default search path for loading configuration files.
`/config/` typically holds the running configuration files but is not the default location for `load` to find user-provided config files.
Concept tested: Default file load location in Junos OS
Source: https://www.juniper.net/documentation/us/en/software/junos/junos-cli/topics/reference/command/load-configuration-data-from-file.html
Topics
Community Discussion
No community discussion yet for this question.