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
AI Thread Summary
When running Emacs from a Linux shell, it typically occupies the foreground, preventing further shell commands until Emacs is closed. To run Emacs in the background, append an ampersand (&) to the command, such as "emacs foo.txt &". Additionally, if Emacs is already running in the foreground, it can be suspended and resumed in the background using the "bg" command. For instance, after suspending the program, you can find its job number with "jobs -l" and then use "bg %<job_number>" to continue it in the background.
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?
 
Computer science 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".
 
I came across a video regarding the use of AI/ML to work through complex datasets to determine complicated protein structures. It is a promising and beneficial use of AI/ML. AlphaFold - The Most Useful Thing AI Has Ever Done https://www.ebi.ac.uk/training/online/courses/alphafold/an-introductory-guide-to-its-strengths-and-limitations/what-is-alphafold/ https://en.wikipedia.org/wiki/AlphaFold https://deepmind.google/about/ Edit/update: The AlphaFold article in Nature John Jumper...
Thread 'Urgent: Physically repair - or bypass - power button on Asus laptop'
Asus Vivobook S14 flip. The power button is wrecked. Unable to turn it on AT ALL. We can get into how and why it got wrecked later, but suffice to say a kitchen knife was involved: These buttons do want to NOT come off, not like other lappies, where they can snap in and out. And they sure don't go back on. So, in the absence of a longer-term solution that might involve a replacement, is there any way I can activate the power button, like with a paperclip or wire or something? It looks...
Back
Top