Shell mode
You can start a shell in Emacs by invoking the command
shell
. Some other buffers (e.g., *tex-shell*) have a
similar behavior.
Here are a few more often used commands:
C-c C-c
- purpose: kill a command being executed
C-c C-z
- purpose: suspend a command being executed
M-p
, M-n
(at the command prompt)
- purpose: repeat previous/next command (cycle backwards or forward
through the input history)
TAB
(while typing a command)
- purpose: try to complete the command or file name
After ! it will do the corresponding shell substitution (e.g.,
!$ is expanded by the last argument of the previous command,
!late will be expanded to the last command starting with
late)