Linux Commands and Concepts
16 Questions
0 Views

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

What does the kernel use a subsystem for?

  • To load kernel modules
  • To manage hardware devices (correct)
  • To handle user input
  • To manage system logs
  • Which command provides a summary of RAM and swap space in the system?

  • vmstat
  • top
  • htop
  • free (correct)
  • What directive in GRUB Legacy defines an operating system to boot?

  • system
  • os
  • boot
  • title (correct)
  • What characterizes systemd compared to traditional runlevels?

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

    Which directories are located in the /etc/rc.d directory?

    <p>rc0.d, rc1.d, rc2.d, rc3.d, rc4.d, rc5.d, rc6.d (A)</p> Signup and view all the answers

    Which command reveals both the current and previous runlevel?

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

    What is virtual memory commonly referred to as?

    <p>Swap space (A)</p> Signup and view all the answers

    The first process that the kernel launches is known as what?

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

    What command do you use with fdisk to change a partition type?

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

    Which command initializes a swap space?

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

    What does the first field in the /etc/fstab file indicate?

    <p>The device to mount (A)</p> Signup and view all the answers

    How is filesystem usage displayed by default with the df command?

    <p>1-K block size (C)</p> Signup and view all the answers

    What type of information do inodes store about a file?

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

    Which command is specifically used to remove a package using rpm?

    <p>rpm -e (A)</p> Signup and view all the answers

    What error message would ldd report for an inaccessible library?

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

    What is necessary for executing the fsck command?

    <p>Execute on unmounted filesystems (B)</p> Signup and view all the answers

    Flashcards

    Linux Module Loading Command

    The command used to load a module and its dependencies into the Linux kernel.

    Kernel Hardware Management

    The kernel component that manages how the operating system interacts with hardware.

    RAM/Swap Space Summary

    Command to show a summary of available RAM and swap memory.

    CPU Summary

    The command to view details of CPUs in a system.

    Signup and view all the flashcards

    Init Process

    The first process launched by the Linux kernel.

    Signup and view all the flashcards

    Boot Process First Stage

    The first step in the Linux boot process; low-level hardware initialization.

    Signup and view all the flashcards

    GRUB Operating System Selection

    GRUB directive used to select which operating system to boot.

    Signup and view all the flashcards

    GRUB Boot Timeout

    GRUB directive for setting the automatic boot time.

    Signup and view all the flashcards

    fdisk command for partition type change

    The 't' command in fdisk allows modifying partition types.

    Signup and view all the flashcards

    fdisk command for creating a new partition

    The 'n' command in fdisk is used to create a new partition.

    Signup and view all the flashcards

    Command to activate swap space

    The swapon command activates a previously initialized swap space.

    Signup and view all the flashcards

    mount point definition

    A mount point is an empty directory used to access a filesystem.

    Signup and view all the flashcards

    First field in /etc/fstab

    The first field specifies the device to mount in the /etc/fstab file.

    Signup and view all the flashcards

    Commands to display mounted filesystems

    The mount and df commands list mounted file systems.

    Signup and view all the flashcards

    Default block size for df command

    By default, df displays filesystem usage in 1-K block size.

    Signup and view all the flashcards

    What inodes store

    Inodes store a file's metadata, not the content itself.

    Signup and view all the flashcards

    Study Notes

    Linux Commands and Concepts

    • Module Loading: The modprobe command loads modules including dependencies.

    • Kernel Module Management: The kernel's subsystem manages hardware devices through a driver.

    • System Resource Summary: free displays RAM and swap space usage.

    • CPU Information: lscpu shows CPU summary details.

    • Initial Process: The kernel launches the init process first.

    • Boot Process Stages (Order): 1. Firmware (BIOS/UEFI), 2. Bootloader (LILO/GRUB), 3. Kernel, 4. Init.

    • GRUB Legacy Directives:

      • title: Defines an operating system to boot.
      • timeout=: Sets automatic boot delay.
    • Systemd Targets: Systemd uses targets instead of runlevels.

    • Runlevels and Systemd: The same services are not started/stopped at different runlevels in Systemd. (False)

    • Runlevel Display: runlevel shows both current and previous runlevels.

    • /etc/rc.d Directories: Contains rc*.d directories (rc0.d...rc6.d)

    • HTTP Service Restart: service httpd restart or /etc/init.d/httpd restart

    • Device Names: /dev/hda1 indicates an IDE device.

    • User Home Directories: User home directories are typically found in /home.

    • Virtual Memory Synonym: Swap memory.

    • Main OS Files Directory: The bulk of the OS files are typically stored in /usr.

    • Partition Type Change (fdisk): Use the t command to change partition type.

    • New Partition Creation (fdisk): Use the n command to create a partition.

    • Swap Space Activation: swapon activates initialized swap space.

    • Mount Point Definition: A mount point is an empty directory for accessing a filesystem.

    • fstab First Field: The fstab first field specifies the device to mount.

    • Mounted Filesystems Display: mount and df display mounted filesystems.

    • df Block Size: df by default displays in KB blocks.

    • Inodes: Inodes store a file's metadata.

    • Directory Size Display: du displays directory size.

    • System Shutdown: init 0 shuts down the system.

    • Missing File Identification: Missing files use an inode number.

    • fsck Execution Conditions: fsck is run on unmounted filesystems.

    • RPM Package Management: RPM commands require root privileges.

    • RPM Package Removal: Use rpm -e to remove a package.

    • RPM File Content and Extraction: rpm2cpio can list or extract RPM file contents.

    • Library Accessibility Errors: ldd reports "not found" if a library is inaccessible.

    Studying That Suits You

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

    Quiz Team

    Description

    Test your understanding of essential Linux commands and concepts with this quiz. Topics include module loading, kernel management, and system resource monitoring. Perfect for those studying Linux system administration.

    More Like This

    Linux Terminal Commands Overview
    10 questions
    Système d'exploitation Linux
    7 questions
    Use Quizgecko on...
    Browser
    Browser