Path Variable and How to Change it - Linux

preview_player
Показать описание
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

Рекомендации по теме
Комментарии
Автор

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!

vero
Автор

Please, continue this tutorial 👨‍🏫📓 🙏🏻🙏🏻😢

mr.libluckiestinfinitebene
Автор

thanks, never had a concrete understanding of $path before

hootis
Автор

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.

bersi
Автор

3 hours of finding out the problem just to realize I only have to basically logout then login :')

SnekNOTSnake
Автор

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.

thatoneuser