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?

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 ":"



Leave a Reply 2

Your email address will not be published. Required fields are marked *


liti

liti

Correct Answer: C

mr_tienvu

mr_tienvu

I agree with the answer.