The chown command can also be used to modify both the owner and group of the file simultaneously by using either of the following syntax:
$ chown owner:group <filename_or_dirname>
$ chown owner.group <filename_or_dirname>
The chown command can be used to change the owner of the file named myfile to root and the group of the file to wheel, as shown in the following screenshot: