Difference between revisions of "Fg"

From NetHackWiki
Jump to navigation Jump to search
(Fix typos, clumsy phrasing)
(Get the whitespace in here)
Line 6: Line 6:
 
Sometimes, unwary users press {{kbd|Ctrl|Z}} by accident. This suspends the game and puts it in the background, giving a message similar to:
 
Sometimes, unwary users press {{kbd|Ctrl|Z}} by accident. This suspends the game and puts it in the background, giving a message similar to:
  
"[1]+ Stopped        nethack"
+
"[1]+ Stopped        nethack"
  
 
Attempting to restart the game by rerunning "nethack" will give the message:
 
Attempting to restart the game by rerunning "nethack" will give the message:

Revision as of 23:31, 8 December 2019

fg is a generic Linux/Unix utility that resumes execution of a suspended process.

Sometimes, unwary users press Ctrl + Z by accident. This suspends the game and puts it in the background, giving a message similar to:

"[1]+ Stopped        nethack"

Attempting to restart the game by rerunning "nethack" will give the message:

"There is already a game in progress under your name. Destroy old game? [yn]"

Say "no" to the above; you need to run the command "fg" in the original terminal to resume the frozen game.

If you have already killed the original terminal, then try killing nethack with "killall nethack"; then you might need to use the recover utility.