Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux Directory Structure #2

Open
iwayqtech opened this issue Jun 9, 2021 · 12 comments
Open

Linux Directory Structure #2

iwayqtech opened this issue Jun 9, 2021 · 12 comments
Assignees

Comments

@iwayqtech
Copy link
Collaborator

iwayqtech commented Jun 9, 2021

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
      2. Create groups - devops, aws
      3. Add user2, user3 to devops group.
      4. Add user4 to aws group
      5. Create directory structure mentioned in the diagram.
      6. 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"
      2. Create file - "/f3"
      3. Move the file from "/dir1/f1" to "/dir2/dir1/dir2"
      4. delete the file "/dir2/dir1/dir2/f1"
      5. 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"
      2. delete /dir1
    2. using singlecommand delete /opt/dir14/f3 & /opt/dir14/dir10
  6. Login as user3:

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

@iwayqtech iwayqtech self-assigned this Jun 9, 2021
@Kapil-aws
Copy link

Completed today's assignment
Assignment 9 6 21

@Anil-55
Copy link

Anil-55 commented Jun 9, 2021

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

@srmanthena83
Copy link

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
Copy link

ka994 commented Jun 11, 2021

please find the attachement,regading task
linux1
linux2

@grakshay
Copy link

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

@manjushav
Copy link

image

@srilu1273
Copy link

luinx

@abhi6133
Copy link

image
completed the linux directory assignment

@Nagarjuna-5
Copy link

Uploading 16269747624547521441221832859656.jpg…
Done the task

1 similar comment
@Nagarjuna-5
Copy link

Uploading 16269747624547521441221832859656.jpg…
Done the task

@Nagarjuna-5
Copy link

Uploading 16269749928287874364384545383407.jpg…

@Nagarjuna-5
Copy link

Uploading 16269757106784589335103238049066.jpg…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants