More To Environment Variables Than You Know

preview_player
Показать описание
Sometimes I get weird comments on my channel about features that I never even knew existed and this is one of those times. This is about environment variables, as it says in the title.

==========Support The Channel==========

=========Video Platforms==========

==========Social Media==========

==========Time Stamps==========
0:00 Introduction
1:51 Checking Our Environment
3:29 Enviroment.d Configuration
6:35 Temporary Env Modification
10:32 Outro

#Systemd #Linux #EnvironmentVariable

==========Credits==========
🎨 Channel Art:
All my art has was created by Supercozman

🎵 Ending music

DISCLOSURE: Wherever possible I use referral links, which means if you click one of the links in this video or description and make a purchase I may receive a small commission or other compensation.
Рекомендации по теме
Комментарии
Автор

The meaning behind the naming convention for the files is that they are loaded in alphabetical order, so it allows you to specify their order easily, and using tens of the numbers allows you to inject something in specific places, like 51-something between 50-early and 60-late. It's usually the case with something.d folders.

Автор

I think there is an issue at 0:32 the banner shows with black background

vxer
Автор

I literally never heard of that path before.. I always set my environment variables either in /etc/environment or /etc/profile, typically I place the XDG specification variables in /etc/profile and every other variable goes into /etc/environment

novazipstream
Автор

systemctl daemon-reload && systemctl daemon-reexec

That should reload and re-execute all of systemd without rebooting.

yramagicman
Автор

printenv skips a lot of variables, declare -p catches a lot more (double for me). Both those won't show functions though, for that you want declare -f but that flag can't be combined with declare -p. (Extra: For just the function names, use declare -F)

tldr;
# Instead of printenv use:
declare -f && declare -p

Great show as always.

ulfnic
Автор

That systemd thumbnail really got me curious lol

mskiptr
Автор

if anyone is curious the naming convention part is mentioned in the mans of systemd-system.conf, system.conf.d, systemd-user.conf and user.conf.d under 'Configuration Directories and Precedence
'

maddancing
Автор

There's a small banner issue near the start

hostgrady
Автор

That’s pretty important especially for starting up wayland compositors –.^

florianfelix
Автор

Interesting - that’s new to me. But then, so is systemd :-)

billeterk
Автор

7:23, There are some people in this photo that I don't know.
From top to bottom, left to right:
Richard Stallman,
Unknown, unknown, unknown, unknown, chris titus tech tips, unknown
Luke, Linus Sebastian, Anthony, Brodie?, Bryan Lunduke, Luke Smith, Unknown, Level1Tech, Distrotube, Linus, Orxdinary gamer, meme guy, tech hut

hojjat
Автор

0:31 Your overlay didn't composite properly.

unfa
Автор

I set my environment variables in "/etc/profile.d/env.sh" because I can use variables. "environment.d" does not allow variables, because it is not a script.

thingsiplay
Автор

why would systemd do things so diferently:?

maximus
Автор

So... What is the benefit of using systemd for environment config?

s
Автор

Oh I heard of this path before... It was the first time that I installed arch and immediatelly ran into some configuration problem that had to be resolved by editing that config file.
It was god damn annoying.

Edit: I remembered it now. My OS Prober wouldn't work because systemd blocked it by default. I couldn't dual boot.
The fix was to enable it in the previosly mentioned file.

FenrirTheGray
Автор

How did you set up the color highlights where the typed command is colored when it's a valid command vs invalid command being a different color?

HumanGamer
Автор

0:31 Does kdenlive acting up again or it's just you Brodie? 😆

syakhiskk
Автор

You don't need to use env command explicitly. You can just do 'NAME=VALUE', and things like 'NAME=VALUE alacritty' also works.

mkvoq
Автор

I actually use /etc/environment to set my ZDOTDIR variable and have all my .zsh files in the .config/zsh folder instead of having .zshenv in home. Is it a good practice? I don't know

canyouphilmahar
join shbcf.ru