chown command to change owner of a directory code example Example: change owner directory linux sudo chown -R username:group directory