Search Header Logo

Mastering Basic Linux Commands

Authored by NetworkHaz NetworkHaz

Information Technology (IT)

12th Grade

Used 1+ times

Mastering Basic Linux Commands
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to list all files and directories in the current directory, including hidden ones?

ls -l

ls -a

ls -h

ls -d

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the command to create a new directory called "assignments"?

mkdir assignments

newdir assignments

createdir assignments

makedir assignments

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command will display the contents of a file named "notes.txt" one page at a time?

cat notes.txt

less notes.txt

open notes.txt

show notes.txt

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you search for the word "science" in a file called "report.txt" using grep?

grep science report.txt

grep report.txt science

find science report.txt

search science report.txt

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to display your current working directory?

pwd

cwd

dir

whereami

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the command "ls -lh" do?

Lists files in long format with human-readable file sizes

Lists only hidden files

Lists files in reverse order

Lists files with their permissions only

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command will move a file named "essay.doc" to a directory called "Documents"?

mv essay.doc Documents/

cp essay.doc Documents/

move essay.doc Documents/

transfer essay.doc 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?