Why Nostr? What is Njump?
2023-05-03 21:27:00
in reply to

b9AcE #NoEdits on Nostr: So what about when someone else made a mistake in their command-line program on ...

So what about when someone else made a mistake in their command-line program on UNIX(/Linux) systems so that it just won't quit running even though you keep hammering on <control>+c for "cancel!", "cancel!", "cancel!",
or maybe you're just uncertain if other things on the system were ready for you to run that command?

Well, usually you can just press <control>+z to "suspend" the execution of your currently running command, to get back to the command-line shell.
From there, you can just run whatever commands you want without the suspended command doing anything at all in the background,
or you can tell it to keep going stuff in the background while you're still con the command-line with the command "bg",
or you can kill the command you suspended with the simple command "kill %1" (I uhh, think the "%1" is short for just "suspended command 1" without cheating by checking),
or when you're done doing stuff and want to go back to watching your script run in the foreground, you just enter the command "fg" for it to foreground.

Super-neato.
Author Public Key
npub14hy0uajlrmsmt4ep5ex7ayqxyaamq0rqsf8yt4h4crmcjay9l4xsaqjycy