Exercise (File Management)

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

results matching ""

    No results matching ""