Search Header Logo

CSE105_CAP1_filePermissions

Authored by Pushpendra Pateriya

Computers

University

Used 1+ times

CSE105_CAP1_filePermissions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the chmod command in Linux?

Change file ownership

Modify file permissions

Compress files

Create new directories

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following commands grants execute permission to the user on script.sh?

chmod u-w script.sh

chmod a+x script.sh

chmod 777 script.sh

chmod u+x script.sh

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does chmod 754 file.txt do?

Sets file.txt permissions to r--r--r--.
Sets file.txt permissions to rw-r--r--.
Sets file.txt permissions to rwxr-x---.
Sets file.txt permissions to rwxr-xr--.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you remove write permission for others on document.txt?

chmod o-w document.txt
chmod a-w document.txt
chmod g-w document.txt
chmod o+r document.txt

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does chmod 644 file.txt do?

Allows only the owner to execute the file

Grants write permissions to the group

Allows everyone to read the file

Grants read and write permissions to the owner, read-only for others

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does chmod a+r file.txt do?

Adds read permission only for the owner

Adds read permission for all users

Removes execute permission from all users
Adds write permission for all users

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does chmod 000 file.txt do?

Makes the file readable

Removes all permissions from everyone

Changes the file permissions to 777

Grants all permissions to the group

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?