3 changed code to shut down immediately
source | link

Python 2, 29 bytes

import os;os.system('init 0')

Works on Linux systems and needs root privileges.

For Windows, 33 bytes

import os;os.system('shutdown/s'p')

This just might be the least interesting or helpful code I have ever written.

Python 2, 29 bytes

import os;os.system('init 0')

Works on Linux systems and needs root privileges.

For Windows, 33 bytes

import os;os.system('shutdown/s')

This just might be the least interesting or helpful code I have ever written.

Python 2, 29 bytes

import os;os.system('init 0')

Works on Linux systems and needs root privileges.

For Windows, 33 bytes

import os;os.system('shutdown/p')

This just might be the least interesting or helpful code I have ever written.

2 added 128 characters in body
source | link

Python 2, 3329 bytes

import os;os.system('init 0')

Works on Linux systems and needs root privileges.

For Windows, 33 bytes

import os;os.system('shutdown/s')

This just might be the least interesting or helpful code I have ever written.

Python 2, 33 bytes

import os;os.system('shutdown/s')

This just might be the least interesting or helpful code I have ever written.

Python 2, 29 bytes

import os;os.system('init 0')

Works on Linux systems and needs root privileges.

For Windows, 33 bytes

import os;os.system('shutdown/s')

This just might be the least interesting or helpful code I have ever written.

1
source | link

Python 2, 33 bytes

import os;os.system('shutdown/s')

This just might be the least interesting or helpful code I have ever written.