Linux Command Line and GRUB Configuration PDF

Document Details

Uploaded by Deleted User

Tags

linux commands grub command line operating systems

Summary

This document contains a collection of questions and answers related to Linux command-line operations, GRUB configuration, and the boot process. The questions cover topics including file system permissions, commands used to manage processes and hardware, etc. The summary serves as an introductory overview.

Full Transcript

For GRUB Legacy, which of the following is used to specify the second partition of the second hard drive? (hd1,1) Which of the following commands is used to view the network interface controller connected on the PCI bus? lspci The first process that the kernel launches is called the _____...

For GRUB Legacy, which of the following is used to specify the second partition of the second hard drive? (hd1,1) Which of the following commands is used to view the network interface controller connected on the PCI bus? lspci The first process that the kernel launches is called the _____ process. init Which of the following commands will create a hard link to /tmp/test named /tmp/data? ln /tmp/test /tmp/data In GRUB Legacy, the _____ directive defines the default operating system to boot. default= Which command will allow you to change the group ownership of a file that you own? chgrp In GRUB Legacy, the password directive in the global setting means: The user must submit the specified password before appending, editing or using the GRUB command line. What directory contains information about symbolic links that enable services? /usr/lib/systemd Which option to the ls command displays the inode numbers of files? -i For traditional init, the _____ file is where the initial default runlevel is defined. /etc/inittab What option to the find command allows you to search for files by inode numbers? -inum The _____ command is used to load a module along with its dependencies. modprobe What permissions are typically placed on soft link files? rwxrwxrwx What version of GRUB is the most modern version? GRUB 2 Which command is used to change permissions on a file? chmod If you have 5 hard linked files and you delete four of them including the original one, then: The data is still available from the remaining file Assuming everyone has access to the directory the file is in, who can view the contents of a file with permissions of rw-r----x? Both the user owner and group owners The systemd equivalent of runlevels are called? targets Where are the scripts used to manage the init process located? /etc/rc.d/init.d Editing the GRUB2 configuration is accomplished by: the file is automatically updated when kernel files are added or removed from /boot The second stage of the boot process is: The Bootloader stage Which of the following commands is used to view the summary of CPUs in the system? lscpu Instead of using traditional runlevels, systemd uses: Targets If you have a file named /tmp/hosts pointing to a file named /etc/hosts and the /etc/hosts file is deleted, then which of the following statements is true? The /tmp/hosts file now points to nothing Which of the following is not a daemon used for logging? logd The first stage of the boot process is: The firmware (BIOS/UEFI) stage Which program would be used to notify the user of a low battery on a Linux laptop computer? acpid Which permission, when set on a directory, causes new files and directories that are created inside to be owned by the group that owns the directory? setgid In GRUB Legacy, the _____ directive indicates an operating system to boot if the default operating system fails to boot. fallback= Which of the following is used to turn off the atd service at runlevels 2 and 4? chkconfig –level 24 atd off The time before booting the default image is set by: GRUB_TIMEOUT Which type of link can be made to directories, hard or soft? soft Which directory is used primarily for storing log messages? /var/log Which permission is necessary on a directory in order for a user to use the cd command to change that directory? Execute The primary GRUB 2 configuration is overwritten when the _____ command is executed on Ubuntu systems. update-grub For the rwxr-x--x permission set, the highlighted permissions belong to: The user owner of the file For rwxr-x--x permission set, the highlighted permissions belong to: All users besides the user owner and group owner For the rwxr-x--x permission set, the highlighted permissions belong to: The group owner of the file In GRUB Legacy, which directive is not typically used after a title directive? boot To use an encrypted password in the GRUB Legacy configuration file, use the _____ option to the password directive. --md5 The firmware bootloader for Sparc systems is called _____. SILO HALD is the abbreviation for: Hardware Abstraction Layer Daemon Which of the following is not a function of the dmesg command? Add a new network interface If the output of the ls -l command includes: /etc/grub.conf ->../boot/grub/grub.conf Based on this information, which is the soft link file? /etc/grub.conf What is the notification mechanism used to inform programs about a change in state of hardware devices? HALD uses dbus to send notifications Which command is used to view the summary of the RAM and swap space? free Which of the following is not a characteristic of firmware? Change runlevels Which command is useful for booting a corrupted disk drive? grub-mkconfig On a Ubuntu system, what variable defines the default runlevel in the /etc/init/rc-sysinit.conf file? DEFAULT_RUNLEVEL Which of the following commands is used as a traditional replacement for the init process? systemctl The GRUB2 setting that sets the default operating system to boot is called _____. GRUB_DEFAULT Which of the following commands will have the httpd service start at runlevel 5? ln -s /etc/init.d/httpd /etc/rc.d/rc5.d/S85httd In GRUB Legacy, the _____ directive indicates how long to wait before automatically booting the default operating system. timeout= Which of the following commands is used to view the details of an external drive connected to a USB port? lsusb -v Which command will display both the current runlevel and the previous runlevel? runlevel The third stage of the boot process is: The kernel phase Which command is used to view the services that are set to start or stop automatically? chkconfig Which of the following commands will create a soft link to /tmp/test named /tmp/data? ln -s /tmp/test /tmp/data The primary configuration file for the GRUB 2 on a Fedora system is _____. /boot/grub2/grub.cfg For the rwxr-x--x permission set, the highlighted permissions belong to: :The group owner of the file The _____ is a kernel module used by the kernel to manage hardware devices. Subsystem A primary function of a Linux bootloader is: To load the kernel To specify a runlevel to boot at, add the runlevel to the end of the _____ directive line kernel The journalctl command: Is used to view journald log files The primary GRUB 2 configuration is overwritten when the _____ command is executed on Fedora systems. grub2-mkconfig Which type of link can be made to a file on another filesystem, hard or soft? soft How does the acpid command determine what action to take? It uses script files In GRUB Legacy, the _____ directive defines an operating system to boot title The primary configuration file for GRUB 2 on an Ubuntu system is _____. /boot/grub/grub.cfg Which file is overwritten at the end of each boot process with the messages that were generated while booting? /var/log/dmesg Which command will allow you to switch to another group and add files that are group-owned by this other group? newgrp Which of the following commands is used to view the status of all services? systemctl --all What is the real location of the GRUB Legacy configuration file? /boot/grub/grub.conf Which of the following is not a Linux boot system? bootup Which of the following commands can be used to create an encrypted password that can be used with the password directive in GRUB Legacy: grub-md5-crypt Where are the scripts used to manage the init process located? /etc/rc.d/init.d Instead of modifying the primary configuration file for GRUB2, you should edit the _____ file. /etc/default/grub Which of the following is not an advantage of GRUB 2 over GRUB Legacy? Command-line interface The program that loads the kernel is called the ___. bootloader A soft link is also called a ___ link. symbolic The fourth stage of the boot process is: The init phase In GRUB Legacy, the password directive in the title directive setting means: To boot a specific operating system, a password must be entered In GRUB Legacy, the ___ directive prevents GRUB from displaying all but the default bootable title until the user presses a key. hiddenmenu What is the maximum memory that a 64 bit processor can theoretically use? 16 EiB

Use Quizgecko on...
Browser
Browser