Font size
WorksheetsLinux+ LX0-103 Quiz A
Total questions: 10
Worksheet time: 10mins
Which of the following commands prints a list of usernames (first column) and their primary group (fourth
column) from the /etc/passwd file?
fmt -f 1,4 /etc/passwd
split -c 1,4 /etc/passwd
cut -d : -f 1,4 /etc/passwd
paste -f 1,4 /etc/passwd
Which of the following commands is used to change options and positional parameters for a running Bash?
history
set
bashconf
envsetup
Regarding the command:
nice -5 /usr/bin/prog
Which of the following statements is correct?
/usr/bin/prog is executed with a nice level of -5.
/usr/bin/prog is executed with a nice level of 5.
/usr/bin/prog is executed with a priority of -5.
/usr/bin/prog is executed with a priority of 5.
What of the following statements are true regarding /dev/ when using udev? (Choose TWO.)
Entries for all possible devices get created on boot even if those devices are not connected.
Additional rules for udev can be created by adding them to /etc/udev/rules.d/.
When using udev, it is not possible to create block or character devices in /dev/ using mknod.
The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup.
The content of /dev/ is stored in /etc/udev/dev and is restored during system startup.
How many fields are in a syntactically correct line of /etc/fstab?
3
4
5
6
7
Which of the following is the device file name for the second partition on the only SCSI drive?
/dev/hda1
/dev/sda2
/dev/sd0a2
/dev/sd1p2
Which of the following file permissions belong to a symbolic link?
-rwxrwxrwx
+rwxrwxrwx
lrwxrwxrwx
srwxrwxrwx
Which of the following commands can be used to display the inode number of a given file?
inode
ls
ln
cp
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? (Select TWO.)
source /usr/local/bin/runme.sh
. /usr/local/bin/runme.sh
/bin/bash /usr/local/bin/runme.sh
/usr/local/bin/runme.sh
run /usr/local/bin/runme.sh
Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?
chmod u=rwx,go=rx /bin/foo
chmod o+rwx,a+rx /bin/foo
chmod 577 /bin/foo
chmod 775 /bin/foo
