Sarad AV wrote:

and found w -u options also displays the program run
by each user on the terminal.

how ever is there any way to find the directory in
which the file is located?any command or method as
such?

To find a file

find / -name ls -exec dirname {} \;

to find the open files from a terminal/processes.

replace /dev/pts/1 with desired terminal device.

for XX in ` lsof | grep /dev/pts/1 | awk '{print $2}'`; do lsof -p $XX; done

-Chandra





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help


Reply via email to