For instance, if there is an executable present in directory – /usr/local/sbin then we can execute the file directly i.e. Now, before venturing ahead, the PATH Environment variable stores the location of our executables. The output may resemble – /usr/local/sbin:/usr/local/bin:/usr/sbin Hence, to print the values stored in PATH environment variable – echo $PATH Since, we are discussing PATH environment variable. Therefore, issue the following in terminal – env In this article, we would discuss how to set PATH Environment variable in Ubuntu distribution.įirst, we can display values stored in Environment variables through either env or printenv command-line utilities. Besides, we can also make necessary modifications to these Environment variables as and when required. Other system utilities can make use of the available information stored in Environment variables. When a user logs in, there are few variables which are assigned by default. ![]() There is a multitude of information available through Environment variables.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |