files having Script which works behind "who" & "w" commands

Dear All,
plz print the path of files which have the script of "who" & "w" commands.
thnx in advance.

Here you go

me@RHEL5-5:~$ which w
/usr/bin/w
me@RHEL5-5:~$ which who
/usr/bin/who

You need to add /usr/bin to your path

1 Like

tnx allot
bitlord

here's another you can do on one line:

for i in w who; do which $i; done

That's a nice one line but it would be easier to just do this.

me@RHEL5-5:~$ which w;which who
/usr/bin/w
/usr/bin/who

Yes, but my way teaches loops so Nyeah :wink:

thnk u all to help me in this regard.
all the ifoz are very usefull. thanks allot you all ...