How-to Set PATH and Environment Variables on OpenBSD 5.x Unix

November 16th, 2014 by Zen BSD

Path Setup for OpenBSD 5



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

The OpenBSD Project produces a FREE, multi-platform 4.4BSD-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 - LilasToy OpenBSD



    • To Set up the User/System Path:

      vi $HOME/.profile

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

      PATH=$PATH:/my/new/target
      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
Share on Tumblr

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


Comments are disabled