^Z

^Z (Ctrl+z) is a shell keybind which suspends the foremost process. Windows' cmd.exe does not allow ^Z, but many UNIX shells will. When NetHack is suspended, the shell it was run from is brought into focus. NetHack is still alive, but it is frozen. Running the fg program will awaken NetHack.