Advanced usage of the linux cd command - change directory tutorial

Поділитися
Вставка
  • Опубліковано 4 сер 2024
  • Advanced usage of the linux cd command - behind the scenes look at cd - change directory tutorial
    ♥️ SUBSCRIBE for more videos: ua-cam.com/users/bluemonkey4n6...
    Difficulty Level: intermediate
    Prerequisites: basic understanding of linux command line and bash
    The cd command is one of the first commands that most people learn in Linux. And we are going to explore some advanced usages of the cd command and go behind the scenes to see what the command is really doing with variables like $HOME, $OLDPWD, and $CDPATH.
    Video timeline
    00:00 intro
    00:24 Change directory to the home folder (cd ~)
    01:17 behind the scenes of “cd ~“: $HOME
    03:43 Change directory to last used folder (cd -)
    05:21 behind the scenes of “cd -“: $OLDPWD
    05:39 Change directory to folder that is not in the current directory using $CDPATH
    08:53 BONUS: advanced command line
    If you enjoyed this, please share this knowledge with someone else. I am grateful for you
    ⭕️ For other videos about the Linux command line, see other videos in this series: • Linux Command Line tut...
    mounting and unmounting tutorial: • mounting and unmountin...
    terminals, shells, and consoles: • terminal vs shell vs c...
    Must have tech travel gear 2024: • Must have travel tech ...
    • Bose QuietComfort earbuds II (amzn.to/3tJ2wCJ)
    • Apple AirPodsPros (amzn.to/3tBSK5s)
    • Worldwide Travel adapter (amzn.to/42eXOaY)
    • Enegon Portable powerbank/charger (amzn.to/42Rn47y)
    • Multi-charger cable 4-ft 4 in 1 USB fast charger with LighteningPort/USB-C/microUSB (amzn.to/3RSsM5s)
    • GLi-net Mango Travel router (amzn.to/3H8cfFK)
    • TP-link AC750 Travel router (amzn.to/3oc9Aoh)
    • Apple Airtags(amzn.to/3Tigyp5), Holder: amzn.to/3t1YSUh
    • Flashlight - OLIGHT Arkfeld (amzn.to/3NQ9uN2)
    • ThinkTank Cable Management 10 v2.0 (amzn.to/45BwN4v)
    CAINE forensics distro: www.caine-live.net
    ParrotOS: parrotsec.org
    Icons made by freepik from @flaticon www.flaticon.com/authors/freepik
    Icons made by Smashicons from www.flaticon.com/authors/smash...
    Hiking Stock Videos by Vecteezy www.vecteezy.com/free-videos/...
    Music (All That) by Bensound www.bensound.com
    DISCLAIMER: Links in this video description might be affiliate links. If you purchase a product or service using one of these links, I may receive a small commission at no additional cost to you. Thank you for watching!
    #DFIR #commandline #changedirectory
  • Наука та технологія

КОМЕНТАРІ • 5

  • @DV-ml4fm
    @DV-ml4fm 27 днів тому +2

    You were right. Never knewed about the CDPATH variable. I've used popd and pushd for multiple directories. I recently tried another cd tool called autojump. It's nuch easier than popd and pushd.
    Great video!!!

    • @BlueMonkey4n6
      @BlueMonkey4n6  27 днів тому +1

      Thanks for watching and for the comment. I have heard good things about autojump but havent used it myself.

    • @DV-ml4fm
      @DV-ml4fm 27 днів тому +2

      @BlueMonkey4n6 There are videos here on YT on autojump so you can get an idea of how it works.

    • @BlueMonkey4n6
      @BlueMonkey4n6  27 днів тому +1

      @DV-ml4fm great, thanks!

  • @peterkwok4445
    @peterkwok4445 27 днів тому +1

    yessir