Search Header Logo

Linux Navigation and File Paths

Authored by Nikki Sullivan

Computers

11th Grade

Used 7+ times

Linux Navigation and File Paths
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to display the current directory in Linux?

dir

ls

cd

pwd

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the Linux file system hierarchy, what does the / (root) directory represent?

Base folder

Top-level directory

Main directory

Primary folder

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between a relative path and an absolute path in Linux?

A relative path is relative to the current working directory, while an absolute path starts from the root directory (/) of the file system.

A relative path can only be used for directories, while an absolute path is used for files

An absolute path is always shorter than a relative path in Linux

A relative path starts from the root directory (/) of the file system, while an absolute path is relative to the current working directory

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you navigate to the parent directory in Linux?

cd .

cd ..

cd /

cd ~

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

touch

create

newfile

make

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you delete a file named 'example.txt' in Linux?

delete example.txt

rm example.txt

rm -rf example.txt

remove example.txt

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the command to list all files and directories in a directory in Linux?

ls -a

cd /

ls -r

dir -l

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?