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...

Комментарии • 11

  • @SnekNOTSnake
    @SnekNOTSnake 4 года назад +4

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

  • @mr.libluckiestinfinitebene2589
    @mr.libluckiestinfinitebene2589 Год назад +1

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

  • @vero0992
    @vero0992 4 года назад +3

    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!

  • @hootis8
    @hootis8 5 лет назад +3

    thanks, never had a concrete understanding of $path before

  • @jimbo149
    @jimbo149 3 года назад +1

    Thank you much appreciated!

  • @yarweiss
    @yarweiss 4 года назад +1

    Very good intro to PATH.

  • @bersi3306
    @bersi3306 2 года назад

    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.

  • @arpit9163
    @arpit9163 4 года назад

    Great Video !!!

  • @daryazat8049
    @daryazat8049 3 года назад

    thank you!!

  • @thatoneuser8600
    @thatoneuser8600 4 года назад

    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.

    • @aishahale5504
      @aishahale5504 4 года назад

      you can change the global PATH variable in /etc/environment and your local PATH variable in .profile and .bashrc in your home folder.