Skip to content

Commit e9da1b5

Browse files
author
Vladimir Kotal
committed
more on bash and fg/bg
1 parent 952626a commit e9da1b5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

proc.tex

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,10 +385,13 @@
385385
\item When a process that has a controlling terminal opens the \texttt{/dev/tty}
386386
file, it gets associated with its controlling terminal, i.e. if two different
387387
processes open this file, each will be accessing a different terminal.
388-
\item In bash a process group (job) can be stopped temporarily using
389-
\texttt{Ctrl-Z}, and can be resumed again using ,,\texttt{fg \%N}'' where
390-
\texttt{N} is the number from the \texttt{jobs} command listing. More
391-
information can be found in the ``JOB CONTROL'' section in the bash man page.
388+
\item In \texttt{bash} a process group (job) can be stopped temporarily using
389+
\texttt{Ctrl-Z}. Then it can be resumed again using ,,\texttt{fg \%N}'' where
390+
\texttt{N} is the number from the \texttt{jobs} command listing. Or, it can
391+
be resumed in background, using ,,\texttt{bg \%N}''. The job specification
392+
is (\texttt{\%N}) optional - if omitted, the most recently stopped job will be
393+
used. More information can be found in the ``JOB CONTROL'' section in the
394+
\texttt{bash} man page.
392395
\end{itemize}
393396

394397
\pdfbookmark[1]{fork}{fork}

0 commit comments

Comments
 (0)