Linux Fundamentals for Cloud and DevOps
test -f README.mdOverview
Section titled “Overview”Documentation-only learning assignment.
What You Will Build
Section titled “What You Will Build”Architecture Diagram
Section titled “Architecture Diagram”Prerequisites
Section titled “Prerequisites”- Install or review: Linux, Shell.
- No cloud provider credentials are required by the project metadata.
- This project can be practiced locally before you publish portfolio evidence.
- Open the safety guide before running commands that create infrastructure.
Credentials And Cost Warning
Section titled “Credentials And Cost Warning”Cost risk is low. Cloud target: no cloud provider. Cloud credentials needed: No. Always use your own account, never commit secrets, and confirm cleanup before creating paid infrastructure.
Step-By-Step Lab
Section titled “Step-By-Step Lab”Use this flow before you run commands:
- Read the cost and credential warning above.
- Review the validation, troubleshooting, cleanup, and portfolio proof sections below.
- Follow the original project guide preserved near the bottom of this page.
- Return to the validation and cleanup checks before you capture portfolio evidence.
Validation Checks
Section titled “Validation Checks”Run the project validation command before and after meaningful changes:
test -f README.mdTroubleshooting
Section titled “Troubleshooting”- Run
test -f README.mdfirst so local tooling issues are visible early. - If a command fails, check tool versions, working directory, and required environment variables.
Cleanup
Section titled “Cleanup”Cleanup is available or expected for this lab. Use the cleanup or destroy steps in the guide below, then confirm that local clusters, containers, cloud resources, buckets, state files, and CI secrets are no longer active.
Portfolio Proof
Section titled “Portfolio Proof”- Validation command output:
test -f README.md - Screenshot or terminal proof: Architecture notes plus validation output
- Notes explaining what changed, what failed, and how you fixed it
- Cleanup evidence, especially for cloud or Kubernetes resources
Original Project Guide
Section titled “Original Project Guide”The original README content is preserved here for lab-specific commands and context. Headings are intentionally demoted so the page outline stays focused on the standard lab flow.
New to Linux? Below assignment covering all the required basics of Linux to be familiar for an DevOps engineer.
Skills
Section titled “Skills”Below skills are required to complete the deployment steps:
Linux User Management, Permissions, Directory Structure, File Systems, File Management
Pre-Requisites
Section titled “Pre-Requisites”Login to AWS cloud and create Linux based EC2 instance to complete the below assignment.
Deployment
Section titled “Deployment”- Login to the server as super user and perform below
- Create users and set passwords – user1, user2, user3
- Create Groups – devops, aws
- Change primary group of user2, user3 to ‘devops’ group
- Add ‘aws’ group as secondary group to the ‘user1’
- Create the file and directory structure shown in the above diagram.
- Change group of /dir1, /dir7/dir10, /f2 to “devops” group
- Change ownership of /dir1, /dir7/dir10, /f2 to “user1” user.
- Login as user1 and perform below
- Create users and set passwords – user4, user5
- Create Groups – app, database
- Login as ‘user4’ and perform below
- Create directory – /dir6/dir4
- Create file – /f3
- Move the file from “/dir1/f1” to “/dir2/dir1/dir2”
- Rename the file ‘/f2′ to /f4’
- Login as ‘user1’ and perform below
- Create directory – “/home/user2/dir1”
- Change to “/dir2/dir1/dir2/dir10” directory and create file “/opt/dir14/dir10/f1” using relative path method.
- Move the file from “/opt/dir14/dir10/f1” to user1 home directory
- Delete the directory recursively “/dir4”
- Delete all child files and directories under “/opt/dir14” using single command.
- Write this text “Linux assessment for an DevOps Engineer!! Learn with Fun!!” to the /f3 file and save it.
- Login as ‘user2’ and perform below
- Create file “/dir1/f2”
- Delete /dir6
- Delete /dir8
- Replace the “DevOps” text to “devops” in the /f3 file without using editor.
- Using Vi-Editor copy the line1 and paste 10 times in the file /f3.
- Search for the pattern “Engineer” and replace with “engineer” in the file /f3 using single command.
- Delete /f3
- Login as ‘root’ user and perform below
- Search for the file name ‘f3’ in the server and list all absolute paths where f3 file is found.
- Show the count of the number of files in the directory ‘/’
- Print last line of the file ‘/etc/passwd’
- Login to AWS and create 5GB EBS volume in the same AZ of the EC2 instance and attach EBS volume to the Instance.
- Login as ‘root’user and perform below
- Create File System on the new EBS volume attached in the previous step
- Mount the File System on /data directory
- Verify File System utilization using ‘df -h’ command – This command must show /data file system
- Create file ‘f1’ in the /data file system.
- Login as ‘user5’ and perform below
- Delete /dir1
- Delete /dir2
- Delete /dir3
- Delete /dir5
- Delete /dir7
- Delete /f1 & /f4
- Delete /opt/dir14
- Logins as ‘root’ user and perform below
- Delete users – ‘user1, user2, user3, user4, user5’
- Delete groups – app, aws, database, devops
- Delete home directories of all users ‘user1, user2, user3, user4, user5’ if any exists still.
- Unmount /data file system
- Delete /data directory
- Login to AWS and detach EBS volume to the EC2 Instance and delete the volume and then terminate EC2 instance.
All done? still not confident? repeat the steps!
Happy Learning!
Hit the Star! ⭐
Section titled “Hit the Star! ⭐”If you are planning to use this repo for learning, please hit the star. Thanks!
Source Files On GitHub
Section titled “Source Files On GitHub”The full learning flow stays on this page. Open GitHub only when a step asks you to inspect code, fork the lab, or download source assets.