systemd on Linux 2: systemctl commands

Sdílet
Vložit
  • čas přidán 13. 06. 2024
  • The second video in the systemd series, which covers the most common systemctl commands that developers, sysadmins, and devops engineers use.
    0:00 Introduction
    0:13 systemctl subcommands
    0:30 systemctl list-units
    0:54 systemctl list-unit-files
    1:23 unit state management
    1:40 systemctl status
    2:08 enable/disable vs. start/stop
    4:20 type forking, PIDFile
    5:16 systemctl stop
    5:40 ExecReload and systemctl reload
    6:30 Review / Summary
    6:56 systemctl kill
    7:12 Unit Statuses
    8:25 Indirect, Linked, Masked, etc.
    www.freedesktop.org/software/...
    My Udemy course for beginners: www.udemy.com/course/hands-on...
    Linode Referral Link (you get $100 credit when signing up): www.linode.com/tutorialinux
    tutorialinux Merch: / @tutorialinux
    Free Linux Sysadmin Course Playlist: • The Linux Basics Cours...
    Patreon: / tutorialinux
    Official Site & e-mail list: tutorialinux.com/
    Twitter: / tutorialinux
    Facebook: / tutorialinux
    Podcast: kernelpanicpodcast.com
  • Věda a technologie

Komentáře • 22

  • @sunwire
    @sunwire Před 2 lety +40

    3:15 Slight correction. You can enable and start or disable and stop a service immediately, just use the --now switch.
    systemctl enable --now nginx
    systemctl disable --now nginx

    • @tutoriaLinux
      @tutoriaLinux  Před 2 lety +16

      Wow thanks, I never knew that! Super useful.

  • @dmitriylevy7865
    @dmitriylevy7865 Před 2 lety +2

    I love this guy. You need someone who is super senior in the Linux field. The way he's teaching, I can tell he's an OG

  • @krishnakant744
    @krishnakant744 Před 2 lety +14

    Making my self ready for interviews and you are guiding from somewhere like a Professor ☺️Thank you

  • @PatriciaSantos-sz3fw
    @PatriciaSantos-sz3fw Před rokem

    My teacher has been doing this and lecturing this for years and I swear I try to learn from him but it's just too hard. He starts divagating and it becomes confusing. Ends up mixing every term in the same lecture without letting us understand the basics first, so imagine these explanations but instead of "we are going to talk about sockets later on" or something like that, he just inserts it in the middle of the class without wrapping up what he was explaining before. Then we ask him about X and he explains Y and only by studying out of class are we able to understand that the answer he provided wasn't the one we actually needed at the time. I'm so glad these videos are available so easily on youtube for people who want/have to learn about the subject. It feels good to study and actually learn something. No hate to the teacher, I'm sure some people are able to keep up and might even like his methods but me personally, I can't, so I'm very grateful for the content of this channel. Keep it up :D

  • @mntmnt3108
    @mntmnt3108 Před 2 lety

    Thanks for the comprehensive video

  • @andrewlemstrom3669
    @andrewlemstrom3669 Před 2 lety

    Nice! I bought two shirts from ya! Thanks man, already helpful! You deserve a gold star!

  • @Oswee
    @Oswee Před 2 lety

    How interesting... just right now swapped from NetworkManager to Systemd-networkd. :)

  • @billdwyer2522
    @billdwyer2522 Před 2 lety

    i like the way you explain this stuff. i'm wondering what modern services normally look like; e.g. we have some old java services which seem to be all circa 1902 shell scripts, and i keep wondering why they're not written in ruby or python. maybe the convention is to have systemd units never assume anything but the bare basics (i.e. bash or ksh) are installed

  • @und3rgr0undfr34k
    @und3rgr0undfr34k Před 2 lety

    thank you!

  • @DjReserve1
    @DjReserve1 Před rokem

    What is the difference between stop and kill? do they both stop the service? (i know disable must be used to prevent the service to boot on startup)

  • @ChouJeroen
    @ChouJeroen Před 2 lety

    thanks

  • @plasmalife5532
    @plasmalife5532 Před 2 lety

    Rare type videos ❤️

  • @plasmalife5532
    @plasmalife5532 Před 2 lety

    ❤️

  • @OctavianFox
    @OctavianFox Před 2 lety +1

    great video only, "masked" service (systemctl mask $unit) will disable the service but not "ignore it". You just cannot start a "masked" service. This is useful when a service should live on system but you want it never be started by anybody.

  • @antonparas4782
    @antonparas4782 Před 2 lety

    ur a god

    • @oni741
      @oni741 Před 4 měsíci

      No. The only God is The Ghost of Sparta: *Kratos* LOL😂

  • @FrancisBaconis
    @FrancisBaconis Před 2 lety

    Dude please make the command line higer, the red line of youtube player closes it

  • @MarufAlom
    @MarufAlom Před 2 lety

    really enjoying all the playlist. Can you please turn off the background music, It distract me from focusing