wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Files and Directories

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What are file permissions used for?

a)

File permissions are used to delete files.

b)

File permissions are used to encrypt files.

c)

File permissions are used to organize files.

d)

File permissions are used to control access to files.

2.

What is the purpose of the File System Hierarchy?

a)

To encrypt files and directories for security purposes

b)

To provide a structured organization and storage system for files and directories in an operating system.

c)

To create a backup of files and directories

d)

To limit access to certain files and directories

3.

Name three file manipulation commands.

a)

ls, cd, touch

b)

grep, sed, awk

c)

chmod, chown, chgrp

d)

cp, mv, rm

4.

How do you navigate to a parent directory in the command line?

a)

cd /

b)

cd ~

c)

cd /parent

d)

cd ..

5.

What is the importance of file system organization?

a)

File system organization is only important for security purposes.

b)

File system organization is important for efficient storage, data access, performance, and security.

c)

File system organization only affects data access.

d)

File system organization has no importance.

6.

What are the three types of file permissions?

a)

read, write, execute

b)

start, stop, pause

c)

copy, paste, delete

d)

open, save, close

7.

What is the root directory in the File System Hierarchy?

a)

/

b)

/var

c)

/home

d)

/root

8.

How do you create a new directory in the command line?

a)

mkdir [directory_name]

b)

rm [directory_name]

c)

touch [directory_name]

d)

cd [directory_name]

9.

What is the purpose of the 'ls' command?

a)

To create a new file.

b)

To delete files and directories.

c)

To rename files and directories.

d)

To list files and directories.

10.

What is the difference between absolute and relative paths?

a)

Absolute paths specify the exact location of a file or directory in relation to the root directory, while relative paths specify the location of a file or directory in relation to the current working directory.

b)

Absolute paths and relative paths are the same thing.

c)

Absolute paths are used for files and relative paths are used for directories.

d)

Absolute paths specify the location of a file or directory in relation to the current working directory, while relative paths specify the exact location of a file or directory in relation to the root directory.