Linux Crash Course - systemd: Using the systemctl command

Поделиться
HTML-код
  • Опубликовано: 27 авг 2024
  • In this episode of Linux Crash Course, we take our first look at systemd - the init system in quite a few distributions of Linux nowadays. Specifically, we'll go over the systemctl command and use it to start, stop, restart and enable units on our system.
    ☁️ Support LearnLinuxTV and Set up your own cloud server with Akamai Connected Cloud!
    ➡️ learnlinux.lin...
    LearnLinuxTV Links
    🐧 Main site:
    ➡️ www.learnlinux.tv
    🐧 LearnLinuxTV Community:
    ➡️ community.lear...
    Support LearnLinuxTV (commission earned)
    📖 Check out Jay's latest book, Mastering Ubuntu Server 4th Edition. Covers Ubuntu 22.04!
    ➡️ ubuntuserverbo...
    🙌 Support me on Patreon and get early access to new content!
    ➡️ learnlinux.lin...
    🛒 Affiliate store for Linux compatible hardware/accessories (commission earned):
    ➡️ learnlinux.lin...
    💻 Check out the Tiny Pilot KVM for your Homelab (commission earned):
    ➡️ learnlinux.lin...
    About Me
    🐦 Follow me on Twitter!
    ➡️ learnlinux.lin...
    👨 More about me:
    ➡️ www.jaylacroix...
    ➡️ www.learnlinux...
    Recommended evergreen videos:
    💽 How to create a bootable flash drive for installing Linux
    ➡️ linux.video/fl...
    🐧 Understanding Linux permissions
    ➡️ linux.video/perms
    🐧 OpenSSH Guide
    ➡️ linux.video/ssh
    📖 LVM Deep-dive:
    ➡️ linux.video/lvm
    🔐 How to better secure OpenSSH:
    ➡️ linux.video/se...
    ☁️ How to create a cloud Linux server with Linode:
    ➡️ learnlinux.lin...
    📘 FAQ
    • What is a "Distribution" of Linux? ➜ linux.video/wh...
    • What is a "Desktop Environment"? ➜ linux.video/de...
    • Which Linux Distro should I use on my Server? ➜ linux.video/wh...
    • How do I create USB install media? ➜ linux.video/in...
    • How do I create multi-boot USB media? ➜ linux.video/ve...
    • How do I connect to a Linux server via SSH? ➜ linux.video/us...
    • How do I exit vim? ➜ linux.video/vim
    • How do I use APT? ➜ linux.video/apt
    • How do I use DNF? ➜ linux.video/dnf
    • How do I use pacman? ➜ linux.video/pa...
    • How do I use zypper? ➜ linux.video/zy...
    • What the heck is a "Flatpak"? ➜ linux.video/fl...
    • What is a "Snap" package? ➜ linux.video/snap
    • How do I install Arch Linux? ➜ linux.video/in...
    • How do I configure SSH on my server? linux.video/ss...
    • How do I install updates? ➜ linux.video/up...
    • What server tweaks should I implement? ➜ linux.video/ev...
    • How do I use LVM? ➜ linux.video/lvm
    • How do I use Git? ➜ linux.video/git
    • When will the "Year of the Linux Desktop" Happen? ➜ linux.video/yotld
    • Do you have a sense of humor? ➜ linux.video/lol
    #LearnLinuxTV #Linux #systemctl

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

  • @theena
    @theena 3 года назад +16

    Jay, I just wanted to say a personal note of thanks for the tmux tutorials. Ended up making me an even better user in terminal. You have a gift for teaching. Thanks again.

  • @derekgoodwine7509
    @derekgoodwine7509 2 года назад +5

    Magic video! An advanced video on SystemD will be really appreciated!

  • @thamizhansurya8519
    @thamizhansurya8519 3 года назад +13

    Thanks for patiently teaching us all of these things

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

    You have the best and most comprehensive videos on Linux. Thanks!

  • @hariharanjaikumar9665
    @hariharanjaikumar9665 3 года назад +17

    Create a video on how to create unit files for systemctl and basics of journalctl.

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

    I haven't had a bad time with systemd myself. My overall impression is that it provides a sane solution to the problem it addresses.

  • @xpkareem
    @xpkareem Год назад +8

    systemd puts everything in one place going against the philosophy of Linux. All configs are meant to be scattered across the system in at least a dozen different formats and locations.

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

    Great video! This video helped me get a better understanding of systemd and systemctl. Thank you!

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

    Excellent video. I've been working in the field for many years and this is one of the very best explanations of this type I have seen.

  • @LBCreateSpace
    @LBCreateSpace 4 месяца назад

    You are such a good teacher. Crystal clear explanations, thank you!

  • @fltngmmth
    @fltngmmth 3 года назад +1

    such a soothing voice. almost like LearnLinux ASMR

  • @saikoteeki
    @saikoteeki 3 года назад +7

    I always appreciate your tutorials. Even if I know something, I usually watch them to pick up an odd command or a different way to do it. btw, in Arch it's pacman -S apache.

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

    Hi sir, Thank you for your videos. i learned alot from it. i'd like to ask if you have a video series about firewall-cmd?. Thank you

  • @srsr6099
    @srsr6099 3 года назад +5

    Yes, master Jay I'm listening, thank you

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

    This is a nice surprise. I am too far behind for ansible and docker videos. been binging your old videos.

  • @adjusted-bunny
    @adjusted-bunny 3 года назад +1

    Thanks, Jay.

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

    Straight forward, thank you.

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

    Thanks so much, it's a great video. Really helped me. 😁👍👊

  • @abdouabdou1089
    @abdouabdou1089 3 года назад +1

    Thanks jay it was really helpful

  • @CrustyAbsconder
    @CrustyAbsconder 3 года назад +9

    What I am about to write to you is an extreme compliment.
    You should start a whole new genre of channel.
    I have severe insomnia.
    I have watched dozens of your videos, and plan to watch them all, and learn Linux
    But sometimes I go into a peaceful sleep.
    So please do not change anything you are doing.
    I always re-watch the video when I can.

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

    Thnaks for your great contents. I enjoy watching your videos every time.
    I just want to ask that if there is a possibility to make a video about Failover and High Availability using corosync- Pacemaker for example. If you do that it would be great.

    • @berreh917
      @berreh917 3 года назад

      I second this! 😁

  • @danielgutierrez1258
    @danielgutierrez1258 3 года назад +1

    This is great, thank you so much!

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

    Excellent video, thanks

  • @pratikshares
    @pratikshares 3 года назад +3

    Can you please make a detailed video about all options in a unit file?

    • @LearnLinuxTV
      @LearnLinuxTV  3 года назад +1

      Added to the list. Thanks for the suggestion!

    • @pratikshares
      @pratikshares 3 года назад

      @@LearnLinuxTV Looking forward to it. I have been looking for a simple guide explaining the most important parts of the service files for some time now.
      I love the way you teach. Simple and succinct. Never thought I would learn tmux, because most tuts made it look so complex. But after watching your series on it I'm a convert.

    • @PrivacyRevocation
      @PrivacyRevocation 3 года назад

      Plus one on this idea. It is what I actually came to the video for, although I learned a command or two from this as well.

  • @icanog55
    @icanog55 3 года назад +1

    You're great. Thanks a lot.

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

    I love your videos! Could you do a video or series about utilizing the man pages I am learning and I know the information is there but I do not know how to use it! It would be great if I was able to use the man pages to my benefit. As it is I am lost. Your help would be awesome!!

  • @MacGyver0
    @MacGyver0 3 года назад +1

    When you execute sudo systemctl enable syncthing@jay how exactly systemd understand that service should be started only for jay user?
    Unit does not contain any information about target user, just parameter.
    And will it be started only for jay user or it will be started "as" jay user?
    And which moment it will be started? After user log in?

  • @cientifiko
    @cientifiko 3 года назад +1

    i think it was more concentrated on http service than properly on systemctl issue

  • @WarpFactor999
    @WarpFactor999 3 года назад +1

    Nice video!

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

    I'm new to cyber security. Thought I'd hate Unix. But your changing my mind. My only question. When to use ps instead sysctl to look at processes.

  • @arjunshinde7
    @arjunshinde7 3 года назад +1

    @19:30 you have .service file. How to see the created logs for this .service unit files. Since all the logs are saved in /var/logs/create_folder And /etc/Rsyslog.d folder in file_name.conf file is required to generate a syslog.
    Though we can check the logs using journalctl -u servicefilename.service to see the logs directly on terminal. But how can we save the log files in /var/logs/syslog.
    Please make a video over this issue.

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

      That’s configured in journald.conf -- see the man page. For example, you have the ForwardToSyslog option.

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

    Thanks for the real good staff! How can you watch the copious output of a command one screen at a time from beginning to the end? I need to use less for that.

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

    How do you view old commands based on a timestamp only

  • @celestialadministration
    @celestialadministration 3 года назад +1

    Question will there be alternative init systems like openrc, runit and s6 aka suite66. How to use them too?

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

    For years, since probably 2014 I have been talking smack on systemd not because I knew what I was talking about but because someone somewhere I considered an authority at some point in my life had said this. Then I believed this sentiment and spread this unsubstantiated rumor for almost 10 years. Smh.. I can't help but wonder if the person I believed had blindly believed someone perceived as an authority themselves...
    I had for the longest time been under the impression it was the equivalent of the windows registry, but this seems so incredibly far from the truth as an OG of the Windows game.. I am humbled greatly

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

    I am curious about running services under user
    you a have a video on this?

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

    Very curious what Openrc, SysVinit, Runit guides are. Never mind.

  • @Dillinger86
    @Dillinger86 3 года назад +1

    12:46 how do I get out of this? What key do I push to get back to terminal Jay?

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

    I was looking for a tutorial about creating systemd units, but I found 3 video on this channel where described systemctl start, stop, restart, reload, and status. Maybe I missed something and someone could point me to the right video?

  • @internallyinteral
    @internallyinteral 3 года назад +3

    He kind of sounds like strongsad

  • @chrisdepallanofficial460
    @chrisdepallanofficial460 5 месяцев назад

    wow. good tutorial. thanks . i am a noob and my django was not working due to mariadbserver turning on by default. i was able to solve it and understand it well. thanks. cheers

  • @somathilakesuraweera1673
    @somathilakesuraweera1673 9 месяцев назад

    Thank you for the tutorial. Could i edit with systemctl, /etc/pulse/daemon.conf file.

  • @sexyeur
    @sexyeur 3 года назад

    If you're here, you found a Killer Linux instructor. Shit you not...

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

    good stuff

  • @mizel_1121
    @mizel_1121 3 года назад

    We need understand kernel

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

    Food for algorithm ;-)

  • @ShivuSharma-ek8bh
    @ShivuSharma-ek8bh 3 года назад

    Please help I get choppy audio on Bluetooth while using fedora, I really wanted to use fedora

  • @guilherme5094
    @guilherme5094 3 года назад

    Thank you!

  • @christopherlewis1948
    @christopherlewis1948 3 года назад

    The whole point among many other things... Huh? :-)

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

    Nice gautam budha idol in back

  • @kermitdafrog8
    @kermitdafrog8 3 года назад +1

    And thankfully not Slackware

  • @nancyperez5480
    @nancyperez5480 Месяц назад

    longest fucking intro

  • @keithmiller9665
    @keithmiller9665 3 года назад

    I couldn’t even get to your adverts as I got one advertisement after another. FAIL !

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

      If you don't know how ad-blockers work then don't even bother learning this.

  • @Lopezadl2ian
    @Lopezadl2ian 6 месяцев назад

    Thanks!