Figure 1: Finding users
#
# fuser
#
# The first command displays the process numbers of the
# processes using the file "/opt/lib/data1". The second
# command shows more information on the running processes.
bellona:~ 203% fuser -u /opt/lib/data1
/opt/bin/tcsh: 13396t(shelly) 11012t(lynn) 10055t(joe)
bellona:~ 204% ps -ef | egrep -e '13396 | 11012 | 10055'
lynn 11012 10986 80 12:05:56 pts/6 0:01 pgm1
joe 10055 10035 80 10:08:28 pts/5 0:02 pgm2
shelly 13396 13394 74 16:48:49 pts/4 0:01 pgm3
|