How to remove directory from $PATH

by
Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0StumbleUpon0

Question :How to remove directory from $PATH

Answer : We suppose that you added a directory /usr/zinovsky by mistike to your $PATCH

export PATH=$PATH:/usr/zinovsky

To remove this directry from the patch :

export PATH=`echo $PATH | sed -e ‘s/:/usr/zinovsky$//’`

You can always change /usr/zinovsky$//’` to match your directory.

 

Is all , please report any problem. Thank you

For questions please refer to our Q/A forum at : http://ask.unixmen.com/


Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0StumbleUpon0