Computer SecurityComputer Tips And TricksHacking Tips & Tricks

Quick guide to UNIX EXPORT command

Guys, you must wonder what export command does in UNIX platform?
It’s one of the most basic things one must know about UNIX.

All the UNIX newbies have come to the right place for a detailed export command explanation. 🙂

Let’s start with an example:

You can assign a value before exporting using the following syntax:
  • export inferno=value

 

OR
  • inferno=value
  • export inferno

Here the variable inferno will be declared globally within the current session.

Example:

export JAVA_HOME = C:\Program Files (x86)\Java\jre1.8.0_92

export PATH = JAVA_HOME/bin:$PATH

Here, why I ran PATH command? is to include java binaries in path variable. Basically PATH carries all the paths for the binaries and is ‘:’ separated variable.

If you run a command  “which java”, it will search in $PATH variable & if it exists it will tell you from where the java binaries are picked up & from where the command is running.

in this way export & PATH variables are most wanted variables in UNIX.

get back with any doubts guys. try using this & see the magic, how good you will become in UNIX. 🙂
Keep visiting & keep sharing. 🙂

Shakil Ahmed

I'm a Content writer. My topic is Tech, Story, SEO, Digital Marketing etc. I'm Work With MDOmarMakki.Org Website for CEO of This Website MD Omar Makki

Related Articles

Back to top button
error: Alert: Content is protected !!