wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Command Line

Total questions: 9

Worksheet time: 6mins

Name
Class
Date
1.

what command is used to change directories?

a)

cd

b)

cp

c)

co

d)

cr

2.

If you are currently in "Observations" how would you change directories into "Location 2" in one command?

a)

cd Location2

b)

cd ../Location2

c)

cd ../../Location2

d)

cd ../Location1/Location2

3.

What option for the "ls" command will sort by last modified and show hidden files?

a)

-ta

b)

-lal

c)

-tal

d)

-lt

4.

can you create multiple files at a time using the "touch" command?


$ touch file1.txt file2.txt file3.txt

a)

yes

b)

no

5.

Choose the option that would create a new folder called: favorite-images

a)

mkdir "favorite-image"

b)

mkdir favorite-images.txt

c)

mkdir favorite-image

d)

mkdir favorite-images

6.

If you are typing a pathway and you try to use the "Tab" key on your keyboard to autocomplete the name of the folder or file and it doesn't work... what's wrong?

a)

"Tab" doesn't autocomplete

b)

Your relative path is wrong and you do not have access to those files or folders

c)

You shutdown your computer without going through the proper steps.

d)

You need to update zoom

7.

mv can be used to ____ a files location and also ____ a file.

a)

copy, move

b)

copy, rename

c)

move, delete

d)

move, rename

8.

How come some commands output information to the terminal and others don't?

a)

Magic

b)

It's random

c)

Because that's how they are built

d)

:shrug:

9.

What should my goal be for each new language and technology I learn how to use?

a)

study, study, study until everything is committed to memory

b)

realize I don't know it like the back of my hand and go do it again

c)

Be confident in the fact I was able to learn it well enough to get through the modules. Know that it exists and I have used it, and knowing it exists or believing it exists are just as powerful in development. Know that I can always look up what I cannot remember.

d)

Master it before I try to learn anything else.