Chown command

From Notes_Wiki
Revision as of 05:31, 15 October 2022 by Saurabh (talk | contribs) (Created page with "Home > Rocky Linux or CentOS > Rocky Linux 9.x > Desktop tools and applications > Chown command =Change ownership of symbolic links= Normally chown changes ownership of file / directory pointed by symbolic link. To change ownership of symbolic link itself we need to use '<tt>-h</tt>' option. For example <pre> chown -h <user>:<group> <symbolic-link-name.txt> </pre> Refer: * https://unix.stackexch...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > Rocky Linux or CentOS > Rocky Linux 9.x > Desktop tools and applications > Chown command

Change ownership of symbolic links

Normally chown changes ownership of file / directory pointed by symbolic link. To change ownership of symbolic link itself we need to use '-h' option. For example

chown -h <user>:<group>  <symbolic-link-name.txt>

Refer:


Home > Rocky Linux or CentOS > Rocky Linux 9.x > Desktop tools and applications > Chown command