wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Linux Commands and Cybersecurity Assessment #1

Total questions: 50

Worksheet time: 24mins

Name
Class
Date
1.

What is the command to display your current directory location in the terminal?

a)

cd

b)

ls

c)

pwd

d)

dir

2.

Which command is used to create a new directory in Linux?

a)

makedir

b)

mkdir

c)

newdir

d)

create

3.

What does the "ls -l" command do?

a)

Lists all hidden files

b)

Lists files with detailed information including permissions

c)

Lists only executable files

d)

Lists files sorted by size

4.

Which command creates an empty file?

a)

new

b)

create

c)

touch

d)

make

5.

What command would you use to display the contents of a text file in the terminal?

a)

show

b)

view

c)

read

d)

cat

6.

How do you copy a file named "note.txt" to a new file called "backup.txt"?

a)

cp note.txt backup.txt

b)

copy note.txt backup.txt

c)

mv note.txt backup.txt

d)

duplicate note.txt backup.txt

7.

Which command opens a text file in a simple terminal-based editor?

a)

edit

b)

nano

c)

view

d)

open

8.

What command is used to delete a file?

a)

delete

b)

remove

c)

rm

d)

erase

9.

Which option with the "rm" command forces removal without confirmation?

a)

-f

b)

-r

c)

-d

d)

-c

10.

What does "rm -rf *" do?

a)

Removes only executable files

b)

Removes all files in the current directory without confirmation

c)

Removes only hidden files

d)

Renames all files to have an asterisk

11.

Which command moves a file from one location to another?

a)

mv

b)

move

c)

cp

d)

transfer

12.

What command downloads a file from a URL?

a)

download

b)

get

c)

wget

d)

fetch

13.

Which command downloads and displays the content of a URL?

a)

curl

b)

wget

c)

browse

d)

open

14.

What keyboard shortcut terminates a running command?

a)

Ctrl+Z

b)

Ctrl+X

c)

Ctrl+C

d)

Ctrl+T

15.

What does "chmod +x filename" do?

a)

Makes the file read-only

b)

Makes the file executable

c)

Makes the file hidden

d)

Makes the file writable

16.

How do you run an executable file in the current directory?

a)

run filename

b)

exec filename

c)

./filename

d)

start filename

17.

Which flag can be added to most commands to see the help documentation?

a)

-h or --help

b)

-d or --doc

c)

-m or --manual

d)

-i or --info

18.

What command initiates an SSH connection to a remote server?

a)

connect

b)

remote

c)

ssh

d)

telnet

19.

Which command displays an HTML file in the terminal?

a)

show

b)

cat

c)

display

d)

html

20.

Which command opens a file in a text editor?

a)

edit

b)

nano

c)

text

d)

open

21.

What command is used to search for specific text within a file?

a)

find

b)

search

c)

grep

d)

lookup

22.

Which command exits the binary visual editor (bvi)?

a)

exit

b)

quit

c)

:q

d)

escape

23.

What command displays the manual for Python?

a)

help python

b)

man python

c)

python --help

d)

python -m

24.

How would you decrypt a Python file using ende.py?

a)

python3 ende.py --decrypt

b)

python3 ende.py -d

c)

python3 ende.py decrypt

d)

python3 ende.py /d

25.

What symbol represents your home directory in Linux paths?

a)

@

b)

#

c)

~

d)

$

26.

What keyboard shortcut stops a current process and returns to the terminal?

a)

Ctrl+C

b)

Ctrl+Z

c)

Ctrl+X

d)

Ctrl+D

27.

How would you list files with indicators showing their type (e.g., directories with /, executables with *)?

a)

ls -t

b)

ls -i

c)

ls -F

d)

ls -m

28.

Which command would you use to output text to the terminal?

a)

print

b)

output

c)

echo

d)

display

29.

What does "chmod -x filename" do?

a)

Makes the file hidden

b)

Makes the file read-only

c)

Removes execute permission from the file

d)

Makes the file writeable

30.

In picoCTF, what format are flags typically presented in?

a)

picoCTF{flag_text_here}

b)

flag{text_here}

c)

CTF{capture_the_flag}

d)

{flag:captured}

31.

Which command would you use to view the help information for the ende.py script?

a)

python3 ende.py help

b)

python3 ende.py -h

c)

help ende.py

d)

man ende.py

32.

What does the "~" symbol represent when shown in a terminal prompt?

a)

Root directory

b)

Current directory

c)

Home directory

d)

Parent directory

33.

How would you recursively remove a directory and all its contents?

a)

rm -all directory

b)

rm -r directory

c)

delete -r directory

d)

rmdir -f directory

34.

What command would you use to change to the parent directory?

a)

cd ..

b)

cd -

c)

cd up

d)

cd parent

35.

Which command would display only the first few lines of a file?

a)

start

b)

head

c)

top

d)

begin

36.

What command would you use to display the last few lines of a file?

a)

end

b)

bottom

c)

tail

d)

last

37.

Which command counts the number of lines, words, and characters in a file?

a)

count

b)

wc

c)

stats

d)

size

38.

What does the command cd - do?

a)

Changes to the home directory

b)

Changes to the root directory

c)

Changes to the previous directory

d)

Moves up one directory level

39.

How would you list all files, including hidden ones, in a directory?

a)

ls -a

b)

ls -h

c)

ls -all

d)

ls --hidden

40.

In picoCTF, what might you need to do to a binary file before running it?

a)

Compile it

b)

Rename it

c)

Make it executable with chmod +x

d)

Convert it to text

41.

Change a password for a user

a)

pwd

b)

password

c)

passwd

d)

chpass

42.

Show all running processes (like Task Manager)

a)

proc

b)

show

c)

top

d)

process

43.

To log out of the shell program, use...

a)

logout

b)

exit

c)

df

d)

close

44.

The command used to locate a file in a directory:

a)

get

b)

apt-get

c)

find

d)

grep

45.

Display information about your IP address (NOT configure it).

a)

ip

b)

ifconfig

c)

iwconfig

d)

chmod

46.

Get rid of a mess of useless information on the terminal screen

a)

cls

b)

clear

c)

wipe

d)

blank

47.

Show available disk space and file system information.

a)

df

b)

ds

c)

disk

d)

showdisk

48.

What is the correct way to copy file1.txt to file2.txt?

a)

mv file1.txt file2.txt

b)

cp file1.txt

c)

cp file1.txt file2.txt

d)

touch file1.txt file2.txt

49.

What command do you use if the terminal is acting strangely?

a)

clear

b)

reset

c)

restart

d)

shutdown

50.

How do you move or rename oldname.txt to newname.txt?

a)

cp oldname.txt newname.txt

b)

mv oldname.txt newname.txt

c)

rename oldname.txt newname.txt

d)

touch newname.txt