Linux Distributions: Red Hat & SUSE Families

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which of the following statements accurately reflects the relationship between CentOS Stream and RHEL?

  • CentOS Stream receives updates before RHEL. (correct)
  • RHEL and CentOS Stream receive updates simultaneously.
  • CentOS Stream receives updates after RHEL.
  • RHEL receives updates before CentOS Stream.

Which of the following package managers is used by the SUSE family of Linux distributions?

  • pacman
  • APT
  • rpm-based zypper (correct)
  • dpkg

What is the role of Debian in relation to Ubuntu and Linux Mint?

  • Debian is upstream for Ubuntu, which in turn is upstream for Linux Mint. (correct)
  • Debian, Ubuntu, and Linux Mint are independent distributions with no hierarchical relationship.
  • Debian is downstream from Ubuntu and Linux Mint.
  • Debian is upstream for both Ubuntu and Linux Mint.

Which of the following best describes the role of the Linux kernel?

<p>It is the core of the operating system, managing hardware interactions and resource allocation. (B)</p> Signup and view all the answers

Which of the following is the correct order of steps in the Linux boot process?

<p>BIOS -&gt; Boot Loader -&gt; Kernel -&gt; initramfs (D)</p> Signup and view all the answers

What is the primary function of the initramfs filesystem image during the Linux boot process?

<p>To mount the proper root filesystem and load necessary device drivers. (B)</p> Signup and view all the answers

What is the main advantage of systemd over older init methods like SysVinit?

<p>Systemd utilizes aggressive parallelization techniques for faster startup times. (A)</p> Signup and view all the answers

Which of the following commands is used to manage system services in a systemd-based Linux distribution?

<p>systemctl (B)</p> Signup and view all the answers

In the context of Linux filesystems, what does the term 'partition' refer to?

<p>A subsection of physical storage media where a filesystem resides. (B)</p> Signup and view all the answers

What is the purpose of a Kickstart, AutoYAST, or Preseed file in Linux installations?

<p>To specify installation options for unattended or automated installations. (A)</p> Signup and view all the answers

What is the primary function of a Display Manager in a Linux system?

<p>To keep track of displays, load the X server, and handle graphical logins. (D)</p> Signup and view all the answers

What is the role of the /etc/X11/xorg.conf file in a Linux system utilizing the X Window System?

<p>It serves as the configuration file for the X server, defining settings for graphics devices. (A)</p> Signup and view all the answers

What protocol is most commonly used for setting the local time on a Linux system via the internet?

<p>NTP (D)</p> Signup and view all the answers

What is the purpose of the Network Manager in Linux distributions?

<p>To simplify network configuration and management across different distributions. (D)</p> Signup and view all the answers

Which of the following is a key difference between dpkg and apt package management tools in Debian-based systems?

<p><code>apt</code> automatically resolves and installs dependencies, while <code>dpkg</code> does not. (C)</p> Signup and view all the answers

In the Red Hat family of distributions, what is the function of the dnf package manager?

<p>It is a higher-level tool used for resolving dependencies and installing packages. (C)</p> Signup and view all the answers

Which of the following statements is most accurate regarding the use of man pages in Linux?

<p>They provide in-depth documentation about programs, utilities, and system topics. (C)</p> Signup and view all the answers

When using the info command in Linux, what is a 'node'?

<p>A section or subsection within the documentation. (A)</p> Signup and view all the answers

When a process is described as being in a 'zombie' state, what does this typically indicate?

<p>The process has completed, but its parent has not yet acknowledged its termination. (C)</p> Signup and view all the answers

What is the significance of the PID 1 process in a Linux system?

<p>It represents the system initialization process (init or systemd). (D)</p> Signup and view all the answers

What is the purpose of the nice value associated with a process in Linux?

<p>To set the priority of a process, influencing its scheduling by the kernel. (A)</p> Signup and view all the answers

What does the term 'load average' represent in a Linux system?

<p>The average number of processes in a runnable or waiting state over a period of time. (B)</p> Signup and view all the answers

What is the purpose of piping (|) commands in the Linux command line?

<p>To redirect the output of one command as the input of another. (C)</p> Signup and view all the answers

What is the primary difference between the stream stdout and stderr?

<p><code>stdout</code> is where standard output is printed and <code>stderr</code> is where errors are printed. (A)</p> Signup and view all the answers

What command is used to provide a standard user with administrative (root) privileges for a specific command?

<p>sudo (D)</p> Signup and view all the answers

What is represented by the HOME environment variable?

<p>The current user's login directory. (A)</p> Signup and view all the answers

What is the purpose of the PATH environment variable in Linux?

<p>To list the directories where the system searches for executable programs. (C)</p> Signup and view all the answers

Which command is used to display the current user name?

<p>whoami (B)</p> Signup and view all the answers

What is the purpose of creating aliases in Linux?

<p>To create shortcuts or alternative names for commands. (D)</p> Signup and view all the answers

What is the effect of using the touch command on an existing file?

<p>It resets the file's timestamp to the current time. (B)</p> Signup and view all the answers

What is the main function of the cat command?

<p>View, create, or concatenate files. (B)</p> Signup and view all the answers

What is the purpose of using the sed command?

<p>To edit and manipulate text in files or streams. (A)</p> Signup and view all the answers

Which command is used to extract specific columns from a file?

<p>cut (C)</p> Signup and view all the answers

Which command is used to identify the differences between two files?

<p>diff (C)</p> Signup and view all the answers

Which of the following best describes the function of the rsync command?

<p>It's used to synchronize files and directories between locations efficiently. (D)</p> Signup and view all the answers

Which command is most frequently used as the Linux compression utility?

<p>gzip (B)</p> Signup and view all the answers

What is the purpose of a 'tarball'?

<p>It's an archive file created by the <code>tar</code> utility, often compressed. (C)</p> Signup and view all the answers

What is the primary purpose of the command dd?

<p>To make copies of raw disk space or convert file formats. (C)</p> Signup and view all the answers

Which command is used to display the IP address and subnet mask of a network interface?

<p>ip addr show (B)</p> Signup and view all the answers

Which command is used to test connectivity to a remote host?

<p>ping (B)</p> Signup and view all the answers

What is the purpose of using traceroute?

<p>To display the route that data packets take to reach a destination host. (C)</p> Signup and view all the answers

What is the function of netstat?

<p>It displays active network connections and routing tables for performance monitoring and troubleshooting. (A)</p> Signup and view all the answers

What is the function of the dig command?

<p>The <code>dig</code> command tests DNS workings and can be a replacement for host and nslookup (B)</p> Signup and view all the answers

Flashcards

Distro Families

Linux distributions categorized by base system and package management.

What is Linux?

An open-source OS, powering the internet's servers and many devices.

What is a Distribution?

Collection of software and programs making up a Linux-based OS.

Linux Kernel

The core of the OS; manages hardware and interacts with applications.

Signup and view all the flashcards

Boot Loader

Program booting the OS eg: GRUB and ISOLINUX

Signup and view all the flashcards

Service (in Linux)

Process running in background: httpd, nfsd, ntpd, ftpd, named.

Signup and view all the flashcards

Linux Filesystem

Method for storing/organizing files; examples: ext3, ext4, FAT, XFS.

Signup and view all the flashcards

Boot Process

Initializing the system; from power on to functional user interface.

Signup and view all the flashcards

What is BIOS?

x86 based Linux starts with which process?

Signup and view all the flashcards

What is Debian?

APT Package Manager is used for which distribution?

Signup and view all the flashcards

Initramfs

Initial RAM disk; contains programs to mount the root filesystem.

Signup and view all the flashcards

Systemd

Modern init system, faster startup, uses config files.

Signup and view all the flashcards

Systemctl

Command to start, stop, manage systemd services.

Signup and view all the flashcards

Linux Filesystem

Method of storing data; example: ext3, ext4, XFS, Btrfs.

Signup and view all the flashcards

Desktop Environment

Graphical interface on top of OS. Ex: GNOME, KDE, Xcfe, Fluxbox

Signup and view all the flashcards

System Settings

Tool for changing system settings.

Signup and view all the flashcards

Gnome Tweaks

Tool called either gnome-tweaks or gnome-tweak-tool

Signup and view all the flashcards

NTP (Network Time Protocol)

Most popular protocol; reliable for Network Time.

Signup and view all the flashcards

Network Manager

Network config tool; automatic settings, simplifies network.

Signup and view all the flashcards

DHCP

Automatically sets network via DHCP.

Signup and view all the flashcards

Debian Packaging

Used for systems such as Ubuntu.

Signup and view all the flashcards

APT

The higher-level package management system is the Advanced Package Tool (APT) system.

Signup and view all the flashcards

RPM (Red Hat Package Manager)

The main package in RPM is called

Signup and view all the flashcards

YaST

GUI to manage software in SUSE.

Signup and view all the flashcards

Email Applications

Tools for sending, recieving and reading emails

Signup and view all the flashcards

Cat

Short for concatenate. Is often used to read and print files.

Signup and view all the flashcards

Awk

Used to extract and then print file. Used construct reports

Signup and view all the flashcards

Sort

rearranges the lines of a text file, in either ascending or descending order

Signup and view all the flashcards

Split

To break up file into segments

Signup and view all the flashcards

Grep

is extensively used as a primary text searching tool.

Signup and view all the flashcards

tee

takes the output from any command and send to standard output.

Signup and view all the flashcards

Cron

Is a time-based scheduling utility program.

Signup and view all the flashcards

/bin

Contains executable binaries, essential commands to boot the system or in single-user mode

Signup and view all the flashcards

/etc

Is the home for system configuration files. It contains no binary programs

Signup and view all the flashcards

Mount

Commands used for mounting systems.

Signup and view all the flashcards

netstat

List all avialbe network

Signup and view all the flashcards

ping

tool used to check if remote host is online

Signup and view all the flashcards

trace

Is used to inspect the route data.

Signup and view all the flashcards

ssh

Secure Shell is cryptographic network protocol which is used for data communication.

Signup and view all the flashcards

Prompt

Is used to customize prompt string in your terminal windows.

Signup and view all the flashcards

Study Notes

Linux Foundation

  • The Linux kernel is at the core, and distros are built around it.
  • Key Distro Families: Debian, RHEL, SUSE
  • Key Individual Distros: Ubuntu, Linux Mint, CentOS, Fedora, openSUSE, SLES

Red Hat Family

  • Consists of RHEL, CentOS, CentOS Stream, Fedora, Oracle Linux.
  • Supports multiple hardware systems, used by enterprises hosting their own systems.
  • Fedora contains more software than RHEL and uses a more diverse community in building it.
  • Fedora serves as an upstream testing platform for future RHEL releases.
  • CentOS and CentOS Stream are no cost to end users with a longer release cycle than Fedora.
  • CentOS is virtually identical to RHEL.
  • CentOS Stream receives updates prior to RHEL, while CentOS is updated post RHEL.

SUSE Family

  • Consists of openSUSE and SLES.
  • openSUSE is a reference distribution available at no cost for end users.
  • SLES (SUSE Linux Enterprise Server) is upstream for the SUSE family, used in the retail sector.
  • RPM-based zypper package manager is used for installing, removing, as well as updating packages.
  • YaST (Yet Another Setup Tool) is used for administration.

Debian Family

  • Debian is upstream for distros like Ubuntu, which in turn is upstream for Linux Mint.
  • It is used in both server and desktop computers, with a focus on stability and open source.
  • It is also used for cloud deployments.
  • Debian has the largest and most complete software repository for its users.
  • Ubuntu balances stability and ease of use, drawing packages from the stable Debian branch.
  • It is built on Debian, uses GNOME under the hood, and differs visually from standard Debian.
  • Ubuntu uses the DPKG-based APT package manager for installing, removing, as well as updating packages.

Linux Philosophy and Concepts

  • Linux is an open-source OS developed for Intel x86-based personal computers and created by Linus Torvalds in 1991.
  • It was later ported to other hardware platforms.
  • It is re-licensed under the General Public License (GPL) by GNU.
  • Combining the kernel with other system components from the GNU project, developers created complete systems called Linux Distributions in the mid-90s.
  • Linux powers over 96% of the world's top web servers.
  • The majority of smartphones use Linux via the Android system.
  • Powers more than half of the servers on the Internet, more than 90% of the public cloud workload, and all of the world's most powerful supercomputers.
  • It is consistently enhanced and maintained by a global network of developers.
  • Technical skills, a desire to contribute, and the ability to collaborate are qualifications for participation.
  • Linux borrows heavily from UNIX, but was written as a free and open-source alternative.
  • In Linux, files are stored hierarchically, with the top node known as root or '/'.
  • Processes, devices, as well as network devices are represented as file-like objects.
  • Linux is a fully multitasking, multiuser OS with multiple built-in networking, as well as service processes called daemons.
  • The Linux community consists of developers, system administrators, users, and vendors who connect through various forums like IRC, online communities, GitHub, GitLab, newsgroups, and community events.

Terminology

  • Kernel is the glue between hardware and applications, acting as the brain of the OS, and can be found at kernel.org.
  • Distribution is a collection of software/programs making up Linux-based OS.
  • Boot Loader is a program that boots the OS (e.g., GRUB, ISOLINUX).
  • Service is a program running as a background process (e.g., httpd, nfsd, ntpd, ftpd, named).
  • Filesystem is a method for storing and organizing files (e.g., ext3, ext4, FAT, XFS, Btrfs).
  • X Window System provides the standard toolkit and protocol for building graphical user interfaces.
  • Desktop environment is a graphical user interface on top of OS (e.g., GNOME, KDE, Xfce, Fluxbox).
  • The Linux kernel is the core of the OS.
  • A full Linux distribution consists of the kernel plus software tools for file-related operations, user management, and software package management.
  • Distributions provide compilers, debuggers, system libraries, graphical interfaces, and systems for installing and updating components.

Boot Process

  • Procedure for initializing the system.
  • Includes everything from switching on the computer to when the user interface is fully operational.
  • BIOS (Basic Input/Output System) initializes the hardware and tests main memory, called POST (Power On Self Test).
  • System control then passes from the BIOS to the boot loader, stored on a hard disk or SSD drive in the boot sector or EFI partition.
  • Information on date, time, and peripherals are loaded from CMOS values.
  • Common Linux boot loaders are GRUB, ISOLINUX, and DAS U-Boot.
  • During Linux booting, the boot loader loads the kernel image and initial RAM disk into memory.
  • For BIOS/MBR systems, the boot loader resides in the Master Boot Record (MBR) and examines the partition table to find a bootable partition.
  • For EFI/UEFI systems, UEFI firmware reads Boot Manager data to determine which UEFI application to launch.
  • The second stage boot loader resides under /boot, loads the OS kernel into RAM, and passes control to it.
  • Kernels uncompress themselves, check hardware, and initialize device drivers.
  • Initramfs filesystem image contains programs, as well as binary files to mount the root filesystem.
  • It uses the udev system to locate device drivers.
  • After locating device drivers the root filesystem is checked, then mounted, and the initramfs is cleared from RAM.
  • The init program on the root filesystem (/sbin/init) is executed.
  • Default command shell - bash (GNU Bourne Again Shell).

Linux Kernel

  • Loaded to RAM by Boot loader, so that it can be directly used.
  • The kernel initializes and configures the memory and hardware attached.
  • Loads user space applications.

/sbin/init and Services

  • The process after kernel sets up hardware and root filesystems and runs /sbin/init and becomes initial process to start the system.
  • Most processes can trace back to init, except kernel processes started directly by kernel to manage internal OS details.
  • Init is responsible for keeping the system running and shutting it down cleanly. Manages all non-kernel processes, cleans up after them, does same for background system services.
  • Traditionally SysVinit was the process startup that uses conventions dated back to 1980s and System V Unix. Runs through runlevels with stopping and starting services.

Startup Alternatives

Upstart:

  • Developed by Ubuntu, first included in 2006
  • Adopted in Fedora 9(2008) and in RHEL 6 and its clones Systemd:
  • Adopted by Fedora first(in 2011)
  • Adopted by RHEL 7 and SUSE
  • Replaced Ubuntu in 16.04 Features of systemd:
  • Faster startup compared to older init methods by replacing serialized steps with parallelization.
  • Replaces shell scripts with simpler config files about service startup and conditions.
  • /sbin/init now points to /lib/systemd/systemd; so systemd takes over init process
  • Systemd command is systemctl for the most basic tasks:
  • Starting stopping, restarting services
  • Enabling or disabling services from starting at system boot
  • Checking status of service

Linux Filesystems

  • A method to organize arbitrary collections of data in a human-usable form.
  • Different types supported for Linux:Conventional disk filesystems(ext3, ext4, XFS, Btrfs, JFS, NTFS, vfat, exfat, etc.), flash storage systems(ubifs, jffs2, yaffs, etc.), database and special purpose filesystems(procfs, sysfs, tmpfs, squashfs, debugfs, fuse, etc.).
  • Partitions- subsection of physical storage media and container in which filesystem resides. Can span more than 1 partition using symbolic links.
  • Linux uses '/' character to separate paths, unlike windows that uses \ , and does not use drive letters

Filesystem Hierarchy Standard

  • /bin/ Essential user command binaries.
  • /boot/ Static files of the boot. loader.
  • /dev/ Device files.
  • /etc/ Host-specific system configuration.
  • /home/ User home directories.
  • /lib/ Essential shared libraries and kernel modules.
  • /media/ Mount point for removable media
  • /mnt/ Mount point for temporary mounted filesystems.
  • /opt/ Add-on application software packages.
  • /root/ is the Home directory for the root user.
  • /sbin/ contains System binaries.
  • /srv/ contains Data for services provided by this system.
  • /tmp/ contains Temporary files.
  • /usr/ contains Multi-user utilities, as well as applications
  • /var/ contains Variable files.
  • /proc/ Virtual filesystem documenting kernel and process status as text files
  • All Linux Filesystems are case sensitive
  • Core Utilities needed for system operations are placed in directories under /usr directory

Chosing Linux Distrobutions

  • Server (RHEL/CentOS, Ubuntu Server, SLES/OpenSuse)
  • Desktop(Ubuntu, Fedora, Debian, ArchLinux)
  • Embedded(Yocto, Open Embedded, Android)
  • Linux Distrobutions on removable media such as USB Drives, CDs or DVDs
  • Installation process uses configuration files to specify installation options
  • Kickstart file(RedHat)
  • AutoYAST(SUSE) -Preseed(Debian)

Graphical Interface

CLI vs GUI

  • CLI- uses programmed and commands, it is efficient and can quickly obtain more information
  • GUI- uses graphical icons and screens

Desktop Environment is a session manager that maintains components of graphical session, a window manager for placement, window title-bars and movement and forms one with utilities

  • Display manager started by running startx from command line, or manually like (gdm, kdm, xdm, etc)

X Window System

Loading the graphical desktop is the final step

  • Service called Display manager tracks displays and loads X Server Apps - X clients
  • A newer system, known as Wayland

GNOME- Desktop Environment with easy access GUI which has menu-based navigation

  • -KDE, Unity, XCFE are alternatives gdm for GNOME and kdm for KDE as default Display Managers
  • Tweaks- standard utility that allows installation by external parties with alt-f2 then typing in Keyboard Shortcuts, Locking- super+L or super +esc Viewing - Ctrl-1 and Ctrl-2 switches Icon and List formats, Ctrl-H shows Hidden files Open File Manager- type Nautilus
  • Can access a specific directory through Crtl-L
  • Text editors/viewers located in Accessories Submenu
  • System Settings allows control of basic configuration options

Installing and Updating Software

-Linux distribution in the Package provides one piece of the system, including linux kernel.

  • Debian pacakaging system(Ubuntu) RMPPacakkagi systems(Red hat)
  • Deb packagaingdpkg= package Manager where you can install, etc •Unlike higher-level package management systems, it does not automatically download and install packages and satisfy their dependencies

RPM Package Manager

  • RPM(Red hat package manager) -theother package mngmt system popular on Linux distribution and Fedora.
  • The higher level-package manager differs between distribution and Red Hat family distributions while SuSEFamily
  • The Linux allows users around the world to perform multiple tasks, such as searching for data, communicating through emails and online shopping, -Network applications that take advantage of the internet

web browsers

-Email, Streaming clients -Variety of web browsers both graphical and test base- the difference between and which one is which

Applications

 -Email Application, Sending, receiving and  reading message

• Most email clients use the Internet Message Access Protocol or the oder pop store Mail Store in remote -Many applications display HTML formatted emails Email app- ability of importing of address books

  • Graphial and tests and evolution to display emails

Common Apps

  • Other Graphic Utilities: Use of Filezilla, and Pidgin applications

  • productivity tools- Writer- word Processing, Calc - SpreadSheets, Impress = Presentation -draw- Create and edit graphics and diagrams

  • Multimedia Applications- sound Apps and Movie Apllications and MPlayer

###Command Line Operators

  • Advantage of command line operatos such ad not GUI is incurred in Virtualany and everything tasks -implemented Scripts or for often used to forget task and series of procedures -sign in to remoter machines over, the the internet

  • A terminal emulator program simulates standard alone terminals with a window on the Desktop example gnome Input Line- three elements- command option and argrument

Basic Command Like Utitliies

-Cat for Type outof a file to -Head and Taoil to show top and low lines of a file -.Man to Vew Documentation Sudo to provide user With Admin privileges when required

VIrtual Terminal

-VT are consol sessions, Entire display keyboard outside graphically environment and are called vt. and multiple terminals one remains visual

  • switch Vt press Ctrl + function and call to restart that press sudo terminal 5 Tacl to Took for Fies backward and lell used to vew file becaus of the paging

  • the opposites to tall if You want the last lines instead to view for files in order

Table: command line Utilies used to view file

_ Touch is often used to set and update access and change times of Files by Default

  • Standard File Stream
  • stdin keyboard stand and stderr
  • Pies if the one command to or program into another for in as import

Command

-the data it should complete before beging it from another data -and no seed to gave output

  • the core parts of Linux distributed and its addon software installed via Packagement System
  • packages can depend on each other
  • debilan use RPM as low packet

Chap 8: Finging Linux DOcumentation

  • linux systems draw from a large of Documentation and waus to getting Help
  • man pages are most often-used source of Linux Documentation with utilities.
  • The man program -list of page to see by topic and then list that discuss that specific title -viewers to pages and how they all work together Info-

GNU Info System

-which Preffere to alternative then Manuel and support linked subsection from resembles many was -topics help for all arguments. -the topic viewed in info pages is Node for view all sections and item from links

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

Use Quizgecko on...
Browser
Browser