0% found this document useful (0 votes)
22 views

Dev Ops Assignment

Devops class notes

Uploaded by

Mahi Reddy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Dev Ops Assignment

Devops class notes

Uploaded by

Mahi Reddy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Shell script assignments.

1. Write a shell script to print present date,time and hostname

Expected output:

date: ***

hostname: ***

2. Write a shell script to create a directory and give 756 permission for it.

3. Write a shell script to take your name as input and print Hello <name>

Expected output:

Enter your name>Harry

Hello Harry

4. Write a shell script to show free RAM memory and CPU in server

5. Write a shell script to install JAVA(or set JAVA home)

6. Write a shell script to ask for name and age.. then it should show output as whether he/she is younger
or old

7. Write a shell script to create a file with name as "myfile" and with content as "Hello guys"

8. Write a script to copy a file to other machine(VM)

9. Write a script to ask for a two-digit number and then countdown to 0

10. Write a script to find the Linux version exactly as below

"Linux Version is el6"


Bigger assignments

1. Create a python script to get total cpu, average CPU for last 7 days, total memory and consumed
memory of an linux instance.

2. Create a frontend application (HTML/CSS/JS) and a backend api application. Deploy them in 2 docker
containers and establish communication between each.

3. Create an ansible script to do below tasks

copy any package tar.gz file to server

extract the archived file

install the package

check the version of the installed package

4. Upgrade a Ubuntu instance from OS version 18.04 to 22.04 and document all steps with relevant
screenshots. Install Python 3.1 on it.

5. Create an ANT script to build & package an application. Integrate this with Jenkins by creating a job
which will automatically trigger when new changes are added to github branch.

You might also like