Double Delight Sale: Flat 70% + Addl. 30% Off + 30-days Extra Lab on all Courses | Use Coupon DS30 in Checkout | Offer Expires In

  Enroll Now

Linux Basics

36 / 85
   

Permissions: Assignment - Owner can change, others can only read

  1. Create a new file called myemptyfile in your home directory. You can use:

    cd ~
    touch myemptyfile
    
  2. Check its permissions using:

    ls -l myemptyfile
    
INSTRUCTIONS
  • Go to your home directory using cd ~
  • If the file myemptyfile doesn't exist, create it using touch myemptyfile
  • Using chmod, give it permissions such that only the Owner of a file should be able to modify. Everyone else (Group and Others) should be able to only read.
  • ls -l myemptyfile should print something like this:

-rw-r--r-- 1 user123 user123 0 Oct 24 07:40 myemptyfile


No hints are availble for this assesment

Answer is not availble for this assesment


Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...