Timeline for In a remote shell, how can I find out from which computer I logged into the remote machine?
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 8, 2020 at 16:58 | comment | added | Scottie H | whoami vs who am i vs who -m, etc. is OS (Flavor, version & perhaps platform) dependent. Tjat is why I specified all of the programs that I know work on my machine -- and specified the OS version. Also note the YMMV caveat: Your Mileage May Vary). The last OS I used that had w was actually an alias to who -m. Not every one has access to the last database. | |
| Oct 8, 2020 at 16:27 | comment | added | Aaron F | @JoL "who am i is showing me the same output as who and who -m" - in which case I take back what I said. I just found a RHEL7 box and tried it and it works. Not sure why it doesn't on my local Manjaro installation, even though my manual for who says "If given two non-option arguments, ‘who’ prints only the entry for the user running it (determined from its standard input), preceded by the hostname. Traditionally, the two arguments given are ‘am i’, as in ‘who am i’". Also, strangely enough, w shows addresses on RHEL but doesn't on Manjaro (I've never tried running w locally before). | |
| Oct 8, 2020 at 15:49 | comment | added | JoL | @AaronF w doesn't show me the address, but w -f does. who am i is showing me the same output as who and who -m. The manpage says "If ARG1 ARG2 given, -m presumed: 'am i' or 'mom likes' are usual." That seems to indicate that who am i should always be the same as who -m. This is GNU's who v8.31. | |
| Oct 8, 2020 at 15:12 | comment | added | JacobIRR | what about whoami ? | |
| Oct 8, 2020 at 10:18 | comment | added | Aaron F | who am i doesn't work. who am I doesn't work. who -m returns the same as who. and why not just use w? | |
| Oct 8, 2020 at 0:25 | vote | accept | halloleo | ||
| Oct 8, 2020 at 0:04 | history | answered | Scottie H | CC BY-SA 4.0 |