Objectives 1.0 Hardware and System Configuration Flashcards
Describe the boot process
The Linux Boot process can be split into three main steps:
1) The BIOS or UEFI starts a bootloader program from the Master Boot Record, which is usually the Linux GRUB Legacy or GRUB2 program.
2) The bootloader program loads the Linux kernel into memory, which in turn looks for the init program to run.
3) The init program starts individual application programs and starts either the command-line terminals or the graphical desktop manager
What is GRUB?
GRUB stands for Grand Unified Bootloader
GRUB stores files in /boot/grub folder and uses the menu.lst or grub.conf configuration file to define commands used at boot time
difficult to modify
boot menu usually displays on boot
What is GRUB2?
Stored in /boot/grub
Uses grub.cfg
Customizable in /etc/default/grub
can boot iso, usb, UUID, device
grub2 has a hidden boot menu (press shift)
lsmod
show a list of statuses of modules in Linux Kernel
insmod
inserts module by path only
no dependencies
fail with no explanation
modprobe
inserts module just by name includes dependencies needs map
modinfo
shows information about a linux kernel module
dmesg
print or control the kernel ring buffer
rmmod
removes a module from the linux kernel
depmod
List modules dependencies and map files
Where are Linux Network Configuration files stored on Redhat?
/etc/sysconfig/network-scripts directory
Where are Linux Network Configuration files stored on openSUSE?
/etc/sysconfig/network
Where are Linux Network Configuration files stored on Debian based?
/etc/network/interfaces file
route
show / manipulates IP routing table
host
host is a simple DNS lookup utility. It is normally used to convert names to ip addresses and vice versa
ping
sends ICMP requests to network hosts. It works with both IPv4 and IPv6. Can be enforced by specifying -4 or -6
dig
dig is a DNS tool for interrogating DNS name servers. It performs DNS lookups and displays the answers that are returned from the name. Use dig to troubleshoot DNS problems
nslookup
nslookup is a program to query internet domain name servers. Has two modes: interactive and non-interactive
ip
shows/manipulates routing, devices, policy and routing tunnels
ethtool
query or control network driver and hardware settings
/etc/hosts
Before a DNS is queried it comes to this file
What is load balancing?
Network traffic is shared between two or more network interfaces
What is aggregation?
Two or more network interfaces are combined to create one larger network pipe
Active/passing
One network interface is live while the other is used as a backup for fault tolerance