[The Computer Kid] Edit your path in Linux

0 views
Skip to first unread message

Conrad Sykes

unread,
May 6, 2013, 11:39:46 AM5/6/13
to the-comp...@googlegroups.com
In Linux there are two different ways to edit your path. You can either set the path for all users on the system or you can set the path for a single user.

Edit Path For All Users

If you are an administrator of the computer (meaning you have root access) you can edit the etc/profile file. In this file look for a line setting the path such as PATH=....., if you find this line then add your path to the end of this statement, otherwise at the end of the file add

export PATH=$PATH:/pathyouwant/

Save, then exit your current shell and open a new one for the changes to take effect. 

Edit Path For Individual User

If you don't have root access on the machine you are using you can still set your own users path by editing the .bash_profile file in your home directory and then adding 

export PATH=$PATH:/pathyouwant/

to the end of the file.  Save, then exit your current shell and open a new one for the changes to take effect.


--
Posted By Conrad Sykes to The Computer Kid at 5/06/2013 08:39:00 AM
Reply all
Reply to author
Forward
0 new messages