Adding a directory to $PATH in CentOS?

It’s not a good idea to edit /etc/profile for things like this, because you’ll lose all your changes whenever CentOS publishes an update for this file. This is exactly what /etc/profile.d is for: echo ‘pathmunge /usr/lib/ruby-enterprise/bin’ > /etc/profile.d/ree.sh chmod +x /etc/profile.d/ree.sh Log back in and enjoy your (safely) updated $PATH: echo $PATH /usr/lib/ruby-enterprise/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin which ruby … Read more

How to change pip installation path

You can tell pip where to install the package. Use the -t flag , that means the target directory where you want to install the package. Have have look at pip install –help You can change this on permanent basis by changing the pip.ini configuration file. See this for detail: pip install path On Unix and Mac OS X the configuration … Read more

Display current path in terminal only

If you just want to get the information of current directory, you can type: and you don’t need to use the Nautilus, or you can use a teamviewer software to remote connect to the computer, you can get everything you want.