Exercise (File Management)
- Log into Linux either directly to VM or through SSH
- Create a file called 'permissions.txt' containing the text 'Hello World' using the echo command
- View the file permissions using the ls command
- Update the file permissions to read and execute only for all users using the octal (number) chmod command
- Check file permissions have been updated using the ls command
- Add write file permissions for the owner using the symbol chmod command
- Change the owner of the file to the root user using the sudo chown command
- Check the file owner has been updated using the ls command
- Set the group of the file to the root group using the sudo chown command
- Check the file group has been updated using the ls command