<div><div dir="auto">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 *.</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 1, 2019 at 7:03 PM Seabass <<a href="mailto:PrivateSeaBass@pm.me">PrivateSeaBass@pm.me</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I suddenly found the folder “-p” in my home directory, one day...</div><div><br></div>“<span> ls -p”</span><div>-p/</div><div><br></div><div>“<span> ls -p/”</span></div><div><span></span>/ is not a flag option</div><div><br></div><div>”ls *”</div><div>-p</div><div><br></div><div>“ls */*”<br><div><div>No file nor directory...</div><div><br></div>“rm -p”</div><div>-p isn’t a flag</div><div><br></div><div>So....</div><div>I dunno about you guys, but this sucked figuring out how to handle.</div><div>It can be removed with</div><div>“rm -r ./-p/“</div><div>But everything else makes it into a flag.</div><div><br></div>Moral of the story:</div><div>If a file like “-a” shows up and it’s existence bothers you,</div><div>DON’<u></u><u></u>T TRY REMOVING IT WITHOUT </div><div>“./“ or some other path behind it!<br><div><div><br></div><div><br></div></div></div>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></blockquote></div></div>