Task 3.11 Flashcards
(13 cards)
What command is used to delete everything in /mnt/part2?
rm -rf /mnt/part2/*
The command ‘rm -rf’ is used to forcefully remove files and directories recursively.
What is created in /mnt/part2 for displaying the output of the ‘top’ command?
A file called cruncher
The ‘top’ command displays real-time system information.
What command confirms the ownership and permissions of the cruncher file?
ls -l
The ‘ls -l’ command lists files in long format, showing permissions and ownership.
What is the password for the user ablack?
black
This is the password used to log in as the user ablack.
How many .exe files does Anne currently have?
3
This refers to the number of executable files in Anne’s directory.
What command checks if Anne can see the cruncher file?
ls -l /mnt/part2/cruncher
This command checks for the presence and details of the cruncher file.
What must be created as Anne to link to the cruncher program?
A symbolic link
A symbolic link allows access to the cruncher file from another location.
What happens when Anne tries to execute the cruncher file?
Anne cannot execute it due to insufficient permissions
Anne is not the owner of the cruncher file, thus lacking execute permissions.
What command is used to change the ownership of the cruncher file to Anne?
chown ablack cruncher
The ‘chown’ command changes file ownership in Unix-like systems.
Who can run the chown command?
Only root
The ‘chown’ command requires root privileges to execute.
What command confirms the change of ownership has worked?
ls -l
Running ‘ls -l’ again will show the updated ownership details.
What command changes the group ownership of the cruncher file?
chgrp ablack cruncher
The ‘chgrp’ command changes the group associated with a file.
What must Anne do after changing the ownership to execute the cruncher file?
Create a symbolic link to cruncher
After changing ownership, Anne must create a link to access the file.