list directory

list directory

12th Grade

10 Qs

quiz-placeholder

Similar activities

Year 8 Unit 2 CMD, Command line

Year 8 Unit 2 CMD, Command line

7th - 12th Grade

14 Qs

OS ICE BREAKING

OS ICE BREAKING

KG - University

10 Qs

Android & Android Studio 1

Android & Android Studio 1

7th - 12th Grade

11 Qs

LINUX CLI

LINUX CLI

12th Grade

10 Qs

Module 4

Module 4

6th - 12th Grade

14 Qs

Command Line #2

Command Line #2

9th - 12th Grade

10 Qs

Linux Chapter 3 Review

Linux Chapter 3 Review

9th - 12th Grade

12 Qs

La shell di Linux

La shell di Linux

9th - 12th Grade

15 Qs

list directory

list directory

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Shlomo G

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the basic use case of the ls command?

To list the names of the files and directories in the working directory

To create a new directory

To change the current working directory

To display the metadata of files

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you include hidden entries in the directory listing using ls?

Using the -h option

Using the -l option

Using the -a option

Using the -d option

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the -l option with ls command display?

Only the size of files

Only hidden files

Metadata about the file

Only the names of files and directories

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you list the contents of a directory other than your working directory?

By providing its pathname as an argument to ls

By changing the working directory first

By using the -d option followed by the directory name

By using the -o option followed by the directory name

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the effect of prefixing the ls command with a backward slash?

It lists only hidden files

It lists the contents in reverse order

It changes the output to long format

It avoids alias expansion

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which directory contains the home directories of all regular Armlab users?

/u

/home

/usr

/var

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of files does ls -a display that ls does not?

Only files larger than 1MB

Only files modified in the last 24 hours

Hidden files

Executable files only

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?