1.4 Configure and use the appropriate processes and services Flashcards

1
Q

Systemctl command

A

Enables control of the systemd init daemon

enable {enable a service on boot}

disable {disable a service on boot}

mask { prevent provided unit file from being enabled or activated}

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

cron daemon

A

Used to manage scheduled tasks called cronjobs

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

crontab command

A

can create, view , and delete crontab files

-e{edit}
-l{view crontab for current user}
-r{delete crontab file}
-u{create crontab file for specific user}

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

at command

A

Schedules a command to run once at a particular time
-m{send mail}
-M{prevent mail from sending}
-f{read a job from a file}
-t{run job at specific time}

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

kill command

A

sends any specific signal to all processes matching the name specified.
-SIGKILL{kill the process immediately}
-SIGTERM {terminate a process}
-SIGHUP{send to a process when its controlling terminal is closed}

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

top command

A

Acts as a process management tool that allows for interactive process prioritization, sorting, or termination.

Shift+N{sort by decreasing order of PID}
-M{sort by memory usage}
-P{sort by CPU usage}
-u{display processes belonging to users}
-k{terminate the process specified}

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

ps command

A

Displays process table. (similar to tasklist).
a{list all user-triggered processes}
-e{list all processes}
-l{long-listing of processes}
-u{list processes along with username and start time}

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

lsof command

A

Prints a list of all the files currently opened to all active processes.

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

htop command

A

A newer version of an interactive monitor, process viewer, and process manager.

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

nice command

A

Runs a command with a different nice value than the default.
-n{increments nice value by an integer}

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

renice command

A

Alters the scheduling priority of an already running process.
-n{specifies the new nice value for a running process}
-g{alters the nice value of processes in a process group}
-u{alters the nice value of all the processes owned by the user}

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

Zombie process

A

A process was terminated but not yet released by its parent process so it cannot accept a kill signal.

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

Sleeping process

A

A process is waiting either to be reactivated by the scheduler or until the resource is available.

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

Stopped process

A

Process was stopped by a debugger or a kill signal.

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

bg command

A

bg%{job ID} - pushes a job to the background.

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

fg command

A

foreground
fg%{job ID} - brings a job to the foreground.

17
Q

jobs command

A

Lists out all jobs either in the foreground or background.

18
Q

CTRL+Z command

A

Stops a foreground job and places it in the background.

19
Q

CTRL+C command

A

Force quits a running program via the command line.

20
Q

CTRL+D command

A

Logs out of the current user session.

21
Q

pgrep command

A

Identifies a process based on multiple factors when the exact PID is not known.

22
Q

pkill command

A

Sends any specified signal to processes based on a matching pattern.

23
Q

pidof command

A

Finds the process ID of a named running program.