Path Variable and How to Change it - Linux
HTML-код
- Опубликовано: 30 сен 2024
- Path Variable and How to Change it - Linux
How to add, remove and save path changes in Linux - the right way.
In this video we go over the files and methods that you need to edit, add or remove directories from you path variable. We also cover how to make changes that will be applied system wide to all users or just one specific user on your Linux machine. We also go over why and how the path variable is exported.
VM's used were Ubuntu 19.04 and Fedora 22
#Linux #SystemPath #EnvironmentVariables
Subscribe: www.youtube.co...
Blog: www.linuxleech.com
Twitter: / linuxleech
Facebook: / linuxleech
Google+: www.gplus.to/li...
3 hours of finding out the problem just to realize I only have to basically logout then login :')
Please, continue this tutorial 👨🏫📓 🙏🏻🙏🏻😢
I'm working on a hack challenge and I'd figured out that I needed to modify my PATH variable but wasn't sure how. This gave me everything I was looking for and more. Thanks, and thanks for showing when the PATH edit didn't take even after sourcing. It's important to show the quirks too. Cheers!
thanks, never had a concrete understanding of $path before
Thank you much appreciated!
Very good intro to PATH.
Fun fact,
before watching this video I've changed the $PATH variable in the "~/.profile" file without appending or prepending the new path, so I've replaced the entire content of $PATH.
I've restart the pc to apply, and then "Login Loop" (insert credentials in GUI, then ask for them again endlessly).
I've fixed it by switching to TTY (with CTRL+ALT+F5) and manually commented my $PATH variable in .profile file.
I've opened the file in nano with command "/bin/nano ~/.profile" since only 'cd' and 'pwd' was working.
Great Video !!!
thank you!!
Yeah but this doesn't explain how to change all Path variables at once. Like how "echo $PATH" outputs every path, I want to be able to access every path and change them at once.
you can change the global PATH variable in /etc/environment and your local PATH variable in .profile and .bashrc in your home folder.