2 Linux File Commands

2 Linux File Commands

12th Grade

15 Qs

quiz-placeholder

Similar activities

6/15 2nd Linux Quizizz

6/15 2nd Linux Quizizz

7th - 12th Grade

10 Qs

Cyber Security Club Assessment

Cyber Security Club Assessment

9th - 12th Grade

20 Qs

Create Basic Expressions and grep Quizizz

Create Basic Expressions and grep Quizizz

9th - 12th Grade

20 Qs

Python File handling - 2

Python File handling - 2

12th Grade

20 Qs

Binary File Handling Python

Binary File Handling Python

12th Grade

10 Qs

POCS-Ch. 4 Review (Comprehension)

POCS-Ch. 4 Review (Comprehension)

7th - 12th Grade

20 Qs

KM4 Mock

KM4 Mock

7th - 12th Grade

10 Qs

FILE HANDLING

FILE HANDLING

12th Grade

14 Qs

2 Linux File Commands

2 Linux File Commands

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Rinchen Tso

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary function of the mv command?

To delete files and directories.

To compress files and directories.

To move or rename files and directories.

To copy files and directories.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which option of the mv command allows you to rename a file?

The mv command can only rename directories, not files.

The mv command allows you to rename a file by specifying the current filename and the new filename.

The mv command requires a destination directory to rename a file.

The mv command is used to copy files only.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you move a file to a different directory using mv?

mv filename.txt /path/to/directory/

mv filename.txt to /path/to/directory/

mv /path/to/directory/filename.txt

move filename.txt /path/to/directory/

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the -i option do when used with the mv command?

The -i option ignores all files during the move.

The -i option creates a backup of the original file.

The -i option changes the file permissions before moving.

The -i option prompts for confirmation before overwriting files.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can you use mv to move multiple files at once? If so, how?

You can only move files if they are in the same directory.

No, mv can only move one file at a time.

Yes, you can use mv to move multiple files at once by listing them before the destination.

You must use a different command to move multiple files.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the wc command in Linux?

The purpose of the wc command in Linux is to count lines, words, and characters in files.

To compress files for storage

To change file permissions

To display the contents of a file

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which option of the wc command counts the number of lines in a file?

wc -c

wc -w

wc -m

wc -l

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?

Discover more resources for Computers