
2 Linux File Commands

Quiz
•
Computers
•
12th Grade
•
Medium
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
Similar Resources on Wayground
16 questions
Java Chapter 1 CS2

Quiz
•
9th - 12th Grade
14 questions
FILE HANDLING

Quiz
•
12th Grade
15 questions
File Handling in Python

Quiz
•
12th Grade
10 questions
File Handling in Python

Quiz
•
11th - 12th Grade
20 questions
Cyber Security Club Assessment

Quiz
•
9th - 12th Grade
15 questions
File Management

Quiz
•
9th - 12th Grade
20 questions
File Handling Revision- Text file Handling Quiz 1

Quiz
•
12th Grade
10 questions
MOAC Word 2016 Lesson 1

Quiz
•
8th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade