From 646a5c1cbfd95873950a87b5f75d52073a967023 Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Mon, 28 May 2018 19:12:29 +0000 Subject: Mon May 28 19:12:29 UTC 2018 a/pkgtools-15.0-noarch-13.txz: Rebuilt. installpkg: default line length for --terselength is the number of columns. removepkg: added --terse mode. upgradepkg: default line length for --terselength is the number of columns. upgradepkg: accept -option in addition to --option. ap/vim-8.1.0026-x86_64-1.txz: Upgraded. d/bison-3.0.5-x86_64-1.txz: Upgraded. e/emacs-26.1-x86_64-1.txz: Upgraded. kde/kopete-4.14.3-x86_64-8.txz: Rebuilt. Recompiled against libidn-1.35. n/conntrack-tools-1.4.5-x86_64-1.txz: Upgraded. n/libnetfilter_conntrack-1.0.7-x86_64-1.txz: Upgraded. n/libnftnl-1.1.0-x86_64-1.txz: Upgraded. n/links-2.16-x86_64-2.txz: Rebuilt. Rebuilt to enable X driver for -g mode. n/lynx-2.8.9dev.19-x86_64-1.txz: Upgraded. n/nftables-0.8.5-x86_64-1.txz: Upgraded. n/p11-kit-0.23.11-x86_64-1.txz: Upgraded. n/ulogd-2.0.7-x86_64-1.txz: Upgraded. n/whois-5.3.1-x86_64-1.txz: Upgraded. xap/network-manager-applet-1.8.12-x86_64-1.txz: Upgraded. xap/vim-gvim-8.1.0026-x86_64-1.txz: Upgraded. --- slackbook/html/process-control-foregrounding.html | 138 ---------------------- 1 file changed, 138 deletions(-) delete mode 100644 slackbook/html/process-control-foregrounding.html (limited to 'slackbook/html/process-control-foregrounding.html') diff --git a/slackbook/html/process-control-foregrounding.html b/slackbook/html/process-control-foregrounding.html deleted file mode 100644 index 7b185ba74..000000000 --- a/slackbook/html/process-control-foregrounding.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - -Foregrounding - - - - - - - - - - - -
-

11.2 Foregrounding

- -

If you need to interact with a backgrounded process, you can bring it back into the -foreground. If you've only got one backgrounded process, you can bring it back by -typing:

- - - - - -
-
-% fg
-
-
- -

If the program is not done running, the program will take control over you terminal -and you will not be returned to a prompt. Sometimes, the program will finish running -while backgrounded. In this instance, you'll get a message like this:

- - - - - -
-
-[1]+  Done              /bin/ls $LS_OPTIONS
-
-
- -

That tells you that the backgrounded process (in this case ls -- not terribly interesting) has completed.

- -

It is possible to have several processes backgrounded at once. When this happens, -you'll need to know which process you want to bring back to the foreground. Just typing -fg will foreground the process that was last backgrounded. What -if you had a whole list of processes in the background? Luckily, bash includes a command -to list all the processes. It's called jobs and gives output -like so:

- - - - - -
-
-% jobs
-[1]   Stopped                 vim
-[2]-  Stopped                 amp
-[3]+  Stopped                 man ps
-
-
- -

This shows you a list of all the processes that are backgrounded. As you can see, they -are all stopped. This means that the processes are suspended. The number is a sort of ID -for all the backgrounded processes. The ID with a plus sign beside it (man ps) is the process that will be foregrounded if you just type -fg.

- -

If you wanted to foreground vim, you would type:

- - - - - -
-
-% fg 1
-
-
- -

and vim would spring back up to the console. Backgrounding -processes can be very useful if you only have one terminal open over a dialup connection. -You can have several programs running on that one terminal, periodically switching back -and forth between them.

-
- - - - - -- cgit v1.2.3