Linux Bash Tip | chmod

If you’re changing the user & group ownership to the SAME person..

You can streamline it from 2 commands:

chown ray /var/tmpFile
chgrp ray /var/tmpFile

To 1 command, only typing the username once:

chown ray: /var/tmpFile

Leave a comment