2015 Objective Updates Flashcards

1
Q

Upstart

A

A replacement daemon for the old SysVinit initialization program (For Debian/Ubuntu types)

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

/etc/init

A

Holds job configuration files

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

initctl list

A

List all jobs located in /etc/init

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

start jobname

A

starts a job (upstart)

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

stop jobname

A

stops a job (upstart)

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

restart jobname

A

restarts a job (upstart)

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

Systemd

A

A daemon that manages all other system daemons (For CentOS 7)

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

journald

A

Responsible for event logging in the system

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

journalctl

A

Used to query the coontents of the systemd journal

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

systemctl restart httpd.service

A

Restarts the service

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

systemctl enable httpd.service

A

Enable a service to start at boot time

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

systemctl stop httpd.service

A

Stop a service

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

systemctl isolate graphical.target

A

Moves into the graphical target

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

systemctl set-default graphical.target

A

Sets the default target to graphical.target

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

systemctl get-default

A

Tells you the current default target

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

System directory that contains the core system unit configuration files

A

/usr/lib/systemd/system

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

Custom configuration directory which is override by any matching configurations in the system unit configuration libraray

A

/etc/systemd/system

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

systemctl -t help

A

Display different unit types on the system

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

systemctl list-units –type=target | grep target

A

Overview of available targets

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

systemctl list-unit-files –type=target –all

A

Will show all targets, enabled and disabled

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

systemctl list-dependencies graphical.target

A

Will show the dependencies of the graphical target

22
Q

wall

A

Reads standard input to broadcast messages to all logged in users

23
Q

wall -n

A

Sends the broadcast without showing who the user is

24
Q

How many primary partitions can GBT based partitions have?

A

128

25
Q

How many primary partitions can MBR based partitions have?

A

4

26
Q

How large can GPT based partitions be?

A

8 ZiB

27
Q

How large can MBR based partitions be?

A

2 TiB

28
Q

What are two tools used to manage GPT based partition tables?

A

gdisk
and
parted

29
Q

screen

A

Will launch a new terminal screen on top of the other one

30
Q

screen -d

A

Starts in detached mode and forks a new process

31
Q

screen -S mysession

A

Starts a new session called mysession

32
Q

screen -x mysession

A

Attach to mysession

33
Q

screen -list

A

List all your current screens

34
Q

screen -r mysession

A

Reattach to mysession

35
Q

xz compression

A

Requires more memory during compression but has lower file size

36
Q

xz -z myfile

A

Will compress myfile

37
Q

xz -d myfile.xz

A

Decompresses myfile.xz

38
Q

xz -l myfile.xz

A

Shows info about myfile.xz

39
Q

How to compress a directory with xz

A

First use tar on the directory, then use xz to compress it

40
Q

pgrep -u username

A

List all process associated with a user

41
Q

pgrep -l -u username

A

List all processes associated with a user and display process name

42
Q

pkill -t ttyid

A

Kill all processes started from a specific terminal

43
Q

pgrep -v -u username

A

Show all processes that DO NOT belong to a user

44
Q

pgrep -n

A

Shows the PID of the most recently started process

45
Q

pgrep -l -u username sshd

A

Show all sshd processes associated with a user

46
Q

pkill httpd

A

Kill all httpd processes

47
Q

pkill -u username sshd

A

Kill all sshd processes for a specific user

48
Q

dmesg

A

Command used to view the kernel messages in the kernel ring buffer

49
Q

grub2-install /dev/device

A

Installs GRUB2 on device

50
Q

How to make the grub2 configuration file?

A

grub2-mkconfig > /boot/grub2/grub.cfg