Linux changes the user name of a file f1 to user, the user group is group code

  

chown user:group /path/to/f1

For example, the previous owner and group of the profile are rootroot@cyper- Pc:/home/dasusr1# ls -al /home/dasusr1/.profile -rw-r--r-- 1 root root 675 Jan 6 00:09 /home/dasusr1/.profile

Use chown Command change: root@cyper-pc:/home/dasusr1# chown dasusr1:dasadm .profile

Review:

root@cyper-pc:/home/dasusr1# ls -al /home/dasusr1/.profile -rw-r--r-- 1 dasusr1 dasadm 675 Jan 6 00:09 /home/dasusr1/.profile

Copyright © Windows knowledge All Rights Reserved