wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux+ LX0-103 Quiz A

Total questions: 10

Worksheet time: 10mins

Name
Class
Date
1.

Which of the following commands prints a list of usernames (first column) and their primary group (fourth

column) from the /etc/passwd file?

a)

fmt -f 1,4 /etc/passwd

b)

split -c 1,4 /etc/passwd

c)

cut -d : -f 1,4 /etc/passwd

d)

paste -f 1,4 /etc/passwd

2.

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

a)

history

b)

set

c)

bashconf

d)

envsetup

3.

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.

4.

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

a)

Entries for all possible devices get created on boot even if those devices are not connected.

b)

Additional rules for udev can be created by adding them to /etc/udev/rules.d/.

c)

When using udev, it is not possible to create block or character devices in /dev/ using mknod.

d)

The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup.

e)

The content of /dev/ is stored in /etc/udev/dev and is restored during system startup.

5.

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

a)

3

b)

4

c)

5

d)

6

e)

7

6.

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

a)

/dev/hda1

b)

/dev/sda2

c)

/dev/sd0a2

d)

/dev/sd1p2

7.

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

a)

-rwxrwxrwx

b)

+rwxrwxrwx

c)

lrwxrwxrwx

d)

srwxrwxrwx

8.

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

9.

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.)

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

10.

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

a)

chmod u=rwx,go=rx /bin/foo

b)

chmod o+rwx,a+rx /bin/foo

c)

chmod 577 /bin/foo

d)

chmod 775 /bin/foo