chown

The command that changes which user, and optionally which group, owns a file.

In more detail

Write user:group to change both at once. Giving a file to someone else needs root, which is why chown nearly always appears after sudo.

Example

sudo chown ada:staff report.txt

Related terms

Taught in

References

Certification courses