I gave M-x shell to get Linux shell. How to go back to the current document from there
Asked
Active
Viewed 1.1k times
2 Answers
17
You can switch the buffer back to the one you were at previously by: C-x b
and enter
Or if you're done with the shell, you can type exit
to stop the shell and kill the buffer by: C-x k

Jon Lin
- 142,182
- 29
- 220
- 220
1
You can run C-x b to switch to previous buffer. You can also do C-x C-b and switch to whichever buffer you need. Read tutorial with C-h t and see the Buffers section.

aartist
- 3,145
- 3
- 33
- 31