wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux Fundamentals

Total questions: 7

Worksheet time: 3mins

Name
Class
Date
1.

What does the following command do?


touch media/popular.txt

a)

It creates a file named popular.txt in your working directory

b)

It creates a file named popular.txt in the media directory.

c)

It changes the working directory to the media directory.

d)

This command is not formed correctly.

2.

If the current working directory is home/, which of the following commands will navigate to the movies/ directory in the tree below?


home/

media/

movies/

music/

a)

mkdir media/movies

b)

ls media/movies

c)

cd movies

d)

cd media/movies

3.

What is a directory?

a)

A command to a computer

b)

A tree structure

c)

A file

d)

A folder used to store files

4.

How do you print the current working directory?

a)

pwd

b)

mkdir

c)

cd

d)

ls

5.

How would you create a file named text.txt in your current directory?

a)

touch text.txt

b)

mkdir text.txt

c)

touch home/text.txt

d)

ls text.txt

6.

Which of the following commands in Linux is used to display information about files and directories contained within the current working directory?

a)

pwd

b)

ls

c)

grep

d)

ps

7.

Which of the answers listed below refers to a Unix command for copying files and directories?

a)

pwd

b)

cp

c)

ls

d)

copy