Question: # ! / bin / bash # Create a hidden folder ans script called myMalwarejbeya on the desktop mkdir / home / ` whoami `

#!/bin/bash
# Create a hidden folder ans script called myMalwarejbeya on the desktop
mkdir /home/`whoami`/Desktop/"myMalwarejean"
# Create a hidden script file myMalwarejean inside the myMalwarejean.sh folder
touch /home/`whoami`/Desktop/"myMalwarejean"/myMalwarejean.sh
# Use the ls command to display the contents of the hidden file
echo "Displaying hidden files in the folder:"
ls -la /home/`whoami`/Desktop/"myMalwarejean"/myMalwarejean.sh
# Use an IF statement to check for the file's existence and echo a warning statement
if [-f /home/`whoami`/Desktop/"myMalwarejean"/myMalwarejean.sh ]; then
echo "warning: file detected!"
echo "Contents of the .myMalwarejean directory:"
ls -a /home/`whoami`/Desktop/"myMalwarejean"
else
echo "System clear: No suspicious file found."
Concern: the echo statement "System clear: Noo suspisious found." is not displaying after the script runs. Please fix the issue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!