Search Header Logo

M0-Command Line Basics Quiz

Authored by Katie Sylvia

Other

Professional Development

M0-Command Line Basics Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to list the contents of a directory in the command line?

`cd`

`ls`

`mkdir`

`rm`

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to change the current directory to a specified directory?

`ls`

`cd`

`pwd`

`touch`

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to display the current working directory?

`ls`

`cd`

`pwd`

`echo`

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a new directory named "projects"?

`mkdir projects`

`cd projects`

`ls projects`

`rm projects`

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to remove a file named "example.txt"?

`rm example.txt`

`rmdir example.txt`

`delete example.txt`

`erase example.txt`

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you display the contents of a file named "notes.txt"?

`cat notes.txt`

`ls notes.txt`

`cd notes.txt`

`rm notes.txt`

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to move a file named "report.txt" to a directory named "documents"?

`mv report.txt documents/`

`cp report.txt documents/`

`rm report.txt documents/`

`ls report.txt documents/`

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?