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?

25
How many primary partitions can MBR based partitions have?
4
26
How large can GPT based partitions be?
8 ZiB
27
How large can MBR based partitions be?
2 TiB
28
What are two tools used to manage GPT based partition tables?
gdisk and parted
29
screen
Will launch a new terminal screen on top of the other one
30
screen -d
Starts in detached mode and forks a new process
31
screen -S mysession
Starts a new session called mysession
32
screen -x mysession
Attach to mysession
33
screen -list
List all your current screens
34
screen -r mysession
Reattach to mysession
35
xz compression
Requires more memory during compression but has lower file size
36
xz -z myfile
Will compress myfile
37
xz -d myfile.xz
Decompresses myfile.xz
38
xz -l myfile.xz
Shows info about myfile.xz
39
How to compress a directory with xz
First use tar on the directory, then use xz to compress it
40
pgrep -u username
List all process associated with a user
41
pgrep -l -u username
List all processes associated with a user and display process name
42
pkill -t ttyid
Kill all processes started from a specific terminal
43
pgrep -v -u username
Show all processes that DO NOT belong to a user
44
pgrep -n
Shows the PID of the most recently started process
45
pgrep -l -u username sshd
Show all sshd processes associated with a user
46
pkill httpd
Kill all httpd processes
47
pkill -u username sshd
Kill all sshd processes for a specific user
48
dmesg
Command used to view the kernel messages in the kernel ring buffer
49
grub2-install /dev/device
Installs GRUB2 on device
50
How to make the grub2 configuration file?
grub2-mkconfig > /boot/grub2/grub.cfg