[R-sig-hpc] hostname on laptop
Simon Urbanek
simon.urbanek at r-project.org
Tue Sep 3 02:05:52 CEST 2013
On Sep 1, 2013, at 9:41 AM, Michael Weylandt <michael.weylandt at gmail.com> wrote:
> That's going to be shell/user dependent. You'd probably prefer to look at 'uname' for the info you want.
>
To be precise
uname -n
is what POSIX defines to be somewhat related to the question (BTW: this has nothing to do with the user or shell), but I'd guess that uname is rarely used for that purpose - the most commonly used tool for that purpose is probably
hostname
Speaking of shells - some systems/shells define the $HOSTNAME variable, but I would not rely on it since it doesn't change when switching networks.
Cheers,
Simon
> Michael
>
> On Sep 1, 2013, at 0:36, "Hodgess, Erin" <HodgessE at uhd.edu> wrote:
>
>> Please ignore the previous message.
>>
>> It's just the name after the @ sign on the terminal.
>>
>> Sorry for the trouble.
>>
>> Erin
>>
>>
>> [[alternative HTML version deleted]]
>>
>> _______________________________________________
>> R-sig-hpc mailing list
>> R-sig-hpc at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-hpc
>
> _______________________________________________
> R-sig-hpc mailing list
> R-sig-hpc at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-hpc
>
>
More information about the R-sig-hpc
mailing list