Task B – Create a Text Based Menu Driven BASH Script
- Details
- Category: Level 1, System Administration (Linux BASH Script)
- Published: Thursday, 21 January 2021 14:32
- Hits: 790
Task B – Create a Text Based Menu Driven BASH Script
B1. Use a suitable text editor to create a new menu driven bash script called TaskB.sh.
Save your new script to the ‘yourusername/home’ directory of your virtual machine.
Your menu must use suitable BASH commands to provide the following functionality :
Option 1:
Display the file permissions of your TaskB.sh script
(2 marks)
Option 2:
Retrieve all system updates for your Solus OS. You are permitted to enter any
relevant passwords at the beginning of this process but you are not permitted to type
in anything else, until all of the updates have been installed.
(2 marks)
Option 3:
Display all of the files in the ‘yourusername/home’ directory, that have been modified
over the last 24 hours.
(2 marks)
Option 4:
Copy the ‘anatine-indicator.svg’ file from the following directory:
/usr/share/icons/Papirus/22x22/panel/
then paste it onto the ‘Desktop’ of the current user. Finally, rename the copied file as
’ducky.svg’.
(4 marks)
Option 5:
Create a new tar file called ‘my_backup.tar.gz’. This file must contain a backup copy
of everything that currently exists inside the ‘yourusername/home’ directory APART
FROM ‘.profile’ and ‘Templates’. Once you have created the my_backup.tar.gz file,
you must extract its contents into the /tmp directory.
(5 marks)
You must ensure that your menu contains suitable ' error handling ' features .
(3 marks)
You must document your BASH code via the use of relevant comments.
(3 marks)
Your menu must be professional in appearance and usability.
(4 marks)
'Advanced' Functionality: Create your own 'advanced' system administration
functionality and incorporate the appropriate BASH code in your menu.
(15 marks)
B2. Produce a screencast called 'Task_B.mp4'. Your screencast must demonstrate each of
the working elements of your TaskB.sh menu. Please note that your 'Task_B.mp4'
screencast MUST not exceed 10 minutes in length.
(5 marks)
Task B screencast