Introduction to Linux Fundamentals

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

What is the default Linux shell called?

  • C Shell
  • Korn Shell
  • Z Shell
  • BASH Shell (correct)

What is the role of the shell?

  • To handle network connections
  • To control hardware devices
  • To manage the file system
  • To provide a user interface and pass inputs to the kernel (correct)

What does a terminal provide to users?

  • A graphical interface
  • Access to system logs
  • A direct connection to hardware
  • A channel to log on to the kernel (correct)

Which key combination typically switches to a separate terminal from the local server?

<p>Ctrl+Alt+F2 (C)</p> Signup and view all the answers

What character typically indicates the root user's command-line prompt?

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

What character typically indicates a regular user's command-line prompt?

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

In Linux commands, what is indicated by a dash (-) before a letter?

<p>An option (A)</p> Signup and view all the answers

What are arguments in Linux commands?

<p>Specific working parameters for a command (A)</p> Signup and view all the answers

Which of the following is a type of filesystem?

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

What does journaling in a filesystem do?

<p>Keeps track of information written to the hard drive (A)</p> Signup and view all the answers

What is the purpose of the root account?

<p>Has full rights to the system (A)</p> Signup and view all the answers

What is LVM?

<p>Logical Volume Manager (C)</p> Signup and view all the answers

What is required for users to log in?

<p>Valid username and password (B)</p> Signup and view all the answers

BTRFS is what type of filesystem?

<p>B-tree (C)</p> Signup and view all the answers

After selecting an installation destination, what does the installation program prompt?

<p>Automatic or custom partitioning scheme (C)</p> Signup and view all the answers

Which of the following is a basic Linux usage task?

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

What is the purpose of a regular user account?

<p>System administration tasks (B)</p> Signup and view all the answers

Why choose a standard partition scheme?

<p>Easier system recovery (C)</p> Signup and view all the answers

What does the $ metacharacter indicate to the shell?

<p>The following text refers to a variable. (B)</p> Signup and view all the answers

Which characters protect metacharacters from interpretation by the shell?

<p>Single quotation marks (D)</p> Signup and view all the answers

What is the most common form of documentation for Linux commands?

<p>Manual pages (A)</p> Signup and view all the answers

How do you access the manual page for a command?

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

What do the section numbers in manual pages describe?

<p>The category of the command. (B)</p> Signup and view all the answers

Which manual page section contains commands that any user can execute?

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

Which manual page section describes Linux system calls?

<p>Section 2 (A)</p> Signup and view all the answers

What type of content is found in manual page section 5?

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

Which manual page section includes commands that only the root user can execute?

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

What kind of routines are described in manual page section 9?

<p>Linux kernel routines (B)</p> Signup and view all the answers

Which command is used to access GNU info pages?

<p><code>info</code> (A)</p> Signup and view all the answers

What might happen if you turn off the computer without using the shutdown command?

<p>Damaged user and system files (A)</p> Signup and view all the answers

What does the command shutdown -r +4 do?

<p>Reboots the system in four minutes (C)</p> Signup and view all the answers

Which command will immediately power off the system?

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

What is the purpose of the command shutdown -c?

<p>Cancels a scheduled shutdown (C)</p> Signup and view all the answers

Which command halts the system but does not power it off?

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

What type of commands do not have manual or info pages?

<p>Built-in BASH shell functions (D)</p> Signup and view all the answers

Which command reboots the system immediately?

<p><code>reboot</code> (A)</p> Signup and view all the answers

What command powers off the system after a four-minute delay?

<p><code>shutdown -P +4</code> (C)</p> Signup and view all the answers

Which command halts the operating system without turning off the power?

<p><code>shutdown -H +4</code> (C)</p> Signup and view all the answers

What is the first step to take before installing Linux?

<p>Verifying hardware requirements and compatibility (A)</p> Signup and view all the answers

How can you obtain Linux installation media?

<p>Downloading an ISO image from the Internet (D)</p> Signup and view all the answers

Which of the following is NOT a typical prompt during Linux installation?

<p>Preferred Desktop Environment (D)</p> Signup and view all the answers

What must a user do before interacting with the Linux system?

<p>Log in to a terminal and receive a shell (B)</p> Signup and view all the answers

What is the purpose of shell metacharacters?

<p>To provide special meaning to characters (C)</p> Signup and view all the answers

Flashcards

Terminal

A channel allowing users to log on to the kernel locally or across a network.

Shell

A user interface that accepts user inputs and transfers them to the kernel.

BASH Shell

The default Linux shell.

Ctrl+Alt+F2

The key combination to change to a separate terminal from the local server.

Signup and view all the flashcards

Root User Prompt

Indicates the root user.

Signup and view all the flashcards

Regular User Prompt

Indicates a regular user.

Signup and view all the flashcards

Commands

Part of a command that specifies the program to execute.

Signup and view all the flashcards

Options

Specific letters starting with a dash "-" that alter the way a command works.

Signup and view all the flashcards

Shell Metacharacters

Characters with a special meaning to the shell.

Signup and view all the flashcards

Dollar Sign ($)

A $ tells the shell that the following text refers to a variable.

Signup and view all the flashcards

Single Quotation Marks

Protects metacharacters from interpretation by the shell.

Signup and view all the flashcards

Manual (man) Pages

The most common documentation for Linux commands.

Signup and view all the flashcards

Accessing Man Pages

Type the man command followed by the command name.

Signup and view all the flashcards

Man Page Section Numbers

Describe the category of the command within the manual page database.

Signup and view all the flashcards

Man Page Section 1

Commands that any user can execute.

Signup and view all the flashcards

Man Page Section 2

Linux system calls.

Signup and view all the flashcards

Man Page Section 3

Library routines.

Signup and view all the flashcards

Man Page Section 8

Commands that only the root user can execute.

Signup and view all the flashcards

Pre-Installation Check

Check if the hardware meets the necessary specifications and is compatible with the Linux distribution.

Signup and view all the flashcards

Linux Installation Media

Obtain the distribution by downloading an ISO image from the internet.

Signup and view all the flashcards

Typical Installation Prompts

Common installation steps include: language, date, time zone, keyboard layout, network, user accounts, and storage.

Signup and view all the flashcards

The Shell

Provides an interactive interface for users to interact with the Linux system. You must log in to receive a shell.

Signup and view all the flashcards

Linux Filesystem Types

Ext2, Ext3, Ext4, VFAT, and XFS, each with different features and compatibility.

Signup and view all the flashcards

Journaling

Keeps track of the information written to the hard drive, aiding in recovery after a crash.

Signup and view all the flashcards

Partitioning Scheme Choice

During installation, choose between letting the system automatically partition the disk or manually configuring the partitions.

Signup and view all the flashcards

Logical Volume Manager (LVM)

A partition scheme that creates logical volumes for increased flexibility in managing disk space.

Signup and view all the flashcards

B-tree Filesystem (BTRFS)

A modern filesystem offering advanced features like copy-on-write and snapshots.

Signup and view all the flashcards

Root Account

A Linux account with full rights to the system.

Signup and view all the flashcards

Regular User Account

An account with limited rights, used for day-to-day tasks.

Signup and view all the flashcards

Linux User Interface

Essential for interacting with the system.

Signup and view all the flashcards

Basic Linux Tasks

Executing commands, obtaining help, and shutting down the system.

Signup and view all the flashcards

What is journaling?

Tracks disk writes for recovery

Signup and view all the flashcards

GNU info pages

A command-line tool designed to replace the 'man' command in Linux, offering more structured documentation.

Signup and view all the flashcards

info command

A command used at the prompt followed by a command name to access the GNU info pages for that command.

Signup and view all the flashcards

OS Data Handling

The OS writes data from memory to the disk drives.

Signup and view all the flashcards

shutdown command

A command that can halt or reboot your computer after a specified delay.

Signup and view all the flashcards

shutdown -P +minutes

Powers off the system after a specified delay (in minutes).

Signup and view all the flashcards

shutdown -H +minutes

Halts the OS after a specified delay, without cutting power (requires ACPI).

Signup and view all the flashcards

shutdown -r +minutes

Reboots the system after a specified delay (in minutes).

Signup and view all the flashcards

shutdown -P now

Immediately powers off the system.

Signup and view all the flashcards

shutdown -r now

Immediately reboots the system.

Signup and view all the flashcards

shutdown -c

Cancels a scheduled shutdown.

Signup and view all the flashcards

Study Notes

Linux Installation and Usage

  • Chapter focuses on preparing for, installing, and using Fedora Linux
  • It provides an outline of the Linux interface structure
  • Focuses on entering basic shell commands
  • Teaches how to find command documentation, and properly shut down Linux

Installing Linux

  • Installing any OS requires meeting minimum hardware requirements listed in the OS manual, DVD, or vendor website
  • Hardware Compatibility List (HCL) on the vendor's website lists compatible devices

Fedora 28 Minimum Hardware Requirements

  • CPU: 1GHz or faster Intel x64
  • RAM: 1GB
  • Free Disk Space: 10GB
  • DVD drive for DVD-based installation
  • Fedora-compliant peripheral devices

Installation Media

  • DVD media are the most common source for the Linux packages and installation programs
  • Linux can be installed from DVD by placing the DVD in the DVD drive and turning on the computer
  • Most Linux distributions offer downloadable DVD images, also known as ISO images, on their websites
  • ISO images can be written to a blank writable DVD using disc burning software

Bootable Live Media

  • Many Linux websites provide live media DVD images
  • Live media images allow a fully functional OS to load directly into RAM to test hardware driver compatibility
  • Linux can be installed to a USB flash drive, if the computer lacks a DVD drive

Virtualization Software

  • Virtualization software such as Microsoft Hyper-V, VMWare, and Oracle VM VirtualBox can run an OS within an existing OS concurrently
  • Virtual Machine (VM) refers to each OS running within the software
  • The underlying OS running the virtualization software is the "VM host"

Installing Linux as a VM

  • The standard DVD or live media DVD ISO image are downloaded to a directory on the VM host
  • Virtualization software is opened, and a new virtual machine is created
  • The location of the appropriate ISO image is chosen within the setup
  • Virtualization software will boot directly from the ISO image

Performing the Installation

  • General stages for Fedora 28 Linux installation include:
  • Starting the installation
  • Choosing an installation language and system options
  • Configuring disk partitions and filesystems
  • Configuring user accounts

Starting Installation

  • To begin, boot from Fedora installation media
  • Options to either start the installation directly or perform troubleshooting are offered
  • If troubleshooting is selected 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

Beginning the Installation

  • Troubleshooting options are usually unnecessary
  • Choose "Start Fedora-Workstation-Live 28" to start a live Fedora System
  • A welcome screen will appear prompting the Linux installation on permanent storage
  • Selecting, "Install to Hard Drive" will start the installation program

Installation Language and Localization

  • Prompts to choose the installation language will appear
  • The keyboard model and layout are automatically detected
  • The network interface obtains network configuration automatically using DHCP protocol
  • Date and time are automatically obtained from the Internet if a network connection is established

Installation Destination

  • A permanent storage device for the OS must be manually selected
  • Common storage devices for storing Linux operating systems are hard disks.
  • 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 a Destination

  • Choosing the Installation Destination icon brings you to a list of permanent storage devices
  • If there are multiple disk devices, select the disk to install Linux onto
  • Linux can 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)

Disk Partitions and Filesystems

  • Each hard disk is divided into partitions, formatted with filesystems, defining how data should reside
  • Can have at most four primary partitions
  • An extended partition can be divided into logical drives
  • Master Boot Record (MBR) provides partition information for a hard disk or SSD

Filesystem Access

  • File systems can be accessed if it is attached to a certain directory
  • Fedora installation program can automatically create partitions
  • Manual partitioning is generally good practice

Linux Partitions

  • Linux generally requires two partitions
  • Partition mounted to the root directory
  • Partition for virtual memory (swap memory) stores data from the physical memory (RAM)

Partitioning Schemes

  • Different filesystem types are: Ext2, Ext3, Ext4, VFAT, and XFS
  • Journaling keeps track of the information written to the hard drive
  • Once the installation destination is selected, the installation program will prompt to choose automatic or custom partitioning

Partitioning Options

  • Instead of standard partitions, a partition scheme that creates logical volumes can be chosen
  • The Logical Volume Manager (LVM) can be used
  • This helps support the B-tree Filesystem (BTRFS)
  • Easier system recovery
  • A standard partition scheme can be chosen
  • It is important the contents of disk partitions are not encrypted

User Accounts

  • Authentication is required through valid username and password
  • Two user accounts should be configured
  • Administrator account with root privileges for full rights to the system
  • Regular user account with limited system administration tasks

Basic Linux Usage

  • It's essential to learn different types of user interfaces
  • Basic tasks:
    • Command execution
    • Obtaining online help
    • Shutting down the Linux system

Shells and Terminals

  • Terminal: channel allowing log on to the kernel locally or across network
  • Shell: user interface accepting input and transferring it to the kernel
  • BASH: default Linux shell
  • Linux has many terminals for local and network log-ins

Linux Interface

  • Graphical user interface starts environment on top of BASH shell
  • Switch to graphical terminal from local server using key combinations to change to separate terminal
  • Ctrl+Alt+F2
  • Command line prompt changes to reflect the type of user logged-in

Command Line

  • Root user has the "#" symbol at the end of the line
  • Regular user has the "$" symbol at the end of the line
  • GNOME is the default GUI environment in Fedora Linux
  • The command-line terminal can be accessed in the Activities menu, located in the top left corner of the desktop

Working with Commands

  • Commands: execute programs
  • Case sensitive
  • Options: specific letters starting with a dash "-"
  • Alter the way command works
  • Arguments: specific working parameters
  • Do not start with dash

Shell Metacharacters

  • Metacharacters: keyboard characters with special meaning
  • A "$" alerts the shell about an upcoming variable
  • Single Quotation marks '' protect metacharacters

Getting Command Help

  • Manual (man) pages: documentation for Linux commands
  • At command prompt, type "man" command followed by command name
  • Manual pages contain multiple, searchable sections

Manual Page Section Numbers

  • Section 1: Commands that any user can execute
  • Section 2: Linux system calls
  • Section 3: Library routines
  • Section 4: Special device files
  • Section 5: File formats
  • Section 6: Games
  • Section 7: Miscellaneous
  • Section 8: Commands only root user can execture
  • Section 9 Linux kernel routines
  • Section n: New commands not organized

Additional Help

  • GNU info pages: replacement for man command in Linux
  • At command prompt, type "info" command followed by command name
  • Some commands do not have manual or info pages, especially functions in BASH shell

Shutting Down Linux

  • The OS must write data from memory to the disk drives before shutdown
  • Turning off power could damage user and system files
  • The shutdown command can halt or reboot the computer after a time has passed

Shutdown Commands

  • shutdown –P +4 Powers off the system in four minutes
  • shutdown –H +4 Halts, but does not invoke the ACPI function in BIOS to turn off power to the PC
  • shutdown -r +4 Reboots PC in four minutes
  • shutdown -P now Powers PC off immediately
  • shutdown -r now Reboots the PC immediately
  • shutdown -c Cancels a scheduled shut down Halt: Halts the PC immediately, but does not power off
  • Poweroff: Powers off your system immediately
  • Reboot: Reboots system immediately

Summary

  • Hardware requirements and compatibility must be verified before installation
  • Linux installation media is obtained by downloading an ISO image from the Internet
  • Typical installation sequence: prompts for:
  • Language
  • Date
  • Time zone
  • Keyboard layout
  • Network configuration
  • User account configuration
  • Storage configuration

Summary Continued

  • Users must log in to a terminal and receive a shell before interacting with Linux and the kernel
  • Regardless of terminal type, users can enter:
    • Commands
    • Options
    • Arguments
    • At a shell prompt to perform tasks
  • Shell is case-sensitive
  • Shell understands special characters, called "Shell Metacharacters" which should be protected if not used in their special meanings

Studying That Suits You

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

Quiz Team

Related Documents

More Like This

Linux Operating System Basics Quiz
5 questions
IT1917 Linux Environment
10 questions
Use Quizgecko on...
Browser
Browser