31.15. Running Shell Commands from Emacs Emacs has commands for passing single command lines to inferior shell processes; it can also run a shell interactively with input and output to an Emacs buffer named *shell* or run a shell inside a terminal emulator window. There is a shell implemented entirely in Emacs, documented in a separate manual. . M-! cmd RETRun the shell command line cmd and displa