Linux Config Files Flashcards

1
Q

Where do you go to modify DNS server

A

/etc/resolv.conf

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

Where is the hosts file

A

/etc/hosts

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

Where is your personal profile file

A

/home/USERNAME/.profile

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

Where do you go to change your umask value

A

edit the file /home/USERNAME/.profile

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

Where would you find the grub config pointer file

A

/boot/efi/EFI/grub.cfg

File can be in many places
BIOS: boot/grub/grub.cfg
UEFI: boot/efi/EFI/DISTRO/grub.cfg

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

Where would you find boot logging?

A

dmesg
Or
syslog/journalctl
A Rhel env might use msg

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

How would you find out what’s slowing the boot process?

A

sudo systemd-analyze blame

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

How would you view all the system ‘tuneables’?

A

sysctl -a

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

What is nmcli?

A

Network Manager Command Line Interface

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

How would you modify the initrd file and create a new initrdRAM (after installing new hardware required by boot process)

A

mkinitrd on RHEL
mkinitramfs on Deb

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

How to view Xorg error log

A

journalctl /usr/bin/Xorg

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

Where would the Xorg configuration file be (only there if it’s got issues) (2 places)

A

/etc/x11/Xorg.conf

Otherwise try
/usr/share/X11/xorg.conf.d/

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

How to access ntp configuration?

A

Sudoedit etc/ntp.conf

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