Hard Links and File Systems

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. (A)</p> Signup and view all the answers

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

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

What is a characteristic of hard links?

<p>They can only be created for regular files. (C)</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 (D)</p> Signup and view all the answers

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

<p>ps aux (B)</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 (D)</p> Signup and view all the answers

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

<p>To manage system initialization (A)</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 (D)</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 (D)</p> Signup and view all the answers

Where is UEFI firmware typically stored?

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

What type of partition is required for UEFI to work?

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

What is GPT related to?

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

What is the primary function of UEFI?

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

Where is the EFI System Partition typically located?

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

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

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

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

<p>2dd (D)</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 (B)</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; (B)</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 (D)</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 (B)</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 (D)</p> Signup and view all the answers

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

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

Which of the following wildcards will match the filename ttyS0?

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

Which wildcard will NOT match the filename ttyS2?

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

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

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

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

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

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

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

Flashcards are hidden until you start studying

More Like This

CS131 - Week 4 (Hard)
15 questions

CS131 - Week 4 (Hard)

RefinedBowenite avatar
RefinedBowenite
File Fragmentation and Storage
10 questions
Dateisysteme: Hardlinks und Softlinks
13 questions
Hard Disk Partitions and File Allocation Methods
47 questions
Use Quizgecko on...
Browser
Browser