[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

AC.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. See section `Eshell' in Eshell: The Emacs Shell.

M-! cmd RET
Run the shell command line cmd and display the output (shell-command).
M-| cmd RET
Run the shell command line cmd with region contents as input; optionally replace the region with the output (shell-command-on-region).
M-x shell
Run a subshell with input and output through an Emacs buffer. You can then give commands interactively.
M-x term
Run a subshell with input and output through an Emacs buffer. You can then give commands interactively. Full terminal emulation is available.
M-x eshell
Start the Emacs shell.

AC.15.1 Single Shell Commands  How to run one shell command and return.
AC.15.2 Interactive Inferior Shell  Permanent shell taking input via Emacs.
AC.15.3 Shell Mode  Special Emacs commands used with permanent shell.
AC.15.4 Shell Command History  Repeating previous commands in a shell buffer.
AC.15.5 Directory Tracking  Keeping track when the subshell changes directory.
AC.15.6 Shell Mode Options  Options for customizing Shell mode.
AC.15.7 Emacs Terminal Emulator  An Emacs window as a terminal emulator.
AC.15.8 Term Mode  Special Emacs commands used in Term mode.
AC.15.9 Page-At-A-Time Output  Paging in the terminal emulator.
AC.15.10 Remote Host Shell  Connecting to another computer.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated on April 2, 2002 using texi2html