Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Emacs from a linux shell

  1. Jun 3, 2008 #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?
  2. jcsd
  3. Jun 3, 2008 #2
    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".
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook