Penguin — Linux

Deleting mounted shares in user-created directories

Linux Notes

Stepping Stones
Dec 12, 2021

--

While doing TryHackMe rooms, I most often use my own VM, and while I keep room notes on things I have learned, I like to remove any files or directories I know I will no longer need (I really like an uncluttered workspace.)

On Day 12 of the Try Hack Me Advent of Cyber, we created 2 “/tmp” folders for mounted shares. These notes are how I removed them. These steps only remove mounted shares in these user-created directories, not the main /tmp* or /var/tmp* directories.

The commands:

  1. Unmount (use sudo)
 sudo umount tmp1 sudo umount tmp2

2. Remove (recursively)

 rm -r tmp1
rm -r tmp2
Linux: remove user-created directories with mounted shares

And my workspace is clear again!

--

--

Stepping Stones

Learning Information Technology and Cybersecurity through university and self-education programs.