How-to Set PATH and Environment Variables on OpenBSD Unix

November 16th, 2014 by Zen BSD

Path Setup for OpenBSD

The Unix BSD Tutorial Shows You Simply How-to Update/Set the Path and the Environmnent Variables on OpenBSD Unix Server/Desktop.

The OpenBSD Project produces a FREE, multi-platform BSD-based UNIX-like operating system.
Our efforts emphasize Portability, Standardization, Correctness, proactive Security and integrated Cryptography.

As an example of the effect that the OpenBSD Way has, the popular OpenSSH software comes from OpenBSD.

Setting Path on OpenBSD - Featured

    • To Set up the User/System Path:

      vi $HOME/.profile

      (Hit ‘i’ to start Editing on Vi Editor)

      export PATH

      (Hit ‘Esc’ to end Editing and ‘:wq’ to Save &exit; :)
      Load New Path:

      . $HOME/.profile

      Check the New PATH with:

      echo $PATH
    • How Install & Run Xfce Desktop for OpenBSD 5.x:

      OpenBSD Xfce Desktop Installation
    • So to Set an Env Variable do:

      vi $HOME/.profile

      Appending for Example:

      export JAVA_HOME=/usr/local/jdk-1.7.0/
      . $HOME/.profile

      And then Test the New Env Var:

      echo $JAVA_HOME

Tags: , , , , , , , , , , , , ,