Distributions And Bootup Flashcards

1
Q

What are the main three families of Linux distributions?

A
  • Red Hat Famility Systems (like CentOS or Fedora)
  • SUSE Family Systems (like openSUSE)
  • Debian Family Systems (like Ubuntu or Linux mint)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Name a few facts about the Red Hat Enterprise Linux family

A
  • Fedora serves as a upstream testing platform for RHEL
  • supports multiple hardware platforms
  • uses dnf, the rpm-based package manaer to install, update and remove packages in the system
  • widely used by enterprises which host their own systems
  • Kernel version 5.14 is used in RHEL/CentOS 9 Stream, 4.18 heavily patched in RHEL CentOS 8 Stream
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Name a few facts about the SUSE distribution family

A
  • Kernel version 5.14 used in openSUSE Leap 15.4
  • uses rpm-based zypper package manager to install, update and remove packages in the system
  • includes YaST (Yet Another Setup Tool) application for system administration purposes
  • widely used in retail and many other sectors
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Name a few facts about the Debian distribution family

A
  • is upstream for several other distributions
  • commonly used both on servers and desktop computers
  • pure open source community project
  • aims at good compromise between long term stability and ease of use
  • Kernel Version 5.19 in Ubuntu 22.04 LTS (long Term support)
  • widely used for cloud deployments
  • uses dpkg-based APT package manager
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does this term mean?
Kernel

A
  • brain of the linux Operating System
  • controls the hardware and makes it interact with the applications
  • glue between hardware and applications
  • example: Linux kernel
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does this term mean in Linux?
command line

A
  • interface for typing commands on top of the operating system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does this term mean?
distribution

A
  • collection of programs combined with the linux kernel
  • making up a Linux-based OS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does this term mean?
boot loader

A
  • program that boots the operating system
  • i.e: GRUB / ISOLINUX
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does this term mean in Linux?
service

A
  • program that runs as a background process
  • i.e.: httpd, nfsd, ntpd, ftpd, named
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does this term mean in Linux?
desktop environment

A
  • graphical user interface on top of OS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does this term mean in Linux?
X Window system

A
  • graphical subsystem on nearly all Linux systems
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does this term mean in Linux?
filesystem

A
  • method for storing and organizing files
  • i.e. ext3, ext4, FAT, XFS, NTFS; Btrfs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does this term mean in Linux?
shell

A
  • command line interpreter that interprets the command line input and instructs the OS to perform any necessary tasks and commands
  • i.e. bash, tcsh, zsh
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the steps of the Linux boot process?

A
  1. Power ON
  2. BIOS
  3. Master Boot Record (MRB) or EFI Partition
  4. Boot Loader (i.e. GRUB)
  5. Kernel
  6. Initial RAM disk -initramfs
  7. /sbin/init (parent process)
  8. Command Shell using getty
  9. Graphical User Interface (X Window or Wayland)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is part of the first steps?

A
  • Basic Input/Output System (BIOS) initializes the hardware
  • hardware includes: keyboard, screen, and tests the memory
  • also called POST (Power on Self Test)
  • after this remainder of the boot process is controlled by OS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Where is BIOS stored?

A
  • on read-only memory (ROM) chip on the motherboard
12
Q

What comes after POST in the boot process?

A
  • system control passes from BIOS to boot loader
  • machine does not access any mass storage media
  • information on date, time and most important peripherals are loaded from CMOS values
13
Q

Where is the boot loader stored?

A
  • usually stored on one of the systems storage devices (hard disk or ssd)
  • there either in the boot sector (for traditional BIOS/MBR (Master Boot Record) systems) or EFI partition (for more recent Extensible Firmware Interface systems EFI/UEFI)
14
Q

What is the boot loader responsible of when loading Linux?

A
  • loading the kernel image and initial RAM disk or filesystem (which contains some critical files and device drivers needed to start the system) into memory
15
Q

What happens in the first stage of the boot loader? (BIOS/MR)

A

Systems using BIOS/MBR:
- boot loader resides in first sector of hard disk, known als Master Boot Record (MBR)
- size of MBR is just 512 bytes
- boot loader examines partition table and find bootable partition
- once found, it then searches for the second stage boot loader, example GRUB, and loads it into RAM

16
Q

What happens in the first stage of the boot loader? (EFI/UEFI)

A
  • UEFI firmware reads its Boot manager data to determine which UEFI application is to be launched and from where (disk and partition)
  • firmware then launches the UEFI application (i.e. GRUB) as defined in boot entry in the firmware’s boot manager
  • more complicated but more versatile than the older MBR methods
17
Q

What happens in the second stage of the boot loader?

A
  • second stage boot loader resides under /boot
  • splash screen is displayed, which allows us to choose which OS and/or kernel to boot
  • after OS and kernel are selected, boot loader loads the kernel of the OS into RAM and passes control to it
  • kernels are almost always compressed, so first job is to uncompress themself
  • after this it will check and analyze the system hardware and initialize any hardware devices built into the kernel
18
Q

What does the initramfs filesystem image contain?

A
  • programs and binary files that peform all actions needed to mount the propert root filesystem
  • including providing the kernel functionality required for the specific filesystem that will be used
  • locating and loading the** device drivers **for mass storage controllers by using udev system
  • udev (user device) is responsible for figuring out which devices are present, locating the device drivers they need to operate properly and loading them
  • after the **filesystem **has been found, it is checked for errors and mounted
19
Q

What does the mount program do?

A
  • instructs the OS that a filesystem is ready for use and associates it with a particular point in the overall hierarchy of the filesystem (the mount point)
  • if this is successful, initramfs is cleared from RAM and init program on the root filesystem (/sbin/init) is executed
20
Q

What does init do? Initied by mount program.

A
  • handles mounting and pivoting over to the final real root filesystem
  • if special hardware drivers are needed before the mass storage can be accessed, they must be in the initramfs image
  • at the end of boot process, starts a number of text-mode login prompts
  • these enable you to type username, followed by password and to eventually get a command shell, not seen when running a system with a graphical login interface
21
Q

How can you access the terminals running command shells?

A
  • ALT+ function key (F1, F2)
  • ## with a graphical environment switching to a text console requires pressing CTRL + ALT + F7/F1
22
Q

What does bash stand for?

A
  • GNU Bourne Again Shell
23
Q
A