PrepAway - Latest Free Exam Questions & Answers

Which chown command will change the ownership to foo and the group to bar on a file named biglist?

Which chown command will change the ownership to foo and the group to bar on a file named biglist?

A.
chown foo/bar biglist

B.
chown -u foo -g bar biglist

C.
chown foo:bar biglist

D.
chown –user foo –group bar biglist

Explanation/Reference:
From the manual pages:
SYNOPSIS
       chown [OPTION]… [OWNER][:[GROUP]] FILE…

There is no parameter for user and/or group, and the correct seperation character is the ":"

One Comment on “Which chown command will change the ownership to foo and the group to bar on a file named biglist?


Leave a Reply