How can you change the owner or group of a file?
The chown command is used to change the owner of a file or directory. For instance, chown newowner filename would change the file's owner to "newowner". If you want to change both the owner and the group simultaneously, you will use a syntax like chown newowner:newgroup filename. For altering only the group, the chgrp command is used. As with most UNIX commands, care should be taken with these tools, ensuring that ownership is only granted to trusted users.
| Is This Answer Correct ? | 0 Yes | 0 No |
what is the cmd to display the last exit status in UNIX?
what is the use of "test" command in unix?
What is the use of find command in unix?
what is virtual machine?
What is {} in find command?
What difference between cmp and diff commands?
What Command is used to make a directory?
What does pipe () return?
Write a command to find all of the files which have been accessed within the last 30 days.
5 Answers Google, IBM, Satyam,
How would you change all occurrences of a value using VI?
How do you know about running processes of a particular user?
How can you copy files or directories?