• About Us
  • Announce
  • Privacy Policy
  • Contact us
MasterTrend Info - Technology, News and Tutorials
17 °c
Moscow
17 ° Wed
19 ° thu
  • HOME
    • BLOG
  • Tutorials
  • Hardware
  • Gaming
  • Mobile
  • Security
  • Windows
  • IA
  • Software
  • Networks
  • What's new
  • en_USEnglish
    • es_ESSpanish
    • pt_BRPortuguese
    • fr_FRFrench
    • it_ITItalian
    • de_DEGerman
    • ko_KRKorean
    • jaJapanese
    • zh_CNChinese
    • ru_RURussian
    • thThai
    • pl_PLPolish
    • tr_TRTurkish
    • id_IDIndonesian
    • hi_INHindi
    • arArabic
    • sv_SESwedish
    • nl_NLDutch
No result
See all results
  • HOME
    • BLOG
  • Tutorials
  • Hardware
  • Gaming
  • Mobile
  • Security
  • Windows
  • IA
  • Software
  • Networks
  • What's new
  • en_USEnglish
    • es_ESSpanish
    • pt_BRPortuguese
    • fr_FRFrench
    • it_ITItalian
    • de_DEGerman
    • ko_KRKorean
    • jaJapanese
    • zh_CNChinese
    • ru_RURussian
    • thThai
    • pl_PLPolish
    • tr_TRTurkish
    • id_IDIndonesian
    • hi_INHindi
    • arArabic
    • sv_SESwedish
    • nl_NLDutch
No result
See all results
MasterTrend Info - Technology, News and Tutorials
No result
See all results
Start Tutorials

systemctl: Total Control in Linux in 12 Steps

MasterTrend Insights by MasterTrend Insights
April 28, 2026
in Tutorials
Reading time:7 min read
0
systemctl 12 commands that master Linux
45
SHARED
126
Views
Share on FacebookShare on Twitter

Contents

  1. systemctl: 12 commands that master Linux 🚀
  2. What Is the Systemctl Command?
  3. Interrogating Services With systemctl
  4. Controlling Services With systemctl

systemctl: 12 commands that master Linux 🚀

The systemctl command has several features that are often overlooked. In addition to starting and stopping services in Linux, you can also list installed services and check their status. Let's do a quick review! 🚀

What Is the Systemctl Command?

The command systemctl es la herramienta central de gestión del sistema init systemd, conocida principalmente como la herramienta que se usa para iniciar y detener servicios. Pero hay mucho más, como lo demuestra su página de manual que tiene más de 1600 líneas. 📖

Because systemctl is a management tool, not just a service launcher, you can use it to access useful information about your system and its systemd services. 💻

Most Linux distributions have adopted systemd, but some have opted to retain the traditional SystemV init system. If you're not sure which one your distribution uses, it's easy to find out. We'll use the stat command to look at the init file.

stat /sbin/init 
Using the stat command to see if a Linux installation uses SystemV or systemd.

The /sbin/init executable file is the first process launched in SystemV-based distributions. In systemd-based distributions, a symbolic link of that name points to the systemd file.

The first line of output shows us that on this Ubuntu test machine, /sbin/init is a symbolic link to the /lib/systemd/systemd file. Clearly, this Linux installation uses systemd. If this were a SystemV-based distribution, the line would simply contain “File: /sbin/init.”

Interrogating Services With systemctl

Services are defined in unit files, and you'll see the word "unit" scattered throughout systemctl options. As an example, we can obtain a list of services with the list-units command using the –type option.

systemctl list-units --type=service
The output of the systemctl list-units command, showing running and stopped services.

The output is displayed in the less file viewer, allowing you to navigate and use the / key to search.

  • Unit: The name of the unit file.
  • Carry: If the service's unit file was read into memory without syntax errors, this column will contain "loaded." This does not mean the service is active.
  • Asset: An overview of whether a service is active. An active service may not be running.
  • Sub: A more detailed view of whether a service is running. For example, an active service might be scheduled for a timer and may have exited its last run.
  • Description: A line of text intended to identify or describe the service.

The display only includes active services. To see all services, we need to include the –all option.

systemctl list-units --all --type=service
The output of the systemctl list-units command, showing all services.

If viewing everything is overwhelming, we can filter the output with the –state option.

systemctl list-units --type=service --state=running
The output of the systemctl list-units command, filtered to show only running services.

The state option will accept running, stopped, enabled, disabled, and failed.

To focus on failed services, use the –failed option.

systemctl list-units --failed
The output of the systemctl list-units command, filtered to show only failed services. There are no failed services.

There are no failed drives on this computer.

If you see any failed services, use the list-dependencies option to check for unmet dependencies.

systemctl list-dependencies sshd.service
The output of the systemctl list-dependencies command showing the dependencies for the sshd service.

Dependencies have a color-coded circle representing their status. This can be:

  • White Circle: Inactive or under maintenance
  • Green Dot: Asset.
  • White Point: Deactivating.
  • Red Dot: Failed or error.

To check if a single service is enabled, use the is-enabled command and provide the name of the service's unit file.

systemctl es-enabled htg-example.service
Using systemctl is-enabled to determine if a specific service is enabled.

Controlling Services With systemctl

Using systemctl to manage services is very simple and follows the same command format as the ones we've seen so far. The biggest difference is that you'll need to use sudo to make changes to service status. We haven't done this so far because we've only been reporting on service status.

To start a service, use the start command followed by the service name.

sweat systemctl start htg-example.service
Starting a service with the systemctl start command.

If all goes well, you'll be silently returned to the command prompt. If you'd prefer positive confirmation, you can verify this with the status command.

sweat systemctl status htg-example.service
Checking the status of a service with the systemctl status command.

Stopping a service is just as easy as starting it.

sweat systemctl stop htg-example.service
Stopping a service with the systemctl stop command.

You can restart a service without having to go through the two-step process of stopping and then starting it. restart command does it all for you.

sweat systemctl restart htg-example.service
Restarting a service with the systemctl restart command.

If you want a service to start at boot, you need to enable it.

sweat systemctl enable htg-example.service
Enabling a service with the systemctl enable command.

Note that this only specifies the service to start at boot; it doesn't start it immediately. If that's what you want, add the --now option.

sweat systemctl enable --now htg-example.service
Enabling and starting a service at the same time with the systemctl enable --now command.

When you no longer need a service to start at boot, disable it.

sweat systemctl disable htg-example.service
Disabling a service with the systemctl disable command.

You can use the journalctl command, another part of systemd, to search for entries related to your service. The -u (unit) option allows you to specify the service you're interested in. With the -S (since) option, you can display entries that have occurred since the specified time.

journalctl -S "08:00:00" -or htg-example.service
Using the journalctl command to display system log entries related to a specific service.

Any tool that helps you obtain information about the operation Your Linux distribution's internals will be invaluable, both for day-to-day management and for troubleshooting and diagnosing issues. The systemctl command isn't a single tool. It's more like a treasure trove of specialized tools, and it's well worth getting familiar with. 🔧🛠️

Share this:
6FacebookLinkedInPinterestXRedditTumblrBlueskyThreadsShareChatGPTClaudeGoogle AIGrok
6
SHARES
Tags: EvergreenContentLinuxTechtips
Previous Publication

Megatransfer: The new era of RAM speed ⚡

next post

How to use Traceroute: Master your network now 🛠️

MasterTrend Insights

MasterTrend Insights

Our editorial team shares a deep-dive analysis, tutorials and recommendations for getting the most out of your devices and digital tools.

RelatedPublications

WiFi Calling on iPhone. Woman showing on an iPhone the WiFi Calling option enabled in settings, guide on how to enable and use WiFi Calling on iPhone step by step.
Tutorials

WiFi Calling on iPhone: how to enable and use it

April 26, 2026
149
Advanced on-screen TV settings with brightness, contrast, sharpness, color, motion flow and HDR tone mapping configuration on a 4K UHD TV displaying a cinematic scene in high definition.
Tutorials

Advanced TV settings: what to change and what to avoid

April 7, 2026
247
iPhone call forwarding activated from settings, showing the “Call Forwarding” option enabled on the mobile phone screen.
Tutorials

iPhone call forwarding: how to activate and use it

April 27, 2026
222
Actual charging speed on your Android phone shown in a charging meter app with amperage and battery status on screen, while a woman holds the smartphone in a technology store.
Tutorials

Actual Loading Speed ​​on Your Android Phone

February 22, 2026
174
Accidental Echo Activation - Woman annoyed by the accidental activation of Alexa on an Amazon Echo speaker in a domestic living room.
Tutorials

Accidental activation of Echo on Amazon speakers

February 9, 2026
179
PNG to PDF Methods - Illustration of methods to convert PNG files to PDF, showing PNG and PDF icons with a conversion arrow between both formats.
Tutorials

PNG to PDF conversion methods: A comparison to help you choose in Windows 11

April 27, 2026
301
next post
How to Use Traceroute to Identify Network Problems

How to use Traceroute: Master your network now 🛠️

5 2 votes
Article Rating
Subscribe
Access
Notify of
guest
guest
0 Comments
Oldest
Newest Most voted
Online Comments
See all comments

Stay Connected

  • 976 Fans
  • 118 Followers
  • 1.4 k Followers
  • 1.8 k Subscribers
  • Trends
  • Comments
  • Last
🖥️ How to open 'Devices and printers' in Windows 11: 4 simple steps

🌟 How to open ‘Devices and printers’ in Windows 11: ¡Amazing trick!

April 28, 2026
Windows 11 Persistent Clock

Windows 11 Persistent Clock: Options, Limits, and Real Decisions

April 28, 2026
Ethernet not working in Windows 11: 9 easy tricks

Ethernet not working in Windows 11: 3-minute solution ⚡🌐

13 November 2025
How to save game in REPO

How to save game in REPO 🔥 Discover the secret to not losing progress

7 July 2025
Features of Gmail on Android: Save time with 5 tips

Features of Gmail in Android: you 5 tricks you did not know! 📱✨

12
Repair of motherboards - Repair MotherBoards

Repair of motherboards of Laptops

10
Install Windows 11 Home without Internet

Install Windows 11 Home without Internet

10
How to backup drivers in Windows 11/10 in 4 steps!

How to backup drivers in Windows 11/10 It Prevents errors! 🚨💾

10
AMD UDNA architecture for PS6 and Xbox Next, detail of next-generation GPU chip with advanced design for high-performance gaming consoles.

UDNA architecture in PS6 and Xbox Next: more than just numbers

4 de May de 2026
FBC Firebreak Weapons: Unlock and Priorities - Tactical operators with shotguns and flamethrowers in combat surrounded by fire in intense video game scene.

FBC Firebreak Weapons: Unlocking and Priorities

May 3, 2026
Strategy Heroes Olden Era: White-haired warrior heroine making key decisions in an epic fantasy battle that change the course of the game.

Heroes Olden Era Strategy: Game-Changing Decisions

May 3, 2026
Shoring Up Defenses in Arc Raiders: real strategy with player in desert facing enemy drones in intense sci-fi tactical battle.

Shoring Up Defenses in Arc Raiders: Royal Strategy

May 3, 2026

Recent News

AMD UDNA architecture for PS6 and Xbox Next, detail of next-generation GPU chip with advanced design for high-performance gaming consoles.

UDNA architecture in PS6 and Xbox Next: more than just numbers

4 de May de 2026
108
FBC Firebreak Weapons: Unlock and Priorities - Tactical operators with shotguns and flamethrowers in combat surrounded by fire in intense video game scene.

FBC Firebreak Weapons: Unlocking and Priorities

May 3, 2026
100
Strategy Heroes Olden Era: White-haired warrior heroine making key decisions in an epic fantasy battle that change the course of the game.

Heroes Olden Era Strategy: Game-Changing Decisions

May 3, 2026
140
Shoring Up Defenses in Arc Raiders: real strategy with player in desert facing enemy drones in intense sci-fi tactical battle.

Shoring Up Defenses in Arc Raiders: Royal Strategy

May 3, 2026
104
MasterTrend Info logo

MasterTrend Info is your source of reference in technology: discover news, tutorials, and analysis of hardware, software, gaming, mobile, and artificial intelligence. Subscribe to our newsletter and don't miss any trend.

Follow us

Browse by Category

  • Gaming
  • Hardware
  • IA
  • Mobile
  • What's new
  • Networks
  • Security
  • Software
  • Tutorials
  • Windows

Recent News

AMD UDNA architecture for PS6 and Xbox Next, detail of next-generation GPU chip with advanced design for high-performance gaming consoles.

UDNA architecture in PS6 and Xbox Next: more than just numbers

4 de May de 2026
FBC Firebreak Weapons: Unlock and Priorities - Tactical operators with shotguns and flamethrowers in combat surrounded by fire in intense video game scene.

FBC Firebreak Weapons: Unlocking and Priorities

May 3, 2026
  • About Us
  • Announce
  • Privacy Policy
  • Contact us

Copyright © 2025 https://mastertrend.info/ - All rights reserved. All trademarks are property of their respective owners.

We've detected you might be speaking a different language. Do you want to change to:
es_ES Spanish
es_ES Spanish
en_US English
pt_BR Portuguese
fr_FR French
it_IT Italian
ru_RU Russian
de_DE German
zh_CN Chinese
ko_KR Korean
ja Japanese
th Thai
hi_IN Hindi
ar Arabic
tr_TR Turkish
pl_PL Polish
id_ID Indonesian
nl_NL Dutch
sv_SE Swedish
Change Language
Close and do not switch language
No result
See all results
  • en_USEnglish
    • es_ESSpanish
    • pt_BRPortuguese
    • fr_FRFrench
    • it_ITItalian
    • de_DEGerman
    • ko_KRKorean
    • jaJapanese
    • zh_CNChinese
    • ru_RURussian
    • pl_PLPolish
    • id_IDIndonesian
    • tr_TRTurkish
    • hi_INHindi
    • thThai
    • arArabic
    • sv_SESwedish
    • nl_NLDutch
  • Gaming
  • Hardware
  • IA
  • Mobile
  • What's new
  • Networks
  • Security
  • Software
  • Tutorials
  • Windows

Copyright © 2025 https://mastertrend.info/ - All rights reserved. All trademarks are property of their respective owners.

wpDiscuz
RedditBlueskyXMastodonHacker News
Share this:
MastodonVKWhatsAppTelegramSMSLineMessengerFlipboardHacker NewsMixNextdoorPerplexityXingYummly
Your Mastodon Instance