linux change user and group 1

linux change user and group


Here is what the above code is Doing:
1. Create a new directory called “test”
2. Change the current working directory to “test”
3. Create a new file called “test.txt”
4. Write the string “Hello World” to “test.txt”
5. Close the file
6. Change the permissions of “test.txt” to read, write, and execute for the owner only
7. Change the owner of “test.txt” to “root”
8. Change the group of “test.txt” to “wheel”

Similar Posts