Exam lfcs - All Questions

Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination?


Answers


During a system boot cycle, what program is executed after the BIOS completes its tasks?


Answers


Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)


Answers


Which of the following statements is correct when talking about /proc/?


Answers


What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)


Answers


Which of the following information is stored within the BIOS? (Choose TWO correct answers.)


Answers


Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)


Answers


Which of the following are init systems used within Linux systems? (Choose THREE correct answers.)


Answers


SUMULATION -

Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)


Answers


What information can the lspci command display about the system hardware? (Choose THREE correct answers.)


Answers


Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)


Answers


What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?


Answers


SIMULATION -

Which command will display messages from the kernel that were output during the normal boot sequence?


Answers


Which of the following commands will write a message to the terminals of all logged in users?


Answers


Which of the following kernel parameters instructs the kernel to suppress most boot messages?


Answers


Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?


Answers


After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?


Answers


Which of the following commands is used to update the list of available packages when using dpkg based package management?


Answers


Which of the following commands lists the dependencies of a given dpkg package?


Answers


Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user?


Answers


What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.)


Answers


Which of the following commands updates the linker cache of shared libraries?


Answers


Which of the following commands lists all currently installed packages when using RPM package management?


Answers


Which of the following commands can be used to download the RPM package kernel without installing it?


Answers


When using rpm --verify to check files created during the installation of RPM packages, which of the following information is taken into consideration? (Choose

THREE correct answers.)


Answers


Which of the following is correct when talking about mount points?


Answers


Which function key is used to start Safe Mode in Windows NT?


Answers


Which of the following environment variables overrides or extends the list of directories holding shared libraries?


Answers


SIMULATION -

Which world-writable directory should be placed on a separate partition in order to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)


Answers


Which RPM command will output the name of the package which supplied the file /etc/exports?


Answers


SIMULATION -

In which directory must definition files be placed to add additional repositories to yum?


Answers


SIMULATION -

What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)


Answers


When removing a package, which of the following dpkg options will completely remove the files including configuration files?


Answers


Which file should be edited to select the network locations from which Debian installation package files are loaded?


Answers


SIMULATION -

Which option to the yum command will update the entire system? (Specify ONLY the option name without any additional parameters.)


Answers


SIMULATION -

Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)


Answers


SIMULATION -

Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time? (Specify ONLY the command without any path or parameters.)


Answers


Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?


Answers


Which of the following commands can be used to create a USB storage media from a disk image?


Answers


In Bash, inserting 1>&2 after a command redirects


Answers


What command will generate a list of user names from /etc/passwd along with their login shell?


Answers


In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?


Answers


Which of the following statements is correct regarding the command foo 1> bar?


Answers


Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?


Answers


SIMULATION -

Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files? killall -s _______ daemon


Answers


What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?


Answers


Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?


Answers


A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?


Answers


In compliance with the FHS, in which of the directories are man pages found?


Answers


Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?


Answers


What is the purpose of the Bash built-in export command?


Answers


What is the output of the following command?

echo "Hello World" | tr -d aieou


Answers


Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?


Answers


Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?


Answers


What is the default nice level when a process is started using the nice command?


Answers


What is the default action of the split command on an input file?


Answers


What is the difference between the i and a commands of the vi editor?


Answers


SIMULATION -

Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)


Answers


Which of the following commands moves and resumes in the background the last stopped shell job?


Answers


What is the effect of the egrep command when the -v option is used?


Answers


What does the symbol within regular expressions represent?


Answers


In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?


Answers


Which of the following files, located in the user home directory, is used to store the Bash history?


Answers


SIMULATION -

Which Bash environment variable defines in which file the user history is stored when exiting a Bash process? (Specify ONLY the variable name.)


Answers


Which of the following commands displays the contents of a gzip compressed tar archive?


Answers


Which grep command will print only the lines that do not end with a / in the file foo?


Answers


Which of the following commands is used to change options and positional parameters for a running Bash?


Answers


Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?


Answers


From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)


Answers


Regarding the command:

nice -5 /usr/bin/prog

Which of the following statements is correct?


Answers


Which shell command is used to continue background execution of a suspended command?


Answers


Which of the following shell redirections will write standard output and standard error output to a file named filename?


Answers


In the vi editor, which of the following commands will copy the current line into the vi buffer?


Answers


Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)


Answers


When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?


Answers


Which of the following commands will reduce all consecutive spaces down to a single space?


Answers


Which character, added to the end of a command, runs that command in the background as a child process of the current shell?


Answers


Which of the following commands will print the last 10 lines of a text file to the standard output?


Answers


Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?


Answers


Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?


Answers


What happens after issuing the command vi without any additional parameters?


Answers


Which of the following command sets the Bash variable named TEST with the content FOO?


Answers


Which variable defines the directories in which a Bash shell searches for executable commands?


Answers


Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?


Answers


SIMULATION -

Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.)


Answers


Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose

TWO correct answers.)


Answers


When running the command -

sed -e "s/a/b/" /tmp/file >/tmp/file

While /tmp/file contains data, why is /tmp/file empty afterwards?


Answers


When given the following command line.

echo "foo bar" | tee bar | cat

Which of the following output is created?


Answers


Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)


Answers


Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.)


Answers


After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem. Which of the following describes the resulting situation?


Answers


After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO correct answers.)


Answers


Which of the following commands changes the ownership of file.txt to the user dan and the group staff?


Answers


Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?


Answers


Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?


Answers


What does the command mount -a do?


Answers


Which of the following settings for umask ensures that new files have the default permissions -rw-r----- ?


Answers


Which of the following is the device file name for the second partition on the only SCSI drive?


Answers


In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.)


Answers


Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?


Answers


Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?


Answers


Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?


Answers


How many fields are in a syntactically correct line of /etc/fstab?


Answers


SIMULATION -

Which command is used to create and initialize the files used to store quota information? (Specify ONLY the command without any path or parameters.)


Answers


Which of the following file permissions belong to a symbolic link?


Answers


Creating a hard link to an ordinary file returns an error. What could be the reason for this?


Answers


Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)


Answers


Which of the following commands will change the quota for a specific user?


Answers


Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?


Answers


Which of the following Linux filesystems preallocates a fixed number of inodes at the filesystem's make/creation time and does NOT generate them as needed?

(Choose TWO correct answers.)


Answers


What is the purpose of the Filesystem Hierarchy Standard?


Answers


SIMULATION -

Which umask value will result in the default access permissions of 600 (rw-------) for files and 700 (rwx------) for directories? (Specify only the numerical umask value.)


Answers


Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition? (Choose TWO correct answers.)


Answers


After running the command umount /mnt, the following error message is displayed: umount: /mnt: device is busy.

What is a common reason for this message?


Answers


What does the command mount -a do?


Answers


Which of the following commands set the sticky bit for the directory /tmp? (Choose TWO correct answers.)


Answers