Filters
Question type

Study Flashcards

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


A) 3
B) 4
C) 5
D) 6
E) 7

Correct Answer

verifed

verified

Which of the following commands reboots the system when using SysV init?


A) shutdown -r now
B) shutdown -r "rebooting"
C) telinit 6
D) telinit 0
E) shutdown -k now "rebooting"

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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


A) 9
B) 19
C) 49
D) 99

Correct Answer

verifed

verified

B

What does the ? symbol within regular expressions represent?


A) Match the preceding qualifier one or more times.
B) Match the preceding qualifier zero or more times.
C) Match the preceding qualifier zero or one times.
D) Match a literal ? character.

Correct Answer

verifed

verified

Which of the following is a limitation of the cut command?


A) The cut command can only select output by field position. The command can only select output by field position.
B) The cut command cannot reorder fields. command cannot reorder fields.
C) The cut command only works on ASCII text. command only works on ASCII text.
D) The cut command cannot use different input and output delimiters. command cannot use different input and output delimiters.

Correct Answer

verifed

verified

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


A) -1
B) 0
C) 1
D) It is different with each reboot.
E) It is set to the current run level.

Correct Answer

verifed

verified

C

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


A) chown dan/staff file.txt
B) chown dan:staff file.txt
C) chown -u dan -g staff file.txt
D) chown dan -g staff file.txt

Correct Answer

verifed

verified

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


A) history
B) set
C) bashconf
D) setsh
E) envsetup

Correct Answer

verifed

verified

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?


A) source /usr/local/bin/runme.sh
B) . /usr/local/bin/runme.sh
C) /bin/bash /usr/local/bin/runme.sh
D) /usr/local/bin/runme.sh
E) run /usr/local/bin/runme.sh

Correct Answer

verifed

verified

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


A) dd if=/dev/zero of=/dev/sda bs=512
B) dd if=/dev/zero of=/dev/sda bs=512 count=1
C) dd if=/dev/zero of=/dev/sda bs=440 count=1
D) dd if=/dev/zero of=/dev/sda bs=440

Correct Answer

verifed

verified

C

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


A) standard error to standard input.
B) standard input to standard error.
C) standard output to standard error.
D) standard error to standard output.
E) standard output to standard input.

Correct Answer

verifed

verified

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


A) LD_LOAD_PATH
B) LD_LIB_PATH
C) LD_LIBRARY_PATH
D) LD_SHARE_PATH
E) LD_RUN_PATH

Correct Answer

verifed

verified

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


A) !
B) +
C) &
D) %
E) #

Correct Answer

verifed

verified

How is a symbolic link called bar.conf pointing to foo.conf created?


A) ln -s foo.conf bar.conf
B) ln foo.conf bar.conf
C) ln -s bar.conf foo.conf
D) ln bar.conf foo.conf

Correct Answer

verifed

verified

Which of the following commands can be used to display the inode number of a given file?


A) inode
B) ls
C) ln
D) cp

Correct Answer

verifed

verified

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


A) -10
B) 10
C) 20
D) 0

Correct Answer

verifed

verified

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


A) It allows disks to be mounted remotely.
B) It runs a command as a process in a subshell.
C) It makes the command history available to subshells.
D) It sets up environment variables for applications.
E) It shares NFS partitions for use by other systems on the network.

Correct Answer

verifed

verified

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


A) edquota
B) repquota
C) quota -e
D) quota

Correct Answer

verifed

verified

Which of the following commands converts spaces in a file to tab characters and prints the result to standard output?


A) iconv
B) expand
C) unexpand
D) tab

Correct Answer

verifed

verified

Showing 1 - 20 of 159

Related Exams

Show Answer