Search Header Logo
1.3.2 Command Line Interface Lesson

1.3.2 Command Line Interface Lesson

Assessment

Presentation

Computers

10th Grade

Practice Problem

Hard

Created by

Chris Barnabei

FREE Resource

28 Slides • 23 Questions

1

media

2

Follow Along

Go to apps.cyber.org, log in with info I gave you, and set up your Kali Linux machine and follow along with lesson at around slide 10.

3

media

4

Open Ended

Describe the difference between a Command Line Interface (CLI) and a Graphical User Interface (GUI) in operating systems.

5

media

6

Multiple Choice

Which of the following is NOT a reason to use the Command Line Interface (CLI)?

1

It helps you understand how to navigate files

2

You can operate your PC even if the GUI is broken

3

It is required for all open-source software

4

It helps secure your computer against hackers

7

media

8

Multiple Select

What are other names for the Terminal?

1

Command Prompt

2

Shell

3

Window

4

DOS

9

media

10

media

11

Multiple Select

Which of the following are true about the prompt in Windows and Linux terminals?

1

It indicates the computer is ready to receive commands

2

It shows the current directory or folder

3

It always uses the symbol $

4

It can show the user and host information

12

media

13

Open Ended

What is a 'path' in the context of file systems, and why is it important when using the command line?

14

media

15

Multiple Choice

What command can you use in Linux to get help or a manual for another command?

1

help

2

man

3

info

4

assist

16

media

17

Open Ended

What does the 'echo' command do in a terminal?

18

media

19

Multiple Choice

Which command would you use to list all files, including hidden ones, in your current directory?

1

ls -a

2

ls -l

3

pwd

4

cd

20

media

21

Fill in the Blanks

Type answer...

22

media

23

media

24

Fill in the Blanks

Type answer...

25

Open Ended

After running the command 'ls -l', what additional information do you see compared to just running 'ls'?

26

media

27

Multiple Select

Select all the commands that can be used to change directories in a UNIX terminal.

1

cd foldername

2

cd ..

3

cd ~

4

ls -a

28

media

29

Multiple Choice

Which command is used to change into the Documents directory from your home directory in a Linux terminal?

1

cd Documents

2

ls Documents

3

pwd Documents

4

mv Documents

30

media

31

Open Ended

Explain the difference between using 'cd /' and 'cd ~' in a Linux terminal. What directories do these commands take you to?

32

media

33

Multiple Select

Which of the following commands can be used to create or manage files in a Linux terminal?

1

touch filename

2

cp file1 file2

3

mv file1 file2

4

ls filename

34

media

35

Fill in the Blanks

36

media

37

Multiple Choice

After creating a new directory called StuffFolder, which command would you use to move into that directory?

1

cd StuffFolder

2

ls StuffFolder

3

mv StuffFolder

4

rm StuffFolder

38

media

39

media

40

Multiple Choice

What are the two reasons why the command 'rmdir StuffFolder' might not work?

1

The folder is hidden and you are not an admin

2

It is not empty and you are still inside the directory

3

The folder is read-only and you are not the owner

4

The folder name is incorrect

41

media

42

media

43

Multiple Select

Which of the following are benefits of using the 'cat' command over 'less' when reading files?

1

Faster display of file contents

2

Ability to scroll through pages

3

No need to type [q] to exit

4

Displays file one page at a time

44

Open Ended

Explain the difference between using 'cat' and 'less' to read files in Linux. When would you use each command?

45

media

46

Fill in the Blanks

Type answer...

47

media

48

Multiple Choice

What command would you use to successfully list the contents of the /root folder if you get a permission denied message with 'ls /root'?

1

sudo ls /root

2

ls -a /root

3

su ls /root

4

sudo su /root

49

media

50

Open Ended

Describe the process of switching from a normal user to the root user and then back to the original user in Linux. What commands are used and what changes do you observe?

51

media
media

Show answer

Auto Play

Slide 1 / 51

SLIDE