You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

14 lines
487 B

  1. #!/bin/sh
  2. rm -f _ex3.txt
  3. echo "lol" > _ex3.txt
  4. chmod a-x _ex3.txt
  5. ls -l _ex3.txt > ex3.txt
  6. chmod 707 _ex3.txt
  7. ls -l _ex3.txt >> ex3.txt
  8. chmod a=u _ex3.txt
  9. ls -l _ex3.txt >> ex3.txt
  10. echo "660 means read and write permissions (6) for user and the group" >> ex3.txt
  11. echo "775 means read, write, and execute permissions (7) for user and the group, and read and execute permissions (5) for others" >> ex3.txt
  12. echo "777 means read, write, and execute permissions (7) for everyone" >> ex3.txt