QuestionQ68Verified/GNU and Unix CommandsCopy linkReport a problemAsk AstroTutorSave questionWhich chown command sets the ownership of a file named data.txt to user dave and group staff?Achown dave/staff data.txtBchown -u dave -g staff data.txtCchown --user dave --group staff data.txtDchown dave+staff data.txtEchown dave:staff data.txtShow AnswerAnswerExplanationThe chown utility uses the owner:group operand format to set both attributes in one command. dave:staff assigns user ownership to dave and group ownership to staff.Show comments4Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion