How to view status of a service on Linux using systemctl

How to view status of a service on Linux using systemctl

How do I use the to view status of a systemd service on Linux operating systems?We use systemctl status command under systemd to view the status of the given service on Linux operating systems.

How do I use the systemctl command to view status of a systemd service on Linux operating systems?

We use systemctl status  command under systemd  to view the status of the given service on Linux operating systems.

Viewing the Status of a Service

The syntax is as follows for the systemctl command

systemctl status {service-name}

systemctl status {unit-name}

How to view status of a service called nginx

Type:

$ systemctl status nginx.service

## ssh server status ##

$ systemctl status sshd.service

## Lighttpd web server status ##

$ systemctl status lighttpd.service

● lighttpd.service - Lighttpd Daemon
     Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2020-08-04 04:29:19 UTC; 3 weeks 2 days ago
   Main PID: 105 (lighttpd)
      Tasks: 1 (limit: 115783)
     Memory: 56.5M
     CGroup: /system.slice/lighttpd.service
             └─105 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf

Aug 04 04:29:19 utls-bash-wiki systemd[1]: Starting Lighttpd Daemon...
Aug 04 04:29:19 utls-bash-wiki systemd[1]: Started Lighttpd Daemon.

linux systemctl

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Hire Dedicated Linux Developer

Looking to develop real-time applications? **[Hire Dedicated Linux Developer](https://hourlydeveloper.io/hire-dedicated-linux-developer/ "Hire Dedicated Linux Developer")** from **[HourlyDeveloper.io](https://hourlydeveloper.io/...

How I Switched from Windows 10 to Linux Mint

This article is all about my journey on switching from Windows 10 to Linux Mint 20, how I got easily adapted to the Linux environment, and some resources that helped me to set up a perfect Desktop environment.

User Administration in Linux - Linux Tutorial - Linux Training

User Administration in Linux - Linux Tutorial - Linux Training

Package Management in Linux - Linux Tutorial - Linux Training

Package Management in Linux - Linux Tutorial - Linux Training

Linux Administration Tutorial | Linux Tutorial | Linux Course | Intellipaat

🔵 Intellipaat Linux Course: https://intellipaat.com/linux-training/In this Linux Administration Tutorial video, you will learn what is Linux, how to instal...