Pages

Search

(Solution) Add a new directory to home path in Linux

To add a new directory to your home path you just have to append the new directory to the PATH:

$vim .bashrc

In the last line of the file just add this:

export PATH=$PATH:/homr/username/newDirectory/

Finally, restart your terminal.