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 difference between pipe and xargs?
what does the 'tee' command do?
what are the differences between CUI and GUI interfaces?
52 Answers College School Exams Tests, HCL, HP, IBM, IBMR, NIIT, Talco, Wipro,
Explain iostat, vmstat and netstat.
what is kernel?
Write a grep (or grep) command that selects the lines from a file that have exactly three characters.
what is shell?
How would you change all occurrences of a value using VI?
what is difference between unix and linux?
how to change a normal file into hidden file
How do you execute a UNIX command in the background?
Explain the read, write, and execute permissions on a UNIX directory.