Linux for Programmers #7 | Environment Variables

Поделиться
HTML-код
  • Опубликовано: 6 окт 2024

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

  • @UR.BASHEER
    @UR.BASHEER 2 года назад +7

    Such a clear explanation of environmen variables. Love to know more from you sir. Keep going

  • @flexcheekz4582
    @flexcheekz4582 Год назад +2

    AMAZING VID! currently doing the RHCSA course and didn't quite understand this chapter, this helped a lot appreciate it!

  • @mynameislyle6917
    @mynameislyle6917 2 года назад +4

    Very helpful explanation! Commenting for the algorithm so others can discover this too

  • @SaveTheBalls
    @SaveTheBalls Год назад +5

    For me I think it's better to use .profile instead of .bashrc because it's shell specific because many people may use other shell (zsh, fish). So for shell independent case use .profile then source it so it will automatically assign the env variable whenever you login.

    • @TastyLaserCakes
      @TastyLaserCakes 8 месяцев назад +1

      SUUUPER helpful 4 months later so thank you for this!

    • @oneinabillion654
      @oneinabillion654 2 месяца назад +1

      Thanks. I was wondering cuz I use .tcshrc

  • @jean-michelnadeau5447
    @jean-michelnadeau5447 2 года назад +4

    Exactly what I needed. Thanks!

  • @brainstormsurge154
    @brainstormsurge154 7 месяцев назад

    Rather than having to close everything and open it back up you could just use "exit" and it would take you back to your login if you're just in the TTY. Or even easier you could use the "exec" command (execute) and start a new bash session such as `exec bash` which will close your current session and open a new one which is not the same as opening a sub-shell or child shell. In a child shell, opened by using just `bash` to open it, using `exit` would take you back to your parent shell which still has the temporary variable.
    I can't remember if child shells inherit session variables but I'm pretty sure they do.
    P.S. Using just `.` is a built-in alias for `source` so you can just type `. .bashrc` to source the file.

  • @natb007
    @natb007 Год назад +1

    Thank you so much for this series!

  • @tolulopeoyekunle9857
    @tolulopeoyekunle9857 2 года назад +2

    This helped me, thanks a lot!

  • @devatichetty4323
    @devatichetty4323 2 года назад +1

    Nice clear explanation. Thanks

  • @aronwomack359
    @aronwomack359 Год назад

    You make some good videos, I gotta say for others, after editing the ~.bashrc, you can just type bash or . .bashrc.

  • @ahmadmtera
    @ahmadmtera Год назад +1

    Perfect. Thank you!

  • @ashokpokharel
    @ashokpokharel 2 года назад +1

    Great Saved my Day

  • @amlmahdawy3859
    @amlmahdawy3859 Год назад +1

    great explanation !
    thank u found it really useful

  • @ancapsolteiro8595
    @ancapsolteiro8595 Год назад +1

    Great explanation!

  • @leonardopinheiro6693
    @leonardopinheiro6693 2 года назад +2

    Good video!
    Thank you.

  • @gunz900220
    @gunz900220 2 года назад +1

    It worked!. Thank you sir

  • @davidvillalobosvargas
    @davidvillalobosvargas Год назад +1

    i learnt alot, thank you

  • @herbertk9266
    @herbertk9266 2 года назад +3

    Thank you

  • @pedrodesanti6266
    @pedrodesanti6266 2 года назад +1

    that is really good content

  • @timvanrooijen3324
    @timvanrooijen3324 Год назад

    Very nice!

  • @lockhart1895
    @lockhart1895 10 месяцев назад

    what about the set command ?

  • @justins7796
    @justins7796 2 года назад +1

    Is this Tech For Tim? Sounds like him lol

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

    Thanks!

  • @bvwproductions
    @bvwproductions Год назад

    Nice 1

  • @qzorn4440
    @qzorn4440 Год назад

    This is great information in trying to VIM echo an Orange Pi5 to setup and test the GPIO PWM pins to control the servo Pan/Tilt motors. 😎 Thank you
    root@orangepi:~# echo 0 > /sys/class/pwm/pwmchip2/export root@orangepi:~# echo 1000000 > /sys/class/pwm/pwmchip2/pwm0/duty_cycle
    root@orangepi:~# echo 20000000 > /sys/class/pwm/pwmchip2/pwm0/period root@orangepi:~# echo 1 > /sys/class/pwm/pwmchip2/pwm0/enable

  • @freedbeats
    @freedbeats Год назад

    Bro you leaked your IP multiple times in this Video. I hope for you it doesnt correspond to Aurora in Canada because thats whats the estimated IP Location says

  • @codeninjausman
    @codeninjausman 8 дней назад

    bro, just showed his ip ... XD

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