The "chown" command is used to change the ownership of a file or directory. The correct syntax for changing both the user and group ownership is "chown [user]:[group] [file]". Therefore, option B is correct as it uses the correct syntax with the colon (:) separator to specify both the user and group ownership.
Option A uses a forward slash (/) instead of a colon, which is not the correct separator.
Option C uses the "-u" and "-g" options to specify the user and group respectively, but it does not use the correct separator between the user and group.
Option D uses the "-g" option to specify the group but it does not use the correct separator between the user and group.
C is wrong because the correct syntax is "chmod u=username" and not "chmod -u username"
upvoted 1 times
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
KMAV
3 months agoBorbz
2 years, 4 months agoBorbz
2 years, 4 months ago