• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Quick Question...

VeeDubbs

Limp Gawd
Joined
Dec 9, 2005
Messages
398
Hi all,

Coming back to Linux after a while away...

Using RedHat 9...my friend is currently using SSH to remotely "do stuff"...don't ask, we know what we're doing ;)

Is there a command that will show me what folder he is currently in? Is it an option of finger? Or is it not possible? THanks!
 
lsof |grep hisusername |grep cwd

that's the best i can think of, i guess. it could probably be finetuned a little more, at the very least, but my brain is too tired to consider the possibilities.
 
if you know what you're doing then you would have already solved this problem wouldn't you.

just saying you are using SSH is good enough, no reason to only make us suspicious where had you simply said "ssh" we wouldn't have given it a second thought.

anyways similar to jillande's suggestion: lsof | grep hisusername | grep cwd | grep bash is probably your best bet. If you use some other shell then replace bash with said shell.
 
Back
Top