wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux permission and file system

Total questions: 14

Worksheet time: 7mins

Name
Class
Date
1.

Which command allows the user to set permissions for files and directories?

a)

chgrp

b)

chmod

c)

umask

d)

su

2.

Which of the following is an example of Absolute mode?

a)

chmod a=r filename

b)

chmod filename

c)

chmod

d)

chmod 757 filename

3.

Which command displays the permissions for files and directories?

a)

ls -a

b)

ls -r

c)

ls -l

d)

ls

4.

Which command is used to change the user or group of a file or directory?

a)

chown

b)

chmod

c)

umask

d)

su

5.

Which statement reflects the principle of least privilege?

a)

Give a small number of users the most amount of access to all files.

b)

Give no access to any files for a large number of users, and give only the network engineer access to all files.

c)

Give the least number of users the least amount of file access first, and grant more permissions only when the user has a need.

d)

Give access to all groups, and each group can decide which individual has access to each file.

6.

A Linux administrator downloaded a file from the internet. The administrator believes that the file is corrupted. Which Linux command can the administrator use to check whether a file is corrupted?

a)

grep

b)

cksum

c)

find

d)

diff

7.

A Linux administrator must compare and display the outputs of two different files. Which Linux command can the administrator use to compare the file outputs?

a)

diff

b)

df

c)

find

d)

hash

8.

Which statement about symbolic links is true?

a)

Symbolic links can’t link to any directory.

b)

Symbolic links point to actual files in any directory.

c)

Symbolic links point to a hard link, instead of the actual file.

d)

If a symbolic link links to a file and the file is deleted, the link will still work.

9.

Which option for the tar command enables a user to create a tarball?

a)

-c tarball.tar

b)

-xf tarball.tar

c)

-v tarball

d)

-cvf tarball.tar

10.

Which statements about Linux file names are true? (Select TWO.)

a)

File names are case sensitive.

b)

Multiple files with the same name can exist in a directory.

c)

File names can contain spaces.

d)

Extensions are optional.

e)

Extensions are automatically mapped to applications.

11.

Which directory contains a user’s personal files by default?

a)

/dev

b)

/home

c)

/etc

d)

/var

12.

Which command displays the absolute path to the user’s current location in the file system?

a)

cat

b)

cp

c)

pwd

d)

tail

13.

Which command changes the current working directory to a different directory?

a)

mv

b)

mkdir

c)

rm

d)

cd

14.

A systems administrator must see a list of all files in the /var/log directory in long format. Which command and option should the administrator use?

a)

cat -names /var/log

b)

cd /var/log

c)

ls -la /var/log

d)

/var/log -la -ls