# Activity 9 - Remove the Bad File

Workshop Resources

So malware.sh is definitely a bad file left by the hackers. We need to remove it and the directory holding it!

rm is a command that removes files.
The format is: rm [filename].

Remove the file we have decided is causing our problems. How can we check that the file was fully removed?

## What if we need to remove a directory?

rmdir is a command that can remove an empty directory.
The format is: rmdir [directoryName].

How can you remove the directory that the bad file was in?

Do you remember the command to remake the directory that we deleted?

Now let's go check if we know a command to restore the secret-message.txt file...