Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Setting the PATH Environment Variable

    Before setting the PATH environment variable, download the virtual machine (VM) environment for developing applications. For details on this download, see Downloading the Packages You Need.

    PATH is the system variable that your operating system uses to locate needed executables from the command line or terminal window. Using this procedure eliminates the need to specify the entire path to executables located in your sandbox.

    To set the PATH variable:

    1. Open a terminal in the VM.
    2. Locate the .bashrc file in the /home/vagrant directory.
      vagrant@jet-vm:~$ pwd
      vagrant@jet-vm:~$ ls -a
    3. Add the path from /root to the /junos-jet-sb/bin directory to the PATH variable in .bashrc.

      For example:

      vagrant@jet-vm:~$ echo 'PATH=$PATH:/usr/local/junos-jet/16.1R1.3/junos-jet-sb/bin'>>~/.bashrc
    4. Issue the env command to ensure the PATH variable contains the directory path you just added.
      vagrant@jet-vm:~$ env
      PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin: /bin:/usr/games:/usr/local/junos-jet/16.1R1.3/junos-jet-sb/bin

    Modified: 2016-06-28