Task 3.11 Flashcards

(13 cards)

1
Q

What command is used to delete everything in /mnt/part2?

A

rm -rf /mnt/part2/*

The command ‘rm -rf’ is used to forcefully remove files and directories recursively.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is created in /mnt/part2 for displaying the output of the ‘top’ command?

A

A file called cruncher

The ‘top’ command displays real-time system information.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What command confirms the ownership and permissions of the cruncher file?

A

ls -l

The ‘ls -l’ command lists files in long format, showing permissions and ownership.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the password for the user ablack?

A

black

This is the password used to log in as the user ablack.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How many .exe files does Anne currently have?

A

3

This refers to the number of executable files in Anne’s directory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What command checks if Anne can see the cruncher file?

A

ls -l /mnt/part2/cruncher

This command checks for the presence and details of the cruncher file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What must be created as Anne to link to the cruncher program?

A

A symbolic link

A symbolic link allows access to the cruncher file from another location.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What happens when Anne tries to execute the cruncher file?

A

Anne cannot execute it due to insufficient permissions

Anne is not the owner of the cruncher file, thus lacking execute permissions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What command is used to change the ownership of the cruncher file to Anne?

A

chown ablack cruncher

The ‘chown’ command changes file ownership in Unix-like systems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Who can run the chown command?

A

Only root

The ‘chown’ command requires root privileges to execute.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What command confirms the change of ownership has worked?

A

ls -l

Running ‘ls -l’ again will show the updated ownership details.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What command changes the group ownership of the cruncher file?

A

chgrp ablack cruncher

The ‘chgrp’ command changes the group associated with a file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What must Anne do after changing the ownership to execute the cruncher file?

A

Create a symbolic link to cruncher

After changing ownership, Anne must create a link to access the file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly