Computer Science: An Overview: Global Edition (12th Edition)

Published by Pearson Higher Education
ISBN 10: 1292061162
ISBN 13: 978-1-29206-116-0

Chapter 3 - Operating Systems - Chapter Review Problems - Page 164: 32

Answer

See the explanation

Work Step by Step

a. The operating system restricts access to approved users through user authentication mechanisms such as usernames and passwords. When a user attempts to access the system, they are prompted to provide their credentials. The operating system verifies these credentials against its user database to determine if the user is authorized to access the system. Only users with valid credentials matching those stored in the system's database are granted access. b. To view the processes currently in the process table, you can use the command `ps` (short for "process status") in the command-line interface. When you enter `ps` command, the operating system retrieves information from the process table and displays it to the user. This information typically includes the process ID (PID), the terminal associated with the process, the CPU and memory usage, and the command that initiated the process. By default, `ps` displays only the processes associated with the current terminal session, but you can use various options with `ps` command to customize the output according to your requirements. C.To restrict access to your files from other users on the same machine, you typically set file permissions in the operating system. In Unix-based systems like Linux or macOS, this is done using the chmod command. You can use this command to change the permissions of your files so that only you (the owner) have access to them, while other users are denied access. The correct answer is to adjust file permissions to restrict access.
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.