Which of the following commands will help identify a broken router between the local and the remote machine?
Aps
Bnetstat
Cnslookup
Difconfig
Etraceroute
What output will the following command produce?
seq 1 5 20
A1
B1
C1
D2
E5
Given the following routing table:
How would an outgoing packet to the destination 192.168.2.150 be handled?
AIt would be passed to the default router 192.168.178.1 on wlan0.
BIt would be directly transmitted on the device eth0.
CIt would be passed to the default router 255.255.255.0 on eth0.
DIt would be directly transmitted on the device wlan0.
EIt would be passed to the router 192.168.1.1 on eth0.
When the command echo $ outputs 1, which of the following statements is true?
AIt is the process ID of the echo command.
BIt is the process ID of the current shell.
CIt is the exit value of the command executed immediately before echo.
DIt is the exit value of the echo command.
Which of the following settings for umask ensures that new files have the default permissions -rw-r----- ?
A0017
B0640
C0038
D0027
What is the output of the following command sequence?
for token in a b c; do
echo -n "$token ";
done
Aanbncn
Ba b c
C"a " "b " "c "
Dtoken token token
Eabc
Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?
Add if=/dev/zero of=/dev/sda bs=512
Bdd if=/dev/zero of=/dev/sda bs=512 count=1
Cdd if=/dev/zero of=/dev/sda bs=440 count=1
Ddd if=/dev/zero of=/dev/sda bs=440
What does the symbol within regular expressions represent?
AMatch the preceding qualifier one or more times.
BMatch the preceding qualifier zero or more times.
CMatch the preceding qualifier zero or one times.
DMatch a literal character.
Regarding the command:
nice -5 /usr/bin/prog
Which of the following statements is correct?
A/usr/bin/prog is executed with a nice level of -5.
B/usr/bin/prog is executed with a nice level of 5.
C/usr/bin/prog is executed with a priority of -5.
D/usr/bin/prog is executed with a priority of 5.
Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)
A0
B1
C3
D5
E6
What information can the lspci command display about the system hardware? (Choose THREE correct answers.)
ADevice IRQ settings
BPCI bus speed
CSystem battery type
DDevice vendor identification
EEthernet MAC address
Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?
Asystemd.target=rescue.target
Bsystemd.runlevel=rescue.target
Csystemd.service=rescue.target
Dsystemd.default=rescue.target
Esystemd.unit=rescue.target
After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?
Akill -HUP $(pidof grub)
Bgrub-install
Cgrub
DNo action is required
Which of the following commands is used to update the list of available packages when using dpkg based package management?
Aapt-get update
Bapt-get upgrade
Capt-cache update
Dapt-get refresh
Eapt-cache upgrade
Which of the following commands lists the dependencies of a given dpkg package?
Aapt-cache depends-on package
Bapt-cache dependencies package
Capt-cache depends package
Dapt-cache requires package
Which of the following commands can be used to download the RPM package kernel without installing it?
Ayum download --no-install kernel
Byumdownloader kernel
Crpm --download --package kernel
Drpmdownload kernel
What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?
A9
B19
C49
D99
What is the default nice level when a process is started using the nice command?
A-10
B10
C20
D0
What is the default action of the split command on an input file?
AIt will break the file into new files of 1,024 byte pieces each.
BIt will break the file into new files of 1,000 line pieces each.
CIt will break the file into new files of 1,024 kilobyte pieces each.
DIt will break the file into new files that are no more than 5% of the size of the original file.
What is the difference between the i and a commands of the vi editor?
Ai (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.
Bi (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.
Ci (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.
Di (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.
What is the effect of the egrep command when the -v option is used?
AIt enables color to highlight matching parts.
BIt only outputs non-matching lines.
CIt shows the command's version information.
DIt changes the output order showing the last matching line first.
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.)
Asource /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
Erun /usr/local/bin/runme.sh
Which of the following commands changes the ownership of file.txt to the user dan and the group staff?
Achown dan/staff file.txt
Bchown dan:staff file.txt
Cchown -u dan -g staff file.txt
Dchown dan -g staff file.txt
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.)
What output will the following command sequence produce?
echo '1 2 3 4 5 6' | while read a b c; do
echo result: $c $b $a;
done