Question

Difficulty: EasymacOS and Linux Operating System Features and Tools

A desktop technician working on a Linux workstation needs to reassign the owner of a document from one user account to another. Which command-line utility should the technician use to modify the file ownership?

  1. chownAnswer
  2. B
    chmod
  3. C
    ls
  4. D
    ps

Answer

The chown utility is the correct command used to change user ownership of files and directories in Linux and macOS operating systems.
The chown command (short for 'change owner') allows system administrators and file owners to change the assigned user account or group associated with a file or directory in Unix-like operating systems.

Step-by-Step Solution

1
Identify the goal specified in the scenario
The goal is to change the owner of a file on a Linux workstation.
Different CLI tools manage permissions, processes, and file metadata separately.
2
Select the appropriate Linux/macOS command for file ownership
The chown (change owner) command is designed specifically for modifying file owner and group settings.
Understanding core command responsibilities ensures correct file administration.

Key Concept

Linux/macOS command-line utilities for file owner and permission management
Rate this question