Hard Links and File Systems
30 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 is a limitation of hard links?

  • They can be used to link directories.
  • They can be used to link special files.
  • They can only be created on a single filesystem. (correct)
  • They are only available on Linux systems.
  • What happens when a hard linked file is changed?

  • The file is renamed.
  • The hard link is broken. (correct)
  • A copy of the file is created and consumes additional space.
  • The original file is deleted.
  • In which directory are man pages typically found?

  • /usr/doc/
  • /var/pkg/man/
  • /usr/share/man/ (correct)
  • /opt/man/
  • What is the purpose of the /proc filesystem?

    <p>To provide a virtual filesystem for system information.</p> Signup and view all the answers

    Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel?

    <p>cmdline</p> Signup and view all the answers

    What is a characteristic of hard links?

    <p>They can only be created for regular files.</p> Signup and view all the answers

    What is the process ID number of the init process on a System V init based system?

    <p>1</p> Signup and view all the answers

    What is the command used to list all running processes on a Linux system?

    <p>ps aux</p> Signup and view all the answers

    Which of the following daemons is responsible for handling power management events on a Linux system?

    <p>acpid</p> Signup and view all the answers

    What is the function of the systemd system on a Linux system?

    <p>To manage system initialization</p> Signup and view all the answers

    What is the parent process of all processes on a System V init based system?

    <p>/sbin/init</p> Signup and view all the answers

    What is the purpose of the ACPI system on a Linux system?

    <p>To manage power management events</p> Signup and view all the answers

    Where is UEFI firmware typically stored?

    <p>On the motherboard</p> Signup and view all the answers

    What type of partition is required for UEFI to work?

    <p>An EFI system partition</p> Signup and view all the answers

    What is GPT related to?

    <p>A partition table format for hard disks</p> Signup and view all the answers

    What is the primary function of UEFI?

    <p>To act as a firmware on a motherboard</p> Signup and view all the answers

    Where is the EFI System Partition typically located?

    <p>On a GPT disk</p> Signup and view all the answers

    What file system can UEFI recognise on the EFI System Partition?

    <p>FAT</p> Signup and view all the answers

    What is the vi command to delete two lines, including the current line?

    <p>2dd</p> Signup and view all the answers

    What happens when the command dbmaint & is used to run dbmaint in the background?

    <p>dbmaint is terminated immediately after logging out of the system</p> Signup and view all the answers

    Which of the following commands lets dbmaint continue to run even when the user running the program logs out?

    <p>nohup dbmaint &amp;</p> Signup and view all the answers

    What is the purpose of the nohup command?

    <p>to allow a command to continue running after logging out</p> Signup and view all the answers

    Which of the following commands directly executes the instructions from the file /usr/local/bin/runme.sh without starting a subshell?

    <p>source /usr/local/bin/runme.sh</p> Signup and view all the answers

    What is the purpose of the source command in Bash?

    <p>to execute a file's instructions in the current shell</p> Signup and view all the answers

    What is the name of the file that stores Bash history?

    <p>bash_history</p> Signup and view all the answers

    Which of the following wildcards will match the filename ttyS0?

    <p>tty?[0-5]</p> Signup and view all the answers

    Which wildcard will NOT match the filename ttyS2?

    <p>tty[A-Z]</p> Signup and view all the answers

    What is the correct wildcard to match the filenames ttyS0 and ttyS1?

    <p>ttyS[0-1]</p> Signup and view all the answers

    What is the purpose of the file that stores Bash history?

    <p>To store Bash history</p> Signup and view all the answers

    Which wildcard will match the filenames ttyS0, ttyS1, and ttyS2?

    <p>ttyS[0-3]</p> Signup and view all the answers

    More Like This

    Hard MC created from paperclip file
    52 questions
    CS131 - Week 3 (Hard)
    19 questions

    CS131 - Week 3 (Hard)

    RefinedBowenite avatar
    RefinedBowenite
    CS131 - Week 4 (Hard)
    15 questions

    CS131 - Week 4 (Hard)

    RefinedBowenite avatar
    RefinedBowenite
    File Fragmentation and Storage
    10 questions
    Use Quizgecko on...
    Browser
    Browser