change the owner of a file in linux code example
Example 1: change user linuxcommand ch
chown USER:GROUP FILE
Change the user and grop for an entire folder:
chown -R USER:GROUP FILE
Example 2: add owner linux
# chown new-owner filename
chown USER:GROUP FILE
Change the user and grop for an entire folder:
chown -R USER:GROUP FILE
# chown new-owner filename