Saturday, December 3, 2016

PATH environment variable

PATH environment variable




Linux does not check the current directory. This can be very confusing to new Linux administrators and users. They expect to be able to switch to the directory where an executable resides and run it from the command line.Under Linux, this doesn’t work. Instead, Linux only searches for the file being run within the directories in the current user’s PATH variable.




A typical Linux PATH environment variable is shown in this example:



rtracy@openSUSE:~> echo $PATH



/usr/lib/mpi/gcc/openmpi/bin:/home/rtracy/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games




LX0-104 Exam Objectives (D)

No comments:

Post a Comment