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 |
How i'll delete a particular line from the file? Please give answer as soon as possible. Thanks in advance.
How to find the files that are accessed before 10 minutes?
What is pipe command in unix?
if we create a file, in that 10 rows(means 1,2,....9,10 like). i want 7 row exactly, which command use in unix? plz send this question.
Which command is used to kill the last background job?
What is merge command in unix?
what does the command 'wc' do?
what is the difference between pipe(|) and tee command..
what is mount ,tell me about mount ,how can u use in real time project??
how will you convert a general file to a hidden file?
How do you stop a running process?
Explain ‘library functions’ with respect to unix commands?