Add or remove a directory in a path.

To add or remove a directory in your path, use a text editor to change the shell variable `PATH’ in the `.bashrc’ file in your home directory. For example, suppose the line that defines the `PATH’ variable in your `.bashrc’ file looks like this:

PATH=”/usr/bin:/bin:/usr/bin/X11:/usr/games”

You can add the directory `/home/mgsotoso/bin’ to this path, by editing this line like so:

PATH=”/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/mgsotoso/bin”

Advertisements

About msotela

This blog is for anyone who wants to access the power of a Linux system as a systems administrator or user. You may be a Linux enthusiast, a Linux professional, or possibly a computer professional who is increasingly finding the Windows systems in your data center supplanted by Linux boxes.

Posted on September 23, 2009, in Unix/Linux. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: