Exercise 3
man
, man -k
, apropos
,
whatis
commands to search information from
manual pages.
who
and sort
commands to produce a sorted list of usernames of users
who are in cs-computer.
who
and
sort
are executed in separate child processes and the
communication between child processes is done using pipes. Do it so
that who
writes to a pipe and sort
reads
from a pipe. You can also use dup
or dup2
commands to redirect the streams for reading and writing.