Skip to content

Commit 2fbec18

Browse files
committed
DevOps: Push DevOps-Project-03
* Fun with Linux for Cloud & DevOps Engineers Signed-off-by: NotHarshhaa <reddyharshhaa12@gmail.com>
1 parent fdc9f7e commit 2fbec18

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed

DevOps Project-03/Project-03.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Fun with Linux for Cloud & DevOps Engineers
2+
3+
***New to Linux? Below assignment covering all the required basics of Linux to be familiar for an DevOps engineer.***
4+
5+
![Linux](https://imgur.com/xedzuwy.png)
6+
7+
## Skills
8+
9+
Below skills are required to complete the deployment steps:
10+
11+
Linux User Management, Permissions, Directory Structure, File Systems, File Management
12+
13+
## Pre-Requisites
14+
15+
Login to AWS cloud and create Linux based EC2 instance to complete the below assignment.
16+
17+
## Deployment
18+
19+
1. Login to the server as super user and perform below
20+
1. Create users and set passwords – user1, user2, user3
21+
2. Create Groups – devops, aws
22+
3. Change primary group of user2, user3 to ‘devops’ group
23+
4. Add ‘aws’ group as secondary group to the ‘user1’
24+
5. Create the file and directory structure shown in the above diagram.
25+
6. Change group of /dir1, /dir7/dir10, /f2 to “devops” group
26+
7. Change ownership of /dir1, /dir7/dir10, /f2 to “user1” user.
27+
2. Login as user1 and perform below
28+
1. Create users and set passwords – user4, user5
29+
2. Create Groups – app, database
30+
3. Login as ‘user4’ and perform below
31+
1. Create directory – /dir6/dir4
32+
2. Create file – /f3
33+
3. Move the file from “/dir1/f1” to “/dir2/dir1/dir2”
34+
4. Rename the file ‘/f2′ to /f4’
35+
4. Login as ‘user1’ and perform below
36+
1. Create directory – “/home/user2/dir1”
37+
2. Change to “/dir2/dir1/dir2/dir10” directory and create file “/opt/dir14/dir10/f1” using relative path method.
38+
3. Move the file from “/opt/dir14/dir10/f1” to user1 home directory
39+
4. Delete the directory recursively “/dir4”
40+
5. Delete all child files and directories under “/opt/dir14” using single command.
41+
6. Write this text “Linux assessment for an DevOps Engineer!! Learn with Fun!!” to the /f3 file and save it.
42+
5. Login as ‘user2’ and perform below
43+
1. Create file “/dir1/f2”
44+
2. Delete /dir6
45+
3. Delete /dir8
46+
4. Replace the “DevOps” text to “devops” in the /f3 file without using editor.
47+
5. Using Vi-Editor copy the line1 and paste 10 times in the file /f3.
48+
6. Search for the pattern “Engineer” and replace with “engineer” in the file /f3 using single command.
49+
7. Delete /f3
50+
6. Login as ‘root’ user and perform below
51+
1. Search for the file name ‘f3’ in the server and list all absolute paths where f3 file is found.
52+
2. Show the count of the number of files in the directory ‘/’
53+
3. Print last line of the file ‘/etc/passwd’
54+
7. Login to AWS and create 5GB EBS volume in the same AZ of the EC2 instance and attach EBS volume to the Instance.
55+
8. Login as ‘root’user and perform below
56+
1. Create File System on the new EBS volume attached in the previous step
57+
2. Mount the File System on /data directory
58+
3. Verify File System utilization using ‘df -h’ command – This command must show /data file system
59+
4. Create file ‘f1’ in the /data file system.
60+
9. Login as ‘user5’ and perform below
61+
1. Delete /dir1
62+
2. Delete /dir2
63+
3. Delete /dir3
64+
4. Delete /dir5
65+
5. Delete /dir7
66+
6. Delete /f1 & /f4
67+
7. Delete /opt/dir14
68+
10. Logins as ‘root’ user and perform below
69+
1. Delete users – ‘user1, user2, user3, user4, user5’
70+
2. Delete groups – app, aws, database, devops
71+
3. Delete home directories of all users ‘user1, user2, user3, user4, user5’ if any exists still.
72+
4. Unmount /data file system
73+
5. Delete /data directory
74+
11. Login to AWS and detach EBS volume to the EC2 Instance and delete the volume and then terminate EC2 instance.
75+
76+
All done? still not confident? repeat the steps!
77+
78+
**Happy Learning!**
79+
80+
# Hit the Star! ⭐
81+
***If you are planning to use this repo for learning, please hit the star. Thanks!***
82+
83+
#### Author by [Harshhaa Reddy](https://github.com/NotHarshhaa)

0 commit comments

Comments
 (0)