Linux – How to install/default to the command line version of Emacs

aptcommand lineemacslinux

I installed Emacs using sudo apt-get install emacs. The problem is that when I launch Emacs from the command line (e.g. emacs main.c) it opens Emacs with a GUI. I prefer the command line version which runs in the terminal emulator.

How can I install (or change some default) so that Emacs will open in the command line instead of a GUI?

Best Answer

Installing emacs-nox instead of emacs should do the trick.

Related Question