The output should look something like below indicating that Samba service is active and running: Install the Samba package with the following command: sudo apt install samba; Once the installation is completed, the Samba service will start automatically. service --status-all | grep '\[ - \]' The service command can be used to list services in all Ubuntu releases, including (Ubuntu 17, 16.04, and 14.04). To check whether the Samba server is running, type: sudo systemctl status smbd. Not to mention a Linux operating system which in this context it is a Linux Ubuntu 18.04. Since Ubuntu 15, the services are managed by the systemd. List Services with systemctl command. This command references a service by using its init script, which is stored in the /etc/init.d directory for Debian®-based distributions and …

It is a simple article showing how to check the status of a certain service in Linux Ubuntu 18.04. Basically, there are lots of services available in an operating system. Before we start, I will show you how to get a list of all the services on your computer as we need to know the service name to manage the service.It will show a complete list of services on Ubuntu. Be sure to check it and in Ubuntu Linux operating system, it can be done by using ‘apt’ command which can be read in the article about ‘List Installed Program in Ubuntu Linux using apt command’, if the operating system used is Ubuntu or any variant of Debian operating system distribution.

There are several steps for checking the status of a specific service. If the service has an initialization (init) script installed, you can use the service command to start, stop, and check the status of the service.