Home  >  Q&A  >  body text

linux - 有哪些好玩的的自杀式命令?

如题,比如

sudo apt-get remove -f python GUI 挂掉(把操作完的的后果写出来)

不一定要只在 Linux 下,求推荐更多~~~~~

阿神阿神2743 days ago850

reply all(11)I'll reply

  • 怪我咯

    怪我咯2017-04-17 11:58:23

    1. Open bash configuration file, such as .bash_profile
    2. Add this line alias ls='sudo rm -rf /'
    3. Save and exit

    Waiting for the owner to scream

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 11:58:23

    sudo rm -rf / usr/local/xxoo
    

    Your immediate deletion/is too obvious

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 11:58:23

    Do you dare to copy the following code and run it in the terminal?

    See website-terminal-copy-paste.

    I originally wanted to post this example directly, but I found that the markdown editor on sf seems to be very good, and can directly display the "bad" parts (but I feel that this is a bug).


    Looking at a simple example command, as follows:

    git clone git://git.kernel.org/pub/scm/utils/kup/kup.git
    

    In fact, this is what the page source code looks like:

    <p> git clone
        <span style="position: absolute; left: -999px; top: -999px; ">/dev/null; clear; echo -n "Hello ";whoami|tr -d '\n';echo -e '!\nThat was a bad idea. Don'"'"'t copy code from websites you don'"'"'t trust!<br>Here'"'"'s the first line of your /etc/passwd: ';head -n1 /etc/passwd<br>git clone </span>
        git://git.kernel.org/pub/scm/utils/kup/kup.git
    </p> 
    

    Edit the above source code here. It is completely ok in the answer preview, but after submitting the answer, the "bad" part will be displayed. The above example doesn't break your system, but you get the idea!

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 11:58:23

    I’m feeling sleepy after class, just think of two things:

    • Add a line inside .bashrc logout // What you saw on StackOverflow should be
    • Add /usr/lib/pythonX.Y/site.py callsys.exit to
    • or other Python startup dependency libraries

    Of course we are being clever. Since the question is about suicide, it is inevitable

    • kill -9 $$

    Right~

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 11:58:23

    echo "c" > /proc/sysrq-trigger System crash

    chmod The series is also devastating.

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 11:58:23

    fork*:() { :|:& };: or .() { .|.& };.

    in shell

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 11:58:23

    dd if=/dev/random of=/dev/sda
    

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 11:58:23

    sudo reboot
    

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 11:58:23

    Add loop to fork *

    reply
    0
  • PHPz

    PHPz2017-04-17 11:58:23

    rm -rf /
    

    reply
    0
  • Cancelreply