Answer Posted / hr@tgksolutions.com
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 |
Post New Answer View All Answers
What is the use of sed command in unix?
What is the behavioural difference between cmp and diff commands?
Differentiate cat command from more command.
How does shebang work?
What is awk good for?
How do I delete files from command prompt?
Who invented grep?
Name the general commands in using unix os for a beginner?
What is “chmod” command?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
What does grep v do?
What is unix command line?
What is grep and how do you use it?
What happens when we execute a unix command?
What does touch command do in unix?