Is there a way to run Emacs in the background from a Linux shell?

  • Thread starter Thread starter ehrenfest
  • Start date Start date
  • Tags Tags
    Linux Shell
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 2K views
ehrenfest
Messages
2,001
Reaction score
1
When I open emacs from a linux shell, it always makes it run in the "foreground" so that I cannot do anything else in the shell until I close emacs. I used to know a way around this with some extra command after "$ emacs" but I forgot it. Does anyone know what I am talking about?
 
Physics news on Phys.org
You automatically background commands by adding & behind it.

So for example "emacs foo.txt &"

Also if you suspend a program, you can resume it in the background with the command bg. Example would be

"jobs -l" outputs 512 for your emacs program, so then you run "bg %512".