I executed this command from terminal:
export PATH=/home/ravinder/Java_Folder/Important_Programs/Servers/apache-maven-3.2.2/bin
So this is the only directory in my $PATH, I want to restore my path to default.
I executed this command from terminal:
export PATH=/home/ravinder/Java_Folder/Important_Programs/Servers/apache-maven-3.2.2/bin
So this is the only directory in my $PATH, I want to restore my path to default.
The default PATH is /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games.
If you want to add something to the path, do: export PATH=something:$PATH so the original PATH is retained.
I opened the ~/.bashrc file in gedit and pasted the following code at the the end of file
export PATH=/home/ravinder/Java_Folder/Important_Programs/Servers/apache-maven-3.2.2/bin:${PATH}
And it worked.
putting it before any other environment variables settings, it didn't work.
/etc/environment. Just doexport PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/gamesand you're good to go. Alternatively, reboot. – Jos Aug 04 '14 at 12:05~/.profileor~/.bashrcor/etc/environmentor/etc/bash.bashrc? What happens if you explicitly put the export command I gave above at the bottom of~/.profileand reboot? – Jos Aug 04 '14 at 12:48