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

Shell Scripts Interview questions

Uploaded by

hhgsharish
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Shell Scripts Interview questions

Uploaded by

hhgsharish
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Shell Scripts Interview questions

1.​ What All Scripts You Have Written To Automate - Why You Written To Monitor Disk
Space -Don't You Have Monitoring Tools
2.​ Write Script In Python Or Shell To Tag Ec2 Instance If It's Not Tagged If It's Tagged It
Has To Skip It
3.​ Write Script In Python Or Shell Given Port Number Is Open Or Not Open
4.​ How Would You Design Shell Script To Interact With These Platform Nd Deploy Appln
Scales Services And Performance Rolling Update
5.​ Write Script To Turn Of Aws Ec2 Instances At 5pm And Turn On In Morning 8am
Everyday
6.​ Write Script To Delete All Empty Files Under A Directory
7.​ Write A Shell Script That Provides A Menu-Driven Interface For Commonly Used Git
Commands. The Script Should Allow Users To:
a.​ Clone A Repository.
b.​ Pull The Latest Changes From The Current Branch.
c.​ List All Branches (Local And Remote).
d.​ Create And Switch To A New Branch.
e.​ Commit All Changes With A User-Provided Message.
f.​ Display The Current Repository’s Status.
g.​ Revert To A Specific Commit By Its Hash.
h.​ Show Details Of The Last Commit.
i.​ Fetch Updates From The Remote Rep
8.​ The Script Should Handle Errors Gracefully And Prompt The User To Make A Valid
Choice.
9.​ Write A Script Delete The Recent 10 Text Files
10.​Write A Script To Monitor Services, If Any Service Is Stopped , Restart The Service
11.​Find And Delete The Large Files That Are Greater Than 100mb,That Are Created 90
Days Ago And Send A Mail To The Concerned Client
12.​Reverse The Content Of File
13.​Script To Check The Number Of .Log Files In The System And To Delete The .Log Files
Under /Var Which Were Modified In The Last 90 Days And 15 Days Ago.
14.​Problem Statement: Automatically Start The Instance At 6:00am And Shutdown The
Instance At 6:00pm

You might also like