rm -rf



  • atomfish schrieb:

    rm -rf

    ACHTUNG, BÖSER SCHERZ, NICHT EINGEBEN:

    Du hast noch den Kommentarparameter /* vergessen...

    P.S.: Liebe Linux-Neulinge: ernsthaft: Nicht ausprobieren, wenn ihr euer System noch behalten wollt.

    --
    www.bash.org, #253947:
    <FatalError1> how to delete a directory in Linux?
    <FatalError1> delete entire contents with one command?
    * rm-rf isnt sure



  • So schön, den wollte ich euch nicht vorenthalten:

    #17335 +(89)- [X]

    <Balatro> Electroly: It died on me once and wouldn't restart. I had to ps -aux or whatever the fuck it is and kill the process. Then it started fine.
    <Electroly> ah, nothing good old `ps aux | grep Proteus | awk '{print $2 }' | xargs kill -9` won't fix.
    <Electroly> much better, that worked.
    * Gandalf stares at Electroly
    <Gandalf> And I thought I was a Unix dork.
    <Balatro> Yeah, it was so much less effort to do that then to type a command, quickly see the process and kill it by PID 🙂
    <Electroly> you are a unix dork
    <Electroly> Balatro: there were like 10 Proteus processes, dude.
    <Balatro> Funny, I had 1 😉
    <Electroly> dunno where these all came from, but i killed them all.
    <Electroly> now all is well
    <Gandalf> Electroly: I understand ps, grep, and xargs. Explain how that awk thinger works, though? 🙂
    <Electroly> Gandalf: awk is pretty simple. it treats the stdin as a bunch of columns
    <Electroly> and lets you reformat the output. { print $n } is typical, where n is the column number to print out.
    <kurros> AWK AWK MOTHER FUCKER
    <Electroly> it uses whitespace as the column delimiter by default, but you can change that by some argument to it
    <Gandalf> ah, and in ps aux the PID is the second column, thus $2, right?
    <Electroly> yup
    <Electroly> you can do other stuff with awk, like awk '{ print "Whee! The PID for " $10 " is " $2 "!" }'
    <Balatro> It makes me hot when you talk unix.
    <Electroly> rm -rf /home/Balatro
    <Balatro> That's /homo/Balatro, honey 🙂



  • @sid2k6

    rm -r ist nunmal die Anweisung um Verzeichnisse zu löschen. Wenn man damit natürlich wichtige Dinge löscht ist man selber schuld. Also verbreite hier nicht so einen Unsinn



  • Sid2K6 schrieb:

    atomfish schrieb:

    rm -rf

    Du hast noch den Kommentarparameter /* vergessen...

    Bist ja echt lustig, Kollege! 🙄



  • kingruedi schrieb:

    @sid2k6

    rm -r ist nunmal die Anweisung um Verzeichnisse zu löschen. Wenn man damit natürlich wichtige Dinge löscht ist man selber schuld. Also verbreite hier nicht so einen Unsinn

    Nur um Mißverständnissen vorzubeugen:

    Warum ist eine Warnung vor "rm -rf /" deiner Meinung nach Unsinn?

    Ich sprach nicht von "rm -r". Jemand empfahl "rm -rf" und ich habe gewarnt, daß man meinen Scherz (rm -rf /) besser nicht ausprobieren soll.

    Ich denke, wir haben uns mißverstanden.

    Gruezi.



  • Naja, so ein Witz ist aber ein wenig deplaziert, wobei man es wirklich leicht missversteht.



  • dein 'beitrag' kann aber auch leicht missverstanden werden,
    widsbolt


Anmelden zum Antworten