• About Us
  • Announce
  • Privacy Policy
  • Contact us
MasterTrend News
  • 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 News
No result
See all results
Start Tutorials

systemctl: Total Control in Linux in 12 Steps

MasterTrend Insights by MasterTrend Insights
April 25, 2025
in Tutorials
Reading time:7 min read
To To
0
systemctl 12 commands that master Linux
19
SHARED
54
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
    1. Related Posts

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 It is the central management tool of the init systemd system, primarily known as the tool used to start and stop services. But there is much more to it, as its man page which has more than 1600 lines. 📖

As systemctl It's 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

Related Posts

  • Checkout
  • Bios Dump (binaries, *.bin *.rom) 2024
  • Zotac confirms the GeForce RTX 5090 with 32 GB of GDDR7
  • Optimize your Memory: Free up your RAM – Windows 10 or 11
  • How to choose a graphics card
  • How to configure AdGuard DNS on Windows 10 and 11
  • Broken Notebook Screen: How to Fix!
  • How to translate WhatsApp messages (4 methods)
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

How to pair AirPods with a Chromebook: Person opens the AirPods case and connects them via Bluetooth to an HP laptop.
Tutorials

How to pair AirPods with Chromebook: Connect them in minutes! ⏱️🔌

November 20, 2025
78
RESULT_CODE_HUNG - Person using laptop with Chrome error "Aw, Snap!" (RESULT_CODE_HUNG), showing a 1-click solution that fixes Google Chrome and prevents it from freezing.
Tutorials

RESULT_CODE_HUNG: One-click solution that fixes Chrome 🚀

November 19, 2025
94
Rename PC in Windows 11: Settings screen showing "Change Computer Name", guide with 3 quick methods: CMD, PowerShell and Settings.
Tutorials

Rename your PC: done in 10 seconds, goodbye weird names 🔥

November 19, 2025
227
GIMP Stable Boy - User at a desk working in GIMP; screen shows GIMP Stable Boy plugin tutorial in Spanish for free generative fill-an open‑source Adobe alternative.
Tutorials

GIMP Stable Boy: Avoid Adobe and create magic for free 💥🚀

November 18, 2025
101
Disable autocorrect on iPhone: WhatsApp screen with keyboard open, steps to remove keyboard autocorrect on iOS.
Tutorials

Turn off autocorrect NOW: write freely in 1 min ⏱️🔥

November 6, 2025
79
Steam Damaged Update Files - How to fix the Steam error "damaged/corrupted update files"; Steam logo on dark background, step-by-step guide and solution.
Tutorials

Steam Corrupted Update Files: Fix in 2 min ⏳

November 6, 2025
95
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

Do not miss the latest in technology and gaming.
Tips unique, practical guides and analysis every day.

Subscription Form
  • Trends
  • Comments
  • Last
How to add clock on the Windows desktop 11: ¡3 tricks infallible!

How to add clock on the Windows desktop 11: Get more in minutes! ⏱️

1 May 2025
How to save game in REPO

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

7 July 2025
12 Best Alternatives to Lucky this program for Android

Alternatives to Lucky this program: the 12 apps best and easy! 🎮⚡

13 November 2025
🖥️ How to open 'Devices and printers' in Windows 11: 4 simple steps

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

November 20, 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
Protect ZIP - Woman using a laptop to password-protect a compressed file, an example of how to protect a ZIP file with fast encryption and data security methods.

Protect ZIP files. The easiest way to secure your data today ⚡

November 26, 2025
Wolf Statues - Set of pink wolf statues glowing on pedestals in a ruined and vegetated area of ​​Doom, showing the location of all wolf statues in Doom The Ancient Gods.

Wolf Statues: A quick trick for 100% completion that few use ⚡🐺 in Doom: The Dark Ages

November 25, 2025
Background App Refresh. A young woman in a classroom is showing on her iPhone the "Background App Refresh" option enabled in the app settings.

Background Update Activate it well and speed up your iPhone 🚀

November 23, 2025
Restart Windows Explorer - Woman restarting Windows Explorer from Task Manager in Windows to fix system errors in seconds.

Restart Windows Explorer: A Quick Trick That Saves Your PC ⚡

November 21, 2025

Recent News

Protect ZIP - Woman using a laptop to password-protect a compressed file, an example of how to protect a ZIP file with fast encryption and data security methods.

Protect ZIP files. The easiest way to secure your data today ⚡

November 26, 2025
87
Wolf Statues - Set of pink wolf statues glowing on pedestals in a ruined and vegetated area of ​​Doom, showing the location of all wolf statues in Doom The Ancient Gods.

Wolf Statues: A quick trick for 100% completion that few use ⚡🐺 in Doom: The Dark Ages

November 25, 2025
67
Background App Refresh. A young woman in a classroom is showing on her iPhone the "Background App Refresh" option enabled in the app settings.

Background Update Activate it well and speed up your iPhone 🚀

November 23, 2025
84
Restart Windows Explorer - Woman restarting Windows Explorer from Task Manager in Windows to fix system errors in seconds.

Restart Windows Explorer: A Quick Trick That Saves Your PC ⚡

November 21, 2025
151
MasterTrend News 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
Add-as-a-preferred-source-on-Google

Recent News

Protect ZIP - Woman using a laptop to password-protect a compressed file, an example of how to protect a ZIP file with fast encryption and data security methods.

Protect ZIP files. The easiest way to secure your data today ⚡

November 26, 2025
Wolf Statues - Set of pink wolf statues glowing on pedestals in a ruined and vegetated area of ​​Doom, showing the location of all wolf statues in Doom The Ancient Gods.

Wolf Statues: A quick trick for 100% completion that few use ⚡🐺 in Doom: The Dark Ages

November 25, 2025
  • 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