Week 2 - Managing System Services Flashcards
What are daemons?
Background processes, or just called services
(doesn’t need active user input to run its service)
What are the commands to check if there’s an NTP daemon running on the machine in Linux? What about to stop, start, and restart the service? (4)
- service ntp status
- sudo service ntp stop
- sudo service ntp start
- sudo service ntp restart
Windows: How do you get the status of a running service?
Get-Service wuauserv
windows update service in this example
Windows: To get more information on a service (type, configuration)
Get-Service wuauserv | Format-List *
windows update service in this example
Windows: How to stop a service (admin)
Stop-Service wuauserv
windows update service in this example
Windows: How to start a service (admin)
Start-Service wuauserv
windows update service in this example
Windows: How to list all services that are registered in the system (admin)
Get-Service
windows update service in this example
For Linux, where are the configuration files for installed services stored?
/etc directory
(edit with a text editor)
For Windows, most of the configuration files for installed services are stored where?
In the registry
What is lftp?
An ftp client program that allows us to connect to a ftp server
How do you install a service on Linux?
sudo apt install servicename
How to query the status of a service in Linux?
service servicename status
How do you connect to an ftp server with the lftp client on Linux?
lftp localhost
How do you edit the configuration file for a service in Linux?
sudo vim /etc/vsftpd.config
the service is vsftpd (a simple FTP server)
What does it mean to reload a service? (Linux)
Reloading means the service re-reads the configuration file without having to stop/start and affecting ongoing connections
(useful when you make changes to the config file for a service that’s running)