File Comparison and Permission Commands

File Comparison and Permission Commands

12th Grade

15 Qs

quiz-placeholder

Similar activities

QUIZ DASAR DASAR PEMROGRAMAN JAVA

QUIZ DASAR DASAR PEMROGRAMAN JAVA

11th Grade - University

20 Qs

Wrażenia globlne w Linxie

Wrażenia globlne w Linxie

10th Grade - University

10 Qs

Linux Command Line Quiz

Linux Command Line Quiz

12th Grade

15 Qs

Linux M1

Linux M1

9th - 12th Grade

10 Qs

Linux Commands and Loops

Linux Commands and Loops

12th Grade

13 Qs

Python Basic files

Python Basic files

10th - 12th Grade

10 Qs

MOAC Excel 2016 Lesson 03

MOAC Excel 2016 Lesson 03

8th - 12th Grade

10 Qs

J277 Operating Systems

J277 Operating Systems

10th - 12th Grade

15 Qs

File Comparison and Permission Commands

File Comparison and Permission 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 does the comm command do?

The comm command compares two sorted files and shows their differences.

The comm command deletes duplicate lines from a file.

The comm command sorts a single file alphabetically.

The comm command merges two files into one.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you use the diff command to compare two files?

Use the command 'compare file1.txt file2.txt'.

Run 'diff --compare file1.txt file2.txt'.

Use the command 'diff file1.txt file2.txt'.

Execute 'diff file1 file2' without extensions.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary difference between the diff and comp commands?

The 'diff' command shows line-by-line differences, while 'comp' provides a general comparison.

The 'diff' command is used for merging files, while 'comp' is for splitting files.

The 'diff' command compares file sizes, while 'comp' checks for identical files.

The 'diff' command shows differences in file permissions, while 'comp' compares file ownership.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for the chmod command?

chmod -R file mode

chmod [file] [mode]

chmod file mode options

chmod [options] mode file

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the three types of file permissions in Linux?

read, write, execute

open, close, rename

create, modify, execute

read, write, delete

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you change file permissions using chmod?

Use 'changeperm file' to modify permissions.

Run 'setperm file' to adjust file access.

Execute 'permissions file' to alter settings.

Use 'chmod [options] mode file' to change file permissions.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you display only the lines that are different between two files using diff?

diff -q file1.txt file2.txt

diff -c file1.txt file2.txt

diff -i file1.txt file2.txt

diff -u file1.txt file2.txt

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?