Is it screw with your admin day?

Anthony Radzykewycz anthony.radzykewycz at gatewaycc.edu
Fri Nov 1 19:31:20 MST 2019


There’s actually a hack revolving around this concept. I’d have to refer to
my notes for the exact details, but if you touch -rf, when someone runs rm
*, it’ll essentially do an rm -rf *.

On Fri, Nov 1, 2019 at 7:03 PM Seabass <PrivateSeaBass at pm.me> wrote:

> I suddenly found the folder “-p” in my home directory, one day...
>
> “ ls -p”
> -p/
>
> “ ls -p/”
> / is not a flag option
>
> ”ls *”
> -p
>
> “ls */*”
> No file nor directory...
>
> “rm -p”
> -p isn’t a flag
>
> So....
> I dunno about you guys, but this sucked figuring out how to handle.
> It can be removed with
> “rm -r ./-p/“
> But everything else makes it into a flag.
>
> Moral of the story:
> If a file like “-a” shows up and it’s existence bothers you,
> DON’T TRY REMOVING IT WITHOUT
> “./“ or some other path behind it!
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20191101/60f16387/attachment.html>


More information about the PLUG-discuss mailing list