File Comparison and Permission Commands

File Comparison and Permission Commands

12th Grade

15 Qs

quiz-placeholder

Similar activities

7. Linux_chmod_2

7. Linux_chmod_2

11th Grade - University

18 Qs

LCL review

LCL review

9th - 12th Grade

16 Qs

Linux-2 Quiz 2 -- LAMP

Linux-2 Quiz 2 -- LAMP

1st - 12th Grade

15 Qs

Photoshop Selections and More

Photoshop Selections and More

9th - 12th Grade

18 Qs

Unit 1 Cyber Review

Unit 1 Cyber Review

9th - 12th Grade

20 Qs

MOAC Word 2016 Lesson 1

MOAC Word 2016 Lesson 1

8th Grade - University

10 Qs

Linux commands

Linux commands

9th - 12th Grade

10 Qs

1 File Commands in Linux

1 File Commands in Linux

12th Grade

16 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?