Search Header Logo

1 File Commands in Linux

Authored by Rinchen Tso

Computers

12th Grade

Used 3+ times

1 File Commands in Linux
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which option with cat displays line numbers?

cat -n

cat --number

cat -l

cat -e

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you concatenate multiple files using cat?

Execute 'cat file1 file2 -o output_file' to join files.

Use 'merge file1 file2 > output_file' to combine files.

Use 'cat file1 file2 ... > output_file' to concatenate files.

Run 'cat > output_file file1 file2' to concatenate files.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the ls command?

To delete files

To change directory

To copy files

To list directory contents.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which option with ls shows hidden files?

ls -a

ls -l

ls -1

ls -h

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you list files in a detailed format using ls?

ls -h

ls -l

ls -R

ls -a

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the cp command do?

The cp command moves files to a different location.

The cp command compresses files.

The cp command copies files and directories.

The cp command deletes files and directories.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which option with cp allows you to copy directories recursively?

-a

-r

-f

-u

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?