Linux File Permissions and Commands Quiz
32 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 permission set rwx r-x--x represent for the user owner of the file?

  • Read and write permissions only
  • Read and execute permissions only
  • Read, write, and execute permissions (correct)
  • No permissions
  • Which command is used to create an encrypted password for the GRUB Legacy configuration?

  • grub-encrypt
  • password-md5
  • grub-md5-crypt (correct)
  • genpass
  • What is the purpose of the 'hiddenmenu' directive in GRUB Legacy?

  • To display all bootable titles immediately
  • To create a new bootable entry
  • To limit displayed titles until a key is pressed (correct)
  • To require a password for access
  • What is the primary function of the dmesg command?

    <p>Display kernel messages and system logs</p> Signup and view all the answers

    In GRUB Legacy, which directive is typically not used after a title directive?

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

    Which file contains the scripts used to manage the init process?

    <p>/etc/rc.d/init.d</p> Signup and view all the answers

    What is the real location of the GRUB Legacy configuration file?

    <p>/boot/grub/grub.conf</p> Signup and view all the answers

    What is the maximum memory that a 64-bit processor can theoretically use?

    <p>16 EiB</p> Signup and view all the answers

    Which command is used to create a symbolic link to the file at /tmp/test?

    <p>ln -s /tmp/test /tmp/data</p> Signup and view all the answers

    What is the purpose of the GRUB_DEFAULT setting in GRUB2?

    <p>To define the default operating system that boots</p> Signup and view all the answers

    Which command will display both the current and previous runlevel?

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

    Which command will configure the httpd service to start at runlevel 5?

    <p>ln -s /etc/init.d/httpd /etc/rc.d/rc5.d/S85httpd</p> Signup and view all the answers

    What does the journalctl command do?

    <p>It views systemd journal logs</p> Signup and view all the answers

    In GRUB Legacy, which directive specifies the amount of time to wait before booting?

    <p>timeout=</p> Signup and view all the answers

    What action does the acpid command perform?

    <p>It executes scripts based on ACPI events</p> Signup and view all the answers

    Which is the primary configuration file for GRUB 2 in Ubuntu systems?

    <p>/boot/grub/grub.cfg</p> Signup and view all the answers

    What permission must be set on a directory to ensure new files inherit the group's ownership?

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

    Which command would be used to turn off the atd service at runlevels 2 and 4?

    <p>chkconfig –level 24 atd off</p> Signup and view all the answers

    Which command would you use to create a hard link to /tmp/test named /tmp/data?

    <p>ln /tmp/test /tmp/data</p> Signup and view all the answers

    What does the GRUB_TIMEOUT parameter control during the boot process?

    <p>The duration before the default operating system boots</p> Signup and view all the answers

    Which of the following describes a soft link?

    <p>A type of link that can reference both files and directories</p> Signup and view all the answers

    What is the purpose of the -i option in the ls command?

    <p>To display inode numbers of files</p> Signup and view all the answers

    What typically happens when the update-grub command is executed?

    <p>It overwrites the primary GRUB 2 configuration</p> Signup and view all the answers

    Which command is utilized to change the group ownership of a file that you own?

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

    In GRUB Legacy, which directive specifies the default operating system to boot?

    <p>default=</p> Signup and view all the answers

    What role does HALD play in the context of hardware notification?

    <p>It sends notifications about hardware state changes</p> Signup and view all the answers

    Which of the following is NOT a typical function of the dmesg command?

    <p>Add a new network interface</p> Signup and view all the answers

    Which terminal command allows viewing of the network interface controller connected on the PCI bus?

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

    Which program is utilized for notifying users of low battery on a Linux laptop?

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

    Which file defines the initial default runlevel in traditional init?

    <p>/etc/inittab</p> Signup and view all the answers

    If the file /tmp/hosts points to /etc/hosts and the latter is deleted, what happens?

    <p>/tmp/hosts now points to nothing</p> Signup and view all the answers

    Which command is used to load a module along with its dependencies?

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

    Study Notes

    File Permissions

    • rwx r-x--x permissions: User owner has read, write, and execute permissions; all users (except owner and group owner) have read and execute permissions.
    • rwx r-x--x permissions: User owner has read, write, and execute permissions; all except user owner and group owner have read and execute permissions.
    • rwx r-x--x permissions: Group owner has read and execute permissions.

    GRUB Legacy

    • boot directive is not typically used after a title directive.
    • Use --md5 option with the password directive for encrypted passwords.
    • Firmware bootloader for Sparc systems: SILO.
    • HALD stands for Hardware Abstraction Layer Daemon.
    • default= directive defines the default operating system to boot.
    • fallback= directive indicates an operating system to boot if the default fails.
    • timeout= directive sets the time GRUB waits before automatically booting.

    Linux Commands and System

    • dmesg command does not add a new network interface.
    • /etc/grub.conf is a symbolic link to /boot/grub/grub.conf; /etc/grub.conf is the soft link file.
    • HALD uses dbus for hardware state change notifications.
    • free command displays RAM and swap space summary.
    • firmware does not change runlevels.
    • systemctl --all shows service status.
    • GRUB Legacy Configuration File: /boot/grub/grub.conf.
    • bootup is not a Linux boot system.
    • grub-md5-crypt creates encrypted passwords for GRUB Legacy.
    • Scripts for init process management: /etc/rc.d/init.d.
    • GRUB2 configuration edit: /etc/default/grub.
    • GRUB 2 does not have a command-line interface as a feature.
    • Bootloader: Program loading the kernel.
    • Symbolic link: is also called a soft link.
    • Fourth boot process stage: init phase.
    • GRUB Legacy's password directive: requires a password to boot an OS in a title.
    • hiddenmenu directive: hides all but a default bootable title until user input.
    • Maximum 64-bit processor memory: 16 EiB (exbibytes).
    • grub-mkconfig is used for booting a corrupted disk drive.
    • DEFAULT_RUNLEVEL variable defines the default runlevel in /etc/init/rc-sysinit.conf.
    • systemctl is a traditional replacement for the init process.
    • GRUB_DEFAULT sets the default operating system to boot.
    • /etc/init.d/httpd to start httpd service at runlevel 5.
    • isusb -v shows details of an external USB drive.
    • runlevel command displays current and previous runlevels.
    • chkconfig shows services set to start or stop automatically.

    Studying That Suits You

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

    Quiz Team

    Related Documents

    Description

    Test your knowledge on Linux file permissions, GRUB legacy, and essential Linux commands. This quiz covers various aspects of Linux system management and configuration. Perfect for beginners and advanced users alike!

    More Like This

    Linux File Permissions
    10 questions

    Linux File Permissions

    StylishSpessartine avatar
    StylishSpessartine
    Linux File Permissions and Commands
    21 questions
    Use Quizgecko on...
    Browser
    Browser