wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Linux Practice Quiz 2

Total questions: 12

Worksheet time: 4mins

Name
Class
Date
1.

Which command will allow a user to change the permissions of a file?

a)

chperm

b)

chown

c)

chmod

d)

perm

2.

Changing the user owner of a file requires administrative access.
True or False?

a)

True

b)

False

3.

The mv command requires at least two arguments.
True or False?

a)

False

b)

True

4.

Which command can be used to copy a file?

a)

cp

b)

rm

c)

cy

d)

mv

5.

Which option to the rm command will allow a user to delete directories?

a)

-l

b)

-d

c)

-a

d)

-r

6.

Which of the following lines would not be returned by the grep ‘[^0-9]’ file.txt command?

a)
  • My favorite food is avocados.

b)
  • I am 37 years old

c)
  • Hello my name is Joe.

d)
  • 3121991

7.

Which of the following lines would be returned by the grep ‘b[oe]t’ file.txt command?

a)

beet

b)

bet

c)

boot

d)

boet

8.

Which of the following commands will not shutdown the system immediately?

a)
  • shutdown now ‘Goodbye World!’

b)
  • shutdown now

c)
  • shutdown

d)
  • shutdown +0

9.

Which of the following commands will display every process?

a)
  • ps –all

b)
  • ps -e

c)
  • ps -a

d)
  • ps

10.

The ps command requires administrative access.
True or False?

a)

True

b)

False

11.

Which of the following will delete all of a package’s files?

a)
  • apt-get remove

b)
  • apt-get trash

c)
  • apt-get purge

d)
  • apt-get delete

12.

The root user can change the password of any user.
True or False?

a)

False

b)

True