Week 2 - Managing System Services Flashcards

1
Q

What are daemons?

A

Background processes, or just called services

(doesn’t need active user input to run its service)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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)

A
  1. service ntp status
  2. sudo service ntp stop
  3. sudo service ntp start
  4. sudo service ntp restart
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Windows: How do you get the status of a running service?

A

Get-Service wuauserv

windows update service in this example

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Windows: To get more information on a service (type, configuration)

A

Get-Service wuauserv | Format-List *

windows update service in this example

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Windows: How to stop a service (admin)

A

Stop-Service wuauserv

windows update service in this example

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Windows: How to start a service (admin)

A

Start-Service wuauserv

windows update service in this example

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Windows: How to list all services that are registered in the system (admin)

A

Get-Service

windows update service in this example

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

For Linux, where are the configuration files for installed services stored?

A

/etc directory

(edit with a text editor)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

For Windows, most of the configuration files for installed services are stored where?

A

In the registry

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is lftp?

A

An ftp client program that allows us to connect to a ftp server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you install a service on Linux?

A

sudo apt install servicename

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How to query the status of a service in Linux?

A

service servicename status

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you connect to an ftp server with the lftp client on Linux?

A

lftp localhost

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How do you edit the configuration file for a service in Linux?

A

sudo vim /etc/vsftpd.config

the service is vsftpd (a simple FTP server)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does it mean to reload a service? (Linux)

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Internet Information Services?

A

the feature offered by Windows to serve web pages