Linux Command Line Basics

Linux Command Line Basics

Assessment

Flashcard

Computers

University

Medium

Created by

Quizizz Content

Used 2+ times

FREE Resource

Student preview

quiz-placeholder

26 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What command is used to list files and directories in Linux?

Back

ls

Answer explanation

The ls command is used to list files and directories in the current location.

2.

FLASHCARD QUESTION

Front

Which command prints the current working directory? Options: ls, pwd, cd, mv, rm

Back

pwd

Answer explanation

The pwd command displays the full path of the current directory.

3.

FLASHCARD QUESTION

Front

How do you change to the root directory using the command line?

Back

cd /

Answer explanation

cd / moves you to the root directory of the Linux filesystem.

4.

FLASHCARD QUESTION

Front

What is the purpose of the man command?

Back

To view manual pages of commands

Answer explanation

The man command provides detailed documentation on commands.

5.

FLASHCARD QUESTION

Front

Which command is used to create a new directory? Options: mkdir, touch, rm, nano, ls

Back

mkdir

Answer explanation

The mkdir command creates a new directory.

6.

FLASHCARD QUESTION

Front

How do you move a file named file1.txt to a directory named docs?

Back

mv file1.txt docs/

Answer explanation

The mv command moves files and directories.

7.

FLASHCARD QUESTION

Front

What command is used to delete a file? Options: rm, mv, cp, ls, pwd

Back

rm

Answer explanation

The rm command is used to remove files.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?