Understand Bash Environment Variables With This Deep Dive

  Рет қаралды 10,989

theurbanpenguin

theurbanpenguin

Күн бұрын

Пікірлер: 53
@matman1975
@matman1975 4 жыл бұрын
Only you can make learning so much fun, the only reason I started on Linux was watching your videos. Thanks Andrew for taking the time to help so many people who want to learn.
@theurbanpenguin
@theurbanpenguin 4 жыл бұрын
Thanks Matthew
@Perciwell
@Perciwell 4 жыл бұрын
You strike exactly the point of my current interest. I am currently reading and searching for information about the different variables in Linux, their scope and about the differences between environment variables and shell variables and the differences between commands like set and env. Many authors write or say that there are two types of variables: shell variables and environment variables. One author writes that there are three types of variables in Linux: environment variables, shell variables and local variables. I try to understand all those facts thoroughly. Thanks for your video! It's very good.
@theurbanpenguin
@theurbanpenguin 4 жыл бұрын
Thank you
@Perciwell
@Perciwell 4 жыл бұрын
@@theurbanpenguin It's not a comment on your teaching. But I wonder why I have currently difficulties to understand all differences or kinds of variables, although I knew some programming languages and their concepts. IMO those difficulties to understand have to do with the fact that most authors mention that there are different variable types and than dive into the handling of commands like set, env, printenv, export or output of variables with echo etc. But to really get it I personally need first a clear overview. I need to know the available boxes very clear, before the book or teacher dives in one of those boxes and rummages in edges of one box. This is not about your teaching style, in the current moment I only try to understand why the heck it takes so long for me to understand such simple things. I guess, it's because before I really get the whole picture from a bird's-eye view the teacher or book is -- or I am -- in details about particular commands and situations, so that I never memorize a clear view of the whole and every time get lost in details.
@harunwagura4727
@harunwagura4727 3 жыл бұрын
Best instructor I've come across!!!
@saheedadebayo8063
@saheedadebayo8063 4 жыл бұрын
What an excellent teacher you are Andrew!
@theurbanpenguin
@theurbanpenguin 4 жыл бұрын
That is so kind, thank you
@woesdiary263
@woesdiary263 2 жыл бұрын
Thank you Mr. Mallett!
@TyroneHillsmbw
@TyroneHillsmbw 3 жыл бұрын
Sir, You are a Master of your trade!!! Thank God for teachers like you. Shalom from Israel💯🦁🗣
@Somabilbooks
@Somabilbooks 2 жыл бұрын
you are the Best how to explain is easy and Highly Recommended
@theurbanpenguin
@theurbanpenguin 2 жыл бұрын
Thank you 🙏
@anssimakela
@anssimakela 4 жыл бұрын
Nice vid! could you do a presentation "how to make dynamic names for variables" and how to call those in script...
@srb1855
@srb1855 2 жыл бұрын
This was excellent 👍. Is any of this material actually documented in the MAN pages or any other official Linux documentation - where does a new user go to learn these details in the absence of nice videos like this one?
@theurbanpenguin
@theurbanpenguin 2 жыл бұрын
The bash man page does help but it is a long read linux.die.net/man/1/bash
@omparikh4426
@omparikh4426 3 жыл бұрын
how about more deep overview of env and path variables?pam_environment, xserver, etc
@santoshkulkarni6871
@santoshkulkarni6871 4 жыл бұрын
Wonderful @urbanpenguin
@theurbanpenguin
@theurbanpenguin 4 жыл бұрын
Thank you
@enoughmuskspam2490
@enoughmuskspam2490 4 жыл бұрын
Dude you're a legend !
@theurbanpenguin
@theurbanpenguin 4 жыл бұрын
Thanks
@marwanalturky
@marwanalturky 4 жыл бұрын
that was an excellent video, thank you very much for your time to make this video.
@ahsanhabibsonar7059
@ahsanhabibsonar7059 4 жыл бұрын
Great video. Thank you very much.
@wesg01
@wesg01 3 жыл бұрын
Awesome stuff as usual. Thank you!
@graybri
@graybri 2 жыл бұрын
Fantastic content
@theurbanpenguin
@theurbanpenguin 2 жыл бұрын
Thanks
@lazellekeith8025
@lazellekeith8025 4 жыл бұрын
I see you changed the Logo for the Urban Penguin. Did somebody complain? If so, I kinda figured it would be only a matter of time. That's unfortunate. I liked it..! I didn't find it offensive at all as a person of color. Cheers! btw. great videos!
@turtlewax3849
@turtlewax3849 4 жыл бұрын
Thank you sir, hope there will be more soon!
@theurbanpenguin
@theurbanpenguin 4 жыл бұрын
You bet!
@MrYerak5
@MrYerak5 4 жыл бұрын
The compiler should show a warning since you need to return int but you return void
@theurbanpenguin
@theurbanpenguin 4 жыл бұрын
But it didn't
@theurbanpenguin
@theurbanpenguin 4 жыл бұрын
add -Wall to see all warnings
@guilherme5094
@guilherme5094 4 жыл бұрын
Thanks!
@theurbanpenguin
@theurbanpenguin 4 жыл бұрын
Welcome!
@SlideRSB
@SlideRSB 4 жыл бұрын
You set your drink environment variable incorrectly. It should be drink=coffee
@theurbanpenguin
@theurbanpenguin 4 жыл бұрын
Of course, I let myself down
@SlideRSB
@SlideRSB 4 жыл бұрын
@@theurbanpenguin great video, by the way. I learned a lot.
@ajaykumark107
@ajaykumark107 4 жыл бұрын
Esc+. a good trick learnt
@theurbanpenguin
@theurbanpenguin 4 жыл бұрын
Thank you
@SpojlerSSJ
@SpojlerSSJ 4 жыл бұрын
Hello, you done a great job I've learn a lot from you. I got a question about static IP address on ubuntu, I try to install newest Ubuntu Server after few years and i stuck with new manager, I try look for answers on your video about configuring static IP on ubuntu 12.10 it's little outdated :( Can we expected updated version on newest distro? :)
@theurbanpenguin
@theurbanpenguin 4 жыл бұрын
Thanks 20.04 and 18.04 use netplan for their ip configuration
@itaco8066
@itaco8066 4 жыл бұрын
Awesome
@theurbanpenguin
@theurbanpenguin 4 жыл бұрын
Thank you
@GauravMehtaShwetaMehta
@GauravMehtaShwetaMehta 4 жыл бұрын
Very nice. Thanks
@theurbanpenguin
@theurbanpenguin 4 жыл бұрын
So nice of you
@FrankTheile
@FrankTheile 4 жыл бұрын
Now `CROSS_COMPILE=arm-linux- make` makes sense... 😲
@theurbanpenguin
@theurbanpenguin 4 жыл бұрын
For sure, TBH I have never tried the cross compile. I have heard of it but never done it. Now is the time to try and run on my RPi. Thank you
@MichaelSalo
@MichaelSalo 2 жыл бұрын
It seems like variables are available to subshells in this form. (echo $drink)
@theurbanpenguin
@theurbanpenguin 2 жыл бұрын
Only environment variables. Those that have been exported
@MichaelSalo
@MichaelSalo 2 жыл бұрын
@@theurbanpenguin This seems to be a case of a subshell accessing a regular variable: drink=tea echo $drink # same shell, gives 'tea' (echo $drink) # subshell, gives 'tea'
@theurbanpenguin
@theurbanpenguin 2 жыл бұрын
drink=tea echo $drink bash echo $drink Drink is not available unless it is exported or set in the bashrc file.
@MichaelSalo
@MichaelSalo 2 жыл бұрын
@@theurbanpenguin I guess there are different kinds of subshell. Some would say parentheses are a form of subshell.
@theurbanpenguin
@theurbanpenguin 2 жыл бұрын
@@MichaelSalo parentheses evaluate the output of a command a feed it into a temporary or unnamed variable. The command is executed in the current shell hence your local variable works
BASH Environment | Aliases, Functions and Scripts
49:26
Joe Collins (EzeeLinux)
Рет қаралды 91 М.
BASH History Masterclass
24:02
theurbanpenguin
Рет қаралды 4,8 М.
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 60 МЛН
Человек паук уже не тот
00:32
Miracle
Рет қаралды 3,9 МЛН
The Singing Challenge #joker #Harriet Quinn
00:35
佐助与鸣人
Рет қаралды 32 МЛН
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 109 МЛН
How To Use Shell Environment Variables
15:08
DistroTube
Рет қаралды 33 М.
Editing Files with Sed in Linux
28:54
theurbanpenguin
Рет қаралды 4,9 М.
Bash variable expansion
17:03
nixcasts
Рет қаралды 12 М.
Bash Scripting Masterclass
49:40
theurbanpenguin
Рет қаралды 1,3 М.
Using BASH Variables and Arguments
12:51
Shawn Powers
Рет қаралды 3,7 М.
Bash vs ZSH vs Fish: What's the Difference?
13:32
Eric Murphy
Рет қаралды 190 М.
The Value of Source Code
17:46
Philomatics
Рет қаралды 198 М.
Bash Scripting - Variables, Arrays, If-Then-Else
38:52
DistroTube
Рет қаралды 47 М.
Write Your Own Bash Scripts for Automation [Tutorial]
16:35
Null Byte
Рет қаралды 771 М.
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 60 МЛН