
Bash Shell Scripting- Monitor File system usage and send mail alerts
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of the shell script discussed in the video?
To update the system software regularly.
To backup important files automatically.
To monitor file system usage and send alerts.
To delete unused files from the system.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to check file system usage on Unix-like systems?
ps aux
df -h
top
ls -l
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the role of the 'awk' command in the script?
To schedule tasks.
To delete files.
To print specific fields from a line.
To send email alerts.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'sed' command in the script?
To replace the percentage symbol with nothing.
To sort the file systems by usage.
To create a new file.
To move files to a different directory.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does the script determine if a file system's usage exceeds the threshold?
By counting the number of files.
By checking the file size.
By comparing the usage percentage to a predefined threshold.
By checking the last modified date.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if a file system's usage exceeds the threshold?
The file system is deleted.
An email alert is sent.
The script stops running.
The system shuts down.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the function of a cron job in the context of this script?
To send alerts to the administrator.
To manually run the script.
To update the script with new features.
To automate the execution of the script at regular intervals.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?