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

20 Qs

File Server XI TKJ

File Server XI TKJ

12th Grade

15 Qs

Uji Pengetahuan Sistem Operasi Linux

Uji Pengetahuan Sistem Operasi Linux

9th - 12th Grade

12 Qs

Linux Basic

Linux Basic

1st - 12th Grade

20 Qs

Qüestionari E1 i E2

Qüestionari E1 i E2

12th Grade

14 Qs

File Type Extensions

File Type Extensions

8th Grade - University

10 Qs

File Formats & File Naming

File Formats & File Naming

KG - University

15 Qs

Adobe Illustrator - Get to Know Illustrator

Adobe Illustrator - Get to Know Illustrator

7th - 12th Grade

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