What is $PATH on a Linux Shell? (The Linux Crash Course Series)

preview_player
Показать описание
Do you want to Learn Linux? The Linux Crash Course series contains video lessons on all kinds of Linux commands and concepts. In this episode, we'll take a look at the concept of $PATH in Linux. You'll learn what it is, why it's helpful, and also how to customize it.

*LEARN LINUX TV - YOUR HOME FOR LINUX-RELATED FUN AND LEARNING!*

*🎓 BRAND NEW UDEMY COURSES AVAILABLE!*
Check out my new courses on Udemy and learn something new!

*🐧 SUPPORT LINUX LEARNING!*
_Note: Royalties and/or commission is earned from each of the above links_

*⏰ TIME CODES*
00:00 - Intro
00:55 - Spin up your very own Linux server on Linode (sponsor)
02:53 - Looking at an alternate universe, where PATH was never invented
05:47 - What $PATH actually is, and why it's so useful to have
06:40 - Using a Bash script to further explain PATH
10:29 - Running a script or binary from outside of PATH
11:37 - Finding the path to a command or script
12:21 - Why is your home directory not within PATH by default?
13:23 - Adding a new directory to your PATH
17:48 - How to make changes to PATH survive closing your shell session*🎓 FULL LINUX COURSES FROM LEARN LINUX TV*

*🌐 LEARN LINUX TV ON THE WEB*

*⚠️ DISCLAIMER*
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. Always make sure you have written permission before working with any infrastructure and that you are compliant with all company rules, change control procedures, and local laws.

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

the actual list of directories of that variable is in /etc/environment if anyone is wondering. There you can set new shared path for all users not just you

Ranblv
Автор

NICE work! I like your style of being on point without chasing 10 possible ways. Calm and articulate enhances the ease to follow. Thank you.

handmore
Автор

Great content as usual, and i really appreciate the redesign of the set. it’s perfect now! the silver wall stuff with the triangles was a little hard to look at, but the wood paneling and tech create a really pleasing harmony

kajah
Автор

/usr stand for "Universal System Resource", not User.
There is a discussion of this is a deprecation of the /user and then later become /home.
But be aware this is a tricky professor/teach test question.

FinderX
Автор

Standalone videos really help get to our Linux goals, can't thank you enough for this Jay, I owe you a dinner.

srsr
Автор

Thank you very much that video was excellent! You really have a talent for making all things Linux easy to understand and you put a great deal of effort into creating your content.

snamone
Автор

Wow! It's amazing how much I've learned from short little video. Big thanks!

MatmarSpace
Автор

THANK YOU! i knew some of this threw my wanderings but i never understood it! its like magic, if you know the commands you can manipulate them with out understanding. but it nicer to understand and you can manipulate the event further and create things permanently.

charlesklein
Автор

Awesome video Jay thank you for taking the time to make them. I can not even begin to tell you how much I have learned from you! Thanks again!

raymondfb
Автор

I have outgrown this tutorial-series but it is great for newcomers to Linux to have this handed on a silver plate. I will definitely refer new Linux-users to this series.

peterjansen
Автор

Awesome, I wouldn't thought that this "." can be that "/", it reminids me of simplicity of things.
Thanks a lot, your way of thinking is amazing.

simondj
Автор

Do not change your PATH in .bashrc. Instead, change it in .profile or .bash_profile (depending on your distribution). That way, it is defined as soon as you log in. You then can also run your commands e.g. from a run prompt (Alt+F2) or from a shortcut key without having to define the full path.

vanadium
Автор

Hi Jay, thanks for the great video. I really appreciate your videos.
Do you plan on making a video about terminal colors? Currently I'm trying to wrap my head around all this $TERM, xterm-256color, true color, terminfo database, tic, escape sequence stuff and it's very confusing. Especially when you want all of this to work with ssh and tmux. I think that a lot of people would be interested in such a video.

alxt
Автор

Thanks Jay!
Could you please come up with another video explaining how to add global variable PATH using /etc/environment and /etc/profile files detailing dis/advantages of each?

sukh_bajwa
Автор

Great video very educational and easy to understand. My question is where's the best place to install programs?

flipinfin
Автор

This type of content is very useful. Short and to the point. Thanks!

portfedh
Автор

Great content and great video. However, you forgot the ";" in your new if statement.

RoughGanome
Автор

One challenge for many users is to remove some link from the PATH after adding it. Please make a video on that topic as well. thanks.

kawan
Автор

This is interesting video. Full of information.

PS_Tube
Автор

Greate content. Thanks for help and lots of appreciation.

yelp