How to perform chown and chgrp in one command

In order to change both a file’s owner and group we can do this:

chown trump file
chgrp trump file

but can I do both commands in one approach or one command?

Asked By: yael

||

per chown man page chown user:group file:

chown trump:trump file
Answered By: sebasth
Categories: Answers Tags: , , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.