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
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.
Magic video! An advanced video on SystemD will be really appreciated!
Thanks for patiently teaching us all of these things
You have the best and most comprehensive videos on Linux. Thanks!
Create a video on how to create unit files for systemctl and basics of journalctl.
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.
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.
Great video! This video helped me get a better understanding of systemd and systemctl. Thank you!
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.
You are such a good teacher. Crystal clear explanations, thank you!
such a soothing voice. almost like LearnLinux ASMR
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.
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
Yes, master Jay I'm listening, thank you
Lol
This is a nice surprise. I am too far behind for ansible and docker videos. been binging your old videos.
Thanks, Jay.
Straight forward, thank you.
Thanks so much, it's a great video. Really helped me. 😁👍👊
Thanks jay it was really helpful
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.
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.
I second this! 😁
This is great, thank you so much!
Excellent video, thanks
Can you please make a detailed video about all options in a unit file?
Added to the list. Thanks for the suggestion!
@@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.
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.
You're great. Thanks a lot.
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!!
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?
i think it was more concentrated on http service than properly on systemctl issue
Nice video!
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.
@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.
That’s configured in journald.conf -- see the man page. For example, you have the ForwardToSyslog option.
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.
How do you view old commands based on a timestamp only
Question will there be alternative init systems like openrc, runit and s6 aka suite66. How to use them too?
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
I am curious about running services under user
you a have a video on this?
Very curious what Openrc, SysVinit, Runit guides are. Never mind.
12:46 how do I get out of this? What key do I push to get back to terminal Jay?
I am no expert on systemd stuff, but try press q
Press q if it doesn't work use ctrl + C
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?
He kind of sounds like strongsad
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
Thank you for the tutorial. Could i edit with systemctl, /etc/pulse/daemon.conf file.
If you're here, you found a Killer Linux instructor. Shit you not...
good stuff
We need understand kernel
Food for algorithm ;-)
Please help I get choppy audio on Bluetooth while using fedora, I really wanted to use fedora
Thank you!
The whole point among many other things... Huh? :-)
Nice gautam budha idol in back
And thankfully not Slackware
Are they still on editing execute bits on rc files?
longest fucking intro
I couldn’t even get to your adverts as I got one advertisement after another. FAIL !
If you don't know how ad-blockers work then don't even bother learning this.
Thanks!