ValaxyTech / Weekly-Assignments

8 stars 88 forks source link

Linux Directory Structure #2

Open iwayqtech opened 3 years ago

iwayqtech commented 3 years ago

linux-directory

Scenarios: Instructions:

  1. If any permission issues, You would need to fix the complete the task.

  2. Login as root user:

    1. Create Users - User1, User2, User3, User4 & password for each
      1. Create groups - devops, aws
      2. Add user2, user3 to devops group.
      3. Add user4 to aws group
      4. Create directory structure mentioned in the diagram.
      5. Change group of /dir1, /dir7/dir10, /f2 to "devops" group.
    2. Change ownership of /dir1, /dir7/dir10, /f2 to "user1" user.
  3. Login as user1:

    1. Create directory - "/dir6/dir4"
      1. Create file - "/f3"
      2. Move the file from "/dir1/f1" to "/dir2/dir1/dir2"
      3. delete the file "/dir2/dir1/dir2/f1"
      4. delete /dir7
    2. Write some data to /f2 file and save it.
  4. Login as user2

    1. Create file "/dir1/f2"
    2. delete /dir6
    3. delete /dir8
    4. delete /f2
    5. delete /f3
    6. Write some data to /f1 file and save it.
    7. delete /f1
  5. Login as user4

    1. create file "/dir1/f2"
      1. delete /dir1
    2. using singlecommand delete /opt/dir14/f3 & /opt/dir14/dir10
  6. Login as user3:

    1. delete /dir2
    2. delete /dir3
      1. delete /dir4/dir12/f4
      2. delete /dir4
  7. All Done? Still not confident? repeat the steps!

Kapil-aws commented 3 years ago

Completed today's assignment Assignment 9 6 21

Anil-55 commented 3 years ago

2021-06-10 (5) 2021-06-10 (6) 2021-06-10 (7) 2021-06-10 (8)

srmanthena83 commented 3 years ago

Completed the task like below.

[root@testmachine /]# ls -ld /dir1 /dir7/dir10 drwxr-xr-x. 2 User1 devops 16 Jun 10 11:03 /dir1 drwxr-xr-x. 2 User1 devops 6 Jun 10 11:09 /dir7/dir10 [root@testmachine /]#

ka994 commented 3 years ago

please find the attachement,regading task linux1 linux2

grakshay commented 3 years ago

Screenshot (2) Screenshot (3) Screenshot (4) Screenshot (5) Screenshot (6)

manjushav commented 3 years ago

image

srilu1273 commented 3 years ago

luinx

abhi6133 commented 3 years ago

image completed the linux directory assignment

Nagarjuna-5 commented 3 years ago

![Uploading 16269747624547521441221832859656.jpg…]() Done the task

Nagarjuna-5 commented 3 years ago

![Uploading 16269747624547521441221832859656.jpg…]() Done the task

Nagarjuna-5 commented 3 years ago

![Uploading 16269749928287874364384545383407.jpg…]()

Nagarjuna-5 commented 3 years ago

![Uploading 16269757106784589335103238049066.jpg…]()