Question: Tasks: Directory Setup and File Creation 1 . Create a directory named Projects in the home directory. 2 . Inside Projects, create the following subdirectories:
Tasks:
Directory Setup and File Creation
Create a directory named Projects in the home directory.
Inside Projects, create the following subdirectories:
Reports
Images
Scripts
Inside the Reports folder, create two files:
weeklyreport.txt
summary.md
In the Images folder, create placeholders for:
logopng
banner.jpg
In the Scripts folder, create a simple shell script called backup.sh with the following
content:
Note: is a place holder for the name of the user you are logged in as
#binbash
tar czvf backup.tar.gz homeProjects
echo "Backup completed!"
Make backup.sh executable. Test it by running the script with the command: backupsh
File Editing and Management
Open weeklyreport.txt with your text editor of choice and add the following content:
Weekly Report
Tasks Completed:
Setup Linux directories
Practiced file permissions
Created and executed shell scripts
Rename summary.md to projectsummary.md
Copy all files from the Images folder into the Reports folder.
Managing Permissions and Ownership
Make the Reports folder readonly for everyone.
Change the permissions on logopng so only the file owner can read and write it
Set the ownership of projectsummary.md to a new group named students
Make sure to verify your changes
Process Control
Open a terminal and start a background process:
Use jobs to confirm that the process is running.
Bring the process to the foreground, then suspend it with CtrlZ
Resume the process in the background
Find the process ID PID of the sleep command.
Terminate the process using kill with the PID you identified
Documentation
Create a file named commandsused.txt in home
List all the commands you used to complete the tasks, along with a brief explanation of each one
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
