Professional Documents
Culture Documents
Question 1
Correct
a. The command chown bob test.txt changes the owner of test.txt to user bob.
b. The command chown -R bob test_folder makes bob the new owner of test_folder and all its content.
c. The command chown test.txt bob changes the owner of test.txt to user bob.
d. The command chown alice bob changes the owner of all of bob' files and alice becomes the new owner.
The command chown -R bob test_folder makes bob the new owner of test_folder and all its content.
Question 2
Correct
Which error message appears if the executable flag (x) is not set for a bash script file?
a. Cannot execute
c. Permission denied
d. Invalid script
https://moodle.tu-ilmenau.de/mod/quiz/review.php?attempt=1983&cmid=18614 1/7
11/2/23, 8:38 PM Quiz: User Rights, Programms, and Bash Scripting: Attempt review
Question 3
Partially correct
Assume you want to install an application on a Linux machine. Which of the following statements is true?
Question 4
Correct
a. The command chmod 600 test.txt changes the permission of the file test.txt to 600.
b. The command chmod test.txt 600 changes the permission of the file test.txt to 600.
c. The command chmod 755 test_folder changes the permission of the all files in test_folder to 755.
d. The command chmod test_folder 755 changes the permission of the test_folder to 755.
https://moodle.tu-ilmenau.de/mod/quiz/review.php?attempt=1983&cmid=18614 2/7
11/2/23, 8:38 PM Quiz: User Rights, Programms, and Bash Scripting: Attempt review
Question 5
Correct
File and folder permission are often noted as octal numbers. In the following, fill in the correct octal number for the described file permission.
1) A file that can only be read and modified by the owner: 600
2) A script file that all the users can read and execute, but only the owner can modify the file: 755
3) A folder that all users can open and read its content, but only the owner can modify the folder's content: 755
4) A file that every user can read, but that can only be modified by the owner: 644
Question 6
Correct
"A bash script has to start with #!/bin/bash . Otherwise it cannot be executed.
Select one:
True
False
Question 7
Correct
"A bash script file must have the file ending .sh. Otherwise it its not possible to run the script."
Select one:
True
False
https://moodle.tu-ilmenau.de/mod/quiz/review.php?attempt=1983&cmid=18614 3/7
11/2/23, 8:38 PM Quiz: User Rights, Programms, and Bash Scripting: Attempt review
Question 8
Partially correct
The user alice can change the own password using the password command. However, adding and deleting users requires the
root user. This user can then add new users like bob using the deluser alice command or delete existing users like alice
https://moodle.tu-ilmenau.de/mod/quiz/review.php?attempt=1983&cmid=18614 4/7
11/2/23, 8:38 PM Quiz: User Rights, Programms, and Bash Scripting: Attempt review
Question 9
Correct
Assume you use the command ls -l to list files and folders in a directory. The first column of the output gives information about the type of
object and the permission.
1)
The object is a folder
The owner can open it, read the content, and write to the folder
drwxr-xr-x
Users from the same group as the owner can open it and read the content
All other users can open it and read the content
2)
The object is a file
The owner can read it and write into the file
-rwxrwx---
Users from the same group as the owner can read it and write into the file
All other users cannot read the file, write to the for, or execute it.
3)
The object is a file
-r--r--r--
Everyone can read the file
4)
The object is a file
Only the owner can read it -r--------
→ drwxr-xr-x, 2)
The object is a file
The owner can read it and write into the file
Users from the same group as the owner can read it and write into the file
All other users cannot read the file, write to the for, or execute it.
→ -rwxrwx---, 3)
The object is a file
Everyone can read the file
→ -r--r--r--, 4)
The object is a file
Only the owner can read it
→ -r--------
https://moodle.tu-ilmenau.de/mod/quiz/review.php?attempt=1983&cmid=18614 5/7
11/2/23, 8:38 PM Quiz: User Rights, Programms, and Bash Scripting: Attempt review
Question 10
Correct
File and folder permission can be note using a character representation for a binary representation. In the following map correct binary
representation to the given character representation.
Question 11
Correct
Linux offers several tools to control processes. In the following match the correct commands to the questions.
Which command prints detailed information about all processess on the machine to the console? → ps aux,
Which command can be used to view the resource consumption of the different process in real-time and available without installation? → top
https://moodle.tu-ilmenau.de/mod/quiz/review.php?attempt=1983&cmid=18614 6/7
11/2/23, 8:38 PM Quiz: User Rights, Programms, and Bash Scripting: Attempt review
Question 12
Correct
a. The root user can severely damage the operation system, e.g., by deleting system files.
b. The root user should only be used if necessary, e.g, for installing applications. All others things should be done with the regular
user account.
c. Switching to the root users can be done by using the su command and the own user password.
d. Switching to the root users can be done by using the su command and the root password.
e. The root user can access and modify all files, even if the file owner restricted the access using the file permissions.
The root user can access and modify all files, even if the file owner restricted the access using the file permissions. ,
The root user can severely damage the operation system, e.g., by deleting system files. ,
The root user should only be used if necessary, e.g, for installing applications. All others things should be done with the regular user account.
https://moodle.tu-ilmenau.de/mod/quiz/review.php?attempt=1983&cmid=18614 7/7