wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux Practice Quiz 1

Total questions: 12

Worksheet time: 5mins

Name
Class
Date
1.

What does CLI stand for?

a)
  • Core Line Interface

b)
  • Command Line Interface

c)
  • Core Learning Interface

d)
  • Command Learning Interface

2.

Which of the following commands can be used to display network configuration information?

a)

netconfig

b)

pwd

c)

ifconfig

d)

net

3.

Which of the following commands will return only lines that end with test?

a)
  • grep ‘test$’ file.txt

b)
  • grep ‘$test’ file.txt

c)
  • grep ‘test^’ file.txt

d)
  • grep ‘^test’ file.txt

4.

Which of the following sets has the group permissions highlighted?

a)

rw-rw-r--

b)

rw-rw-r--

c)

rw-rw-r--

d)

rw-rw-r--

5.

The ~ (tilde) character is used to represent:

a)
  • Nothing, it doesn’t have a special meaning

b)
  • The current directory

c)
  • The directory above the current directory

d)
  • A user’s home directory

6.
  • Which of the following is not an example of a relative path?

a)
  • Documents

b)
  • /home

c)
  • Documents/Work

d)
  • home/sysadmin/Documents/School/Art

7.

Which command will print your current location in the filesystem?

a)

pwd

b)

pd

c)

pcl

d)

cd

8.

The .. (double period) characters are used to represent:

a)
  • The current directory

b)
  • Nothing, it doesn’t have a special

c)
  • The directory above the current directory

d)
  • A user’s home directory

9.

The first character in a long listing ls -l indicates:

a)
  • Hard Link Count

b)
  • File Size

c)
  • Permissions

d)
  • File Type

10.

Which option to the ls will sort the output by file size?

a)
  • -S

b)
  • -z

c)
  • -r

d)
  • -s

11.

When entering a command, do arguments or options typically come first?

a)

Options

b)
  • Arguments

12.

Which of the following is not a correct way to combine options?

a)
  • -l -r

b)
  • -r l

c)
  • -lr

d)
  • -rl