How to change file owner in linux


Modify the user of file1.txt in linux as user1


chown user1 file1.txt


chown :  modify the owner or all groups of the file
Was this helpful?

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.