wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Chapter 3

Total questions: 15

Worksheet time: 15mins

Name
Class
Date
1.

What is a path which begins with a forward slash ( / ) called

(a)  

2.

The ​ (a)   command will display the current directory you are in.

Choose from the below words
cd
relative
Tilde(~)
Absolute
pwd
3.

Which path begins in the current working directory?

a)

Relative

b)

Absolute

c)

pwd

d)

cd

4.

Which command will change your current directory to another directory?

a)

cd

b)

pwd

c)

ls

d)

file

5.

When using the ls -F command, the ​ (a)   character represents a directory.

Choose from the below words
/
@
*
|
=
6.

Match the following

.bin

Binary File

.png

Source code file

.c

Text file

.txt

Image file

.sh

Shell Script

7.

Which command will provide a long listing of files and directories?

(a)  

8.

Which command will display the type of any file?

a)

file

b)

ls

c)

pwd

d)

directory

9.

What does the following command do?

ls -AF

a)

Classifies almost all files and directories in the directory.

b)

Lists only files in current directory.

c)

Lists all files and directories, including special files, and classifies them.

d)

List almost all files but does not sort them.

10.

The ​ (a)   command will display the contents of files and the ​ (b)   command will display the contents of files in reverse order.

Choose from the below words
cat
tac
file
dir
ls
11.

Which command will display the first 10 lines of a file?

a)

head

b)

tail

c)

cat

d)

tac

12.

Which command will list the last 10 lines of a file?

a)

tail

b)

cat

c)

tac

d)

head

13.

Which command will display one page at a time until you reach the end of the file, then drop you to a terminal?

(a)  

14.

Which command will display the contents of a file one page at a time and allow you to go back up once you reach the end of the file?

(a)  

15.

A ​ (a)   contains characters such as an *, ? and [ ].

Choose from the below words
Regular Expression
meta-character
grep
sed