Podcast
Questions and Answers
What is the primary function of the GNU info
pages in Linux?
What is the primary function of the GNU info
pages in Linux?
- To manage user accounts and permissions.
- To replace the `man` command as the primary help system. (correct)
- To display system logs and error messages.
- To provide a graphical user interface for system configuration.
Which command is used to cancel a scheduled shutdown in Linux?
Which command is used to cancel a scheduled shutdown in Linux?
- `shutdown -c` (correct)
- `shutdown -x`
- `shutdown -k`
- `shutdown -a`
What is the potential consequence of directly powering off a Linux computer without using the shutdown command?
What is the potential consequence of directly powering off a Linux computer without using the shutdown command?
- It might result in damaged user and system files. (correct)
- It automatically initiates a system backup.
- It has no impact as the OS automatically saves all data.
- It improves system performance due to immediate cessation of processes.
What is the key distinction between the halt
and poweroff
commands in Linux?
What is the key distinction between the halt
and poweroff
commands in Linux?
Consider a scenario where you need to schedule a system reboot for 3 minutes from now. Which command would achieve this, ensuring that all users receive a warning message?
Consider a scenario where you need to schedule a system reboot for 3 minutes from now. Which command would achieve this, ensuring that all users receive a warning message?
What type of file is typically downloaded to install Linux as a virtual machine?
What type of file is typically downloaded to install Linux as a virtual machine?
After specifying the ISO image in virtualization software, what action does the software typically perform?
After specifying the ISO image in virtualization software, what action does the software typically perform?
Which of the following represents a general stage in the installation program for Fedora 28 Linux?
Which of the following represents a general stage in the installation program for Fedora 28 Linux?
What is the initial prompt typically presented when booting from Fedora installation media?
What is the initial prompt typically presented when booting from Fedora installation media?
Which of the following filesystems is known for keeping track of information written to the hard drive?
Which of the following filesystems is known for keeping track of information written to the hard drive?
If the 'troubleshooting' option is selected during Fedora installation, which of the following is NOT a typical option presented?
If the 'troubleshooting' option is selected during Fedora installation, which of the following is NOT a typical option presented?
During the Fedora 28 installation process, after choosing the installation language, what is a subsequent key step involving system configuration?
During the Fedora 28 installation process, after choosing the installation language, what is a subsequent key step involving system configuration?
During Linux installation, what choice does the installation program prompt you to choose regarding partitioning?
During Linux installation, what choice does the installation program prompt you to choose regarding partitioning?
A system administrator is preparing to deploy several virtual machines running Linux on a hypervisor. They are concerned about ensuring each VM has a consistent and verifiable installation source. Which of the strategies below provides the strongest guarantee of source integrity and consistency across all deployed VMs?
A system administrator is preparing to deploy several virtual machines running Linux on a hypervisor. They are concerned about ensuring each VM has a consistent and verifiable installation source. Which of the strategies below provides the strongest guarantee of source integrity and consistency across all deployed VMs?
Which of the following is a benefit of using a standard partition scheme (instead of LVM) for system recovery?
Which of the following is a benefit of using a standard partition scheme (instead of LVM) for system recovery?
What is the primary function of the 'root' account in a Linux system?
What is the primary function of the 'root' account in a Linux system?
Besides command execution and obtaining online help, what other basic task is essential for a Linux user to understand?
Besides command execution and obtaining online help, what other basic task is essential for a Linux user to understand?
Which filesystem type is known for its scalability and performance, often favored in enterprise environments?
Which filesystem type is known for its scalability and performance, often favored in enterprise environments?
Why might an administrator choose LVM (Logical Volume Manager) over standard partitions?
Why might an administrator choose LVM (Logical Volume Manager) over standard partitions?
A user reports being unable to install a particular software package. What is the MOST likely reason, based solely on the information provided?
A user reports being unable to install a particular software package. What is the MOST likely reason, based solely on the information provided?
Consider a scenario where a system administrator needs full control
over disk partitioning schemes while also ensuring data integrity. Which combination of partitioning and filesystem choices would provide the MOST granular control and journaling capabilities?
Consider a scenario where a system administrator needs full control
over disk partitioning schemes while also ensuring data integrity. Which combination of partitioning and filesystem choices would provide the MOST granular control and journaling capabilities?
An advanced Linux system administrator is tasked with setting up a server that requires both flexible storage allocation and the ability to create snapshots for easy rollback in case of system failures. The administrator also wants to ensure that the filesystem used supports copy-on-write functionality for efficient use of storage space when creating these snapshots. Based on the information, which combination of technologies would be MOST suitable?
An advanced Linux system administrator is tasked with setting up a server that requires both flexible storage allocation and the ability to create snapshots for easy rollback in case of system failures. The administrator also wants to ensure that the filesystem used supports copy-on-write functionality for efficient use of storage space when creating these snapshots. Based on the information, which combination of technologies would be MOST suitable?
What is the typical initial step after booting a Fedora Live system to install it permanently?
What is the typical initial step after booting a Fedora Live system to install it permanently?
Which protocol is commonly used to automatically configure the network interface during a Fedora Linux installation?
Which protocol is commonly used to automatically configure the network interface during a Fedora Linux installation?
Before proceeding with the installation, what crucial step must a user perform regarding the installation destination?
Before proceeding with the installation, what crucial step must a user perform regarding the installation destination?
Which of the following storage device types is NOT typically used for installing a Linux OS?
Which of the following storage device types is NOT typically used for installing a Linux OS?
In a Fedora installation with internet connectivity, how are the date and time typically configured by default?
In a Fedora installation with internet connectivity, how are the date and time typically configured by default?
What is the implication of choosing 'Start Fedora-Workstation-Live' instead of directly proceeding to installation troubleshooting options?
What is the implication of choosing 'Start Fedora-Workstation-Live' instead of directly proceeding to installation troubleshooting options?
Given a system with both an NVMe SSD and a SATA HDD, and aiming for optimal performance for the Linux OS, which storage device should be selected as the installation destination?
Given a system with both an NVMe SSD and a SATA HDD, and aiming for optimal performance for the Linux OS, which storage device should be selected as the installation destination?
Consider a scenario where the DHCP configuration fails during the Fedora installation. What would be the most likely consequence?
Consider a scenario where the DHCP configuration fails during the Fedora installation. What would be the most likely consequence?
During a Fedora installation on a system with multiple storage devices (SATA HDD, SATA SSD, and NVMe SSD), what considerations are most critical when deciding where to install /boot
, /
, and /home
?
During a Fedora installation on a system with multiple storage devices (SATA HDD, SATA SSD, and NVMe SSD), what considerations are most critical when deciding where to install /boot
, /
, and /home
?
What is the primary function of a shell in a Linux system?
What is the primary function of a shell in a Linux system?
Which key combination is typically used to switch to a separate terminal from the local server in Linux?
Which key combination is typically used to switch to a separate terminal from the local server in Linux?
What is the significance of the '#' prompt in the Linux command line?
What is the significance of the '#' prompt in the Linux command line?
In the context of shell commands, what is the purpose of an 'option'?
In the context of shell commands, what is the purpose of an 'option'?
What distinguishes arguments from options in Linux shell commands?
What distinguishes arguments from options in Linux shell commands?
What is the default shell in Linux?
What is the default shell in Linux?
What is a 'terminal' in the context of Linux systems?
What is a 'terminal' in the context of Linux systems?
Which of the following statements accurately describes the relationship between the shell, terminal, and kernel in a Linux system?
Which of the following statements accurately describes the relationship between the shell, terminal, and kernel in a Linux system?
You are logged into a Linux system via the command line. After executing a command, you notice the prompt is '>'. What does this likely indicate?
You are logged into a Linux system via the command line. After executing a command, you notice the prompt is '>'. What does this likely indicate?
Consider a scenario where a user enters the command ls -l *.txt
. Deconstruct precisely what each component signifies to the shell. What is the most accurate interpretation?
Consider a scenario where a user enters the command ls -l *.txt
. Deconstruct precisely what each component signifies to the shell. What is the most accurate interpretation?
Flashcards
Installing Linux as a VM
Installing Linux as a VM
Download the ISO image to the host, open virtualization software, create a new VM, and specify the ISO location.
Fedora Installation Stages
Fedora Installation Stages
Language, localization, disk partitions, file systems, and user accounts.
Boot Options (Fedora)
Boot Options (Fedora)
Start installation or troubleshoot.
Basic Graphics Mode
Basic Graphics Mode
Signup and view all the flashcards
Run a Memory Test
Run a Memory Test
Signup and view all the flashcards
Boot from Local Drive
Boot from Local Drive
Signup and view all the flashcards
Return to Main Menu
Return to Main Menu
Signup and view all the flashcards
Start Fedora-Workstation-Live
Start Fedora-Workstation-Live
Signup and view all the flashcards
Install to Hard Drive
Install to Hard Drive
Signup and view all the flashcards
Fedora Installation Program
Fedora Installation Program
Signup and view all the flashcards
Installation Language
Installation Language
Signup and view all the flashcards
DHCP
DHCP
Signup and view all the flashcards
Installation Destination
Installation Destination
Signup and view all the flashcards
Hard Disk
Hard Disk
Signup and view all the flashcards
Parallel Advanced Technology Attachment (PATA)
Parallel Advanced Technology Attachment (PATA)
Signup and view all the flashcards
Serial Advanced Technology Attachment (SATA)
Serial Advanced Technology Attachment (SATA)
Signup and view all the flashcards
GNU info pages
GNU info pages
Signup and view all the flashcards
shutdown command
shutdown command
Signup and view all the flashcards
shutdown -P +4
shutdown -P +4
Signup and view all the flashcards
shutdown -P now
shutdown -P now
Signup and view all the flashcards
halt command
halt command
Signup and view all the flashcards
Terminal
Terminal
Signup and view all the flashcards
Shell
Shell
Signup and view all the flashcards
BASH Shell
BASH Shell
Signup and view all the flashcards
GUI Environment
GUI Environment
Signup and view all the flashcards
Ctrl+Alt+F2
Ctrl+Alt+F2
Signup and view all the flashcards
Root User Prompt
Root User Prompt
Signup and view all the flashcards
Regular User Prompt
Regular User Prompt
Signup and view all the flashcards
GNOME
GNOME
Signup and view all the flashcards
Command
Command
Signup and view all the flashcards
Options
Options
Signup and view all the flashcards
Linux Filesystem Types
Linux Filesystem Types
Signup and view all the flashcards
Journaling (Filesystems)
Journaling (Filesystems)
Signup and view all the flashcards
Installation Partitioning
Installation Partitioning
Signup and view all the flashcards
Logical Volume Manager (LVM)
Logical Volume Manager (LVM)
Signup and view all the flashcards
B-tree Filesystem (BTRFS)
B-tree Filesystem (BTRFS)
Signup and view all the flashcards
System Recovery
System Recovery
Signup and view all the flashcards
Authentication
Authentication
Signup and view all the flashcards
Administrator Account (root)
Administrator Account (root)
Signup and view all the flashcards
Regular User Account
Regular User Account
Signup and view all the flashcards
Basic Linux Tasks
Basic Linux Tasks
Signup and view all the flashcards
Study Notes
Linux Installation and Usage
- After completing this chapter, you will be able to:
- Prepare for and install Fedora Linux using good practices
- Outline the structure of the Linux interface
- Enter basic shell commands and find command documentation
- Properly shut down the Linux operating system
- Prepare for and install Fedora Linux using good practices
Installing Linux
- OSs require a minimum set of hardware components to function properly
- This information can be found in the manual, a file on the OS DVD, or on the vendor's website
- Each component should be checked against the Hardware Compatibility List (HCL) on the vendor's website
Fedora 28 Minimum Hardware Requirements:
- CPU: 1GHz or faster Intel x64 CPU
- RAM: 1GB
- Free disk space: 10GB
- Additional drive: DVD drive for DVD-based installation
- Peripheral devices: Fedora-compliant peripherals
Installation Media
- The most common source for Linux packages and the installation program is DVD media
- To install from DVD, place the Linux DVD in the DVD drive and turn on the computer
- Most Linux distributions offer downloadable DVD images (ISO images) on their websites
- These images can be written to blank writable DVDs using disc burning software
- Many Linux websites also allow the download of bootable live media DVD images
- A fully functional graphical of Linux OS is loaded into RAM
- A live image tests the OS on your computer to ensure all hardware drivers are detected properly
- Linux can be installed by imaging the DVD or live media DVD image to a USB flash drive
- Virtualization software is used to run an OS within an existing OS concurrently
- Examples include Microsoft Hyper-V, VMWare, and Oracle VM VirtualBox
- Virtual machine (VM): each OS that is run within virtualization software
- Virtual machine host (VM host): underlying OS running the virtualization software
- To install Linux as a VM:
- Download the standard DVD or live media DVD ISO image to a directory on your VM host
- Open virtualization software and select create a new virtual machine
- Specify the location of the appropriate ISO image
- Virtualization software will boot directly from the ISO image
Performing Installation
- General installation stages for Fedora 28 Linux entail: starting the installation
- Choosing an installation language in addition to localization and system options
- Configuring disk partitions and filesystems
- Configuring user accounts
- Boot from Fedora installation media
- A prompt to start the installations should appear
- Troubleshooting actions can also be performed to fix any potential issues
- If the troubleshooting option is selected then there will be four additional options
- Start Fedora-Workstation-Live 28 in basic graphics mode
- Run a memory test
- Boot from local drive
- Return to main menu
- In most cases, the troubleshooting options are not necessary when installing Fedora Linux
- Simply select Start Fedora-Workstation-Live 28 to start a live Fedora system
- Upon loading, a welcome screen prompting to install Fedora Linux on permanent storage will show
- Select Install to Hard Drive and the Fedora installation program starts
Choosing an Installation Language/Localization and System Options:
- You will be prompted to choose an installation language
- Keyboard model and layout are automatically detected
- The network interfaces are set to obtain network configurations automatically using the DHCP protocol
- Date and time are automatically obtained from the internet if the network has a connection
- An installation destination must be manually selected prior to the commencement of the installation
- A permanent storage device that will contain the Linux OS must be selected
- Most common storage devices for storing Linux OS are hard disks such as:
- Parallel Advanced Technology Attachment (PATA)
- Serial Advanced Technology Attachment (SATA)
- Non-Volatile Memory Express (NVMe)
- Small Computer Systems Interface (SCSI)
- Serial Attached SCSI (SAS)
- Selecting the Installation Destination icon presents a list of different permanent storage devices
- If there are multiple devices you can pick which one to install Linux on
- Linux can also be installed on an external iSCSI or FCoE Storage Area Network (SAN), Direct Access Storage Device (DASD), Multipath IO (MPIO), or firmware Redundant Array of Inexpensive Disks (RAID)
Configuring Disk Partitions and Filesystems
- Each hard disk is divided into partitions
- Partitions are formatted with filesystems and filesystems specify structure on how data should reside on the hard disk
- Maximum four primary partitions
- Extended partition can be divided into logical drives
- Master boot record (MBR) is the table of all partition information for a certain hard disk or SSD
- Filesystems can be accessed by Linux if it is attached (mounted) to a certain directory
- The Fedora installation program can automatically create partitions
- Manually partitioning is good practice
- Linux requires two partitions
- A partition mounted to the root directory
- A partition for virtual memory (swap memory): Area on hard disk used to store information normally residing in physical memory (RAM)
- Different file systems include Ext2, Ext3, Ext4, VFAT, and XFS
- Journaling keeps track of the information written to the hard drive
- Selecting an installation destination means that the installation program will prompt to choose an automatic or custom partitioning
- Instead of standard partitions, choose a partition scheme that creates logical volumes
-Use the Logical Volume Manager (LVM)
- Support the new B-tree Filesystem (BTRFS)
- Easier system recovery can be achieved when selecting a standard partition scheme
Configuring User Accounts
- Authentication requires:
- Users to log in via valid user name and password
- Two user accounts should be configured:
- Administrator account (root): full rights to system
- Regular user account: system administration tasks
Basic Linux Usage
- Consists of different types of user interfaces that are essential to understand
- Basic tasks include command Execution
- Obtaining online help
- Shutting down the Linux system
Shells, Terminals & Kernel
- Terminal: channel allowing users to log on to the kernel locally or across a network
- Shell: user interface which accepts user inputs and transfers them to the kernel
- BASH Shell (Bourne Again Shell): default Linux shell
- Linux can have many terminals that allow logging in to the computer locally or across a network
- Graphical user interface
- Start GUI environment on top of BASH shell
- Switch to a graphical terminal
- From the local server, use key combinations to change to separate terminal
- Can use Ctrl+Alt+F2
- Command line prompt reflects the type of user; “#” reflects root and “$” reflects regular user
- Default GUI environment in Fedora Linux is GNOME
- The command-line terminal can be accessed through the Activities menu in the upper left of the desktop
- Navigate to Show Applications, Utilities, Terminal
Basic Shell Commands
- Commands indicate the name of the program to be executed and are case sensitive
- Options are specific letters starting with a dash "-" that appear after command name
- Options alter how a command works
- Arguments specify the command's specific working parameters
- Arguments do not start with a dash
Shell Metacharacters
- Keyboard characters with special meaning:
- A $ tells the shell that the following text refers to a variable
- Avoid the use of metacharacters unless using their special functionality
- Single quotation marks '' protect metacharacters from being interpreted specially by the shell
Getting command help
- Manual (man) pages: most common documentation for Linux commands
- At the command prompt, type man command followed by command name
- Manual pages
- Contain different sections
- Section numbers describe the category of the command in the manual page database
- Searchable by keyword
- GNU info Pages
- Originally intended to replace the man command in Linux
- At the command prompt, type info command followed by command name
- Certain commands do not have manual or info pages
- Those that are built into the BASH shell
- Originally intended to replace the man command in Linux
Shutting Down Linux
- The OS handles writing data from computer memory to the disk drives
- Simply turning off power to the computer is not recommended as it can cause user and system file damage
- Shutdown command
- Can halt or reboot your computer after a certain period of time
Useful Shutdown Commands:
- shutdown –P +4: Powers off your system in four minutes
- shutdown –H +4: Halts the operating system in four minutes but does not invoke the ACPI function
- shutdown -r +4: Reboots your system in four minutes
- shutdown -P now: Powers off your system immediately
- shutdown -r now: Reboots your system immediately
- shutdown -c: Cancels a scheduled shutdown
- halt: Halts your system immediately, but does not power it off
- poweroff: Powers off your system immediately
- reboot: Reboots your system immediately
Summary
- Installation requires the verification of hardware requirements and compatibility
- Linux installation media are available as an ISO image from the Internet
- Typical Linux installation prompts for language, Date, Time zone, keyboard layout, network, user account and permanent storage configurations
- Users must log in to a terminal and receive a shell before they are able to interact with the Linux system and kernel
- Use command prompts to perform system tasks, obtain help manuals, and shut down the Linux system
- The shell understands special shell metacharacters and arguments, and is case sensitive.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.