Linux Config Files Flashcards
Where do you go to modify DNS server
/etc/resolv.conf
Where is the hosts file
/etc/hosts
Where is your personal profile file
/home/USERNAME/.profile
Where do you go to change your umask value
edit the file /home/USERNAME/.profile
Where would you find the grub config pointer file
/boot/efi/EFI/grub.cfg
File can be in many places
BIOS: boot/grub/grub.cfg
UEFI: boot/efi/EFI/DISTRO/grub.cfg
Where would you find boot logging?
dmesg
Or
syslog/journalctl
A Rhel env might use msg
How would you find out what’s slowing the boot process?
sudo systemd-analyze blame
How would you view all the system ‘tuneables’?
sysctl -a
What is nmcli?
Network Manager Command Line Interface
How would you modify the initrd file and create a new initrdRAM (after installing new hardware required by boot process)
mkinitrd on RHEL
mkinitramfs on Deb
How to view Xorg error log
journalctl /usr/bin/Xorg
Where would the Xorg configuration file be (only there if it’s got issues) (2 places)
/etc/x11/Xorg.conf
Otherwise try
/usr/share/X11/xorg.conf.d/
How to access ntp configuration?
Sudoedit etc/ntp.conf