Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to know whether there is any way I can use Emacs as Terminal in Ubuntu. Means, I want to do the basic works with Emacs that I usually do with Terminal in Ubuntu, like 'sudo apt-get update'. I'll write this command and it'll update my Ubuntu system. Is that possible?

share|improve this question

You have a couple options, the perform the same basic function but there are some subtle differences. First you have M-term. This is a full fledged shell inside of an Emacs frame and responds the same as a terminal window and runs in it's own buffer. The issues I have with this is that you cannot switch buffers while the terminal is active, you must exit before changing buffers or performing any other common emacs tasks.

Your other option is M-eshell. This is a seemingly mor lightweight option that runs on top of your current buffer and allows you to switch buffers and execute Emacs commands from the mini-buffer while using eshell.

You might want to read over this emacswiki page, has lots of good info on the topic.

share|improve this answer
So it works. Thanks. Now is there any easy way to learn to use Emacs as Terminal? I mean the wiki seams to be scary as I don't have that much knowledge on Shell. So any easy way of doing this might help me a lot. Any link? – tranjeeshan Jan 22 '13 at 20:21

I did it. I used 'M-x Shell' in Emacs. That's it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.