GNU bug report logs - #8500
util: where am i

Previous Next

Package: coreutils;

Reported by: Panagiotis Tsiamis <ptsiamis <at> gmail.com>

Date: Thu, 14 Apr 2011 16:10:05 UTC

Severity: wishlist

Full log


Message #13 received at control <at> debbugs.gnu.org (full text, mbox):

From: Bob Proulx <bob <at> proulx.com>
To: Panagiotis Tsiamis <ptsiamis <at> gmail.com>
Cc: 8500 <at> debbugs.gnu.org
Subject: Re: bug#8500: util: where am i
Date: Thu, 14 Apr 2011 15:48:20 -0600
severity 8500 wishlist
thanks

Panagiotis Tsiamis wrote:
> Request for adding one more feature on the utillity whoami.
> 
> The feature should be able to called by
> "where am i" or "whereami"
> 
> And should locate:
> a) System hostname

  $ hostname

> b) ip of the system

You tickled a pet issue of mine.  A host rarely has just one IP
address.  This would need to be a list of addresses.

  $ ip addr show | awk '/inet/{print$2}'

A host has a number of network interfaces and each network interface
has a number of IP addresses.  This results in a host potentially
having quite a few associated addresses!

On my network all simple hosts have four IP addresses.  A more
complicated host has seven IP addresses.  One of the most interesting
hosts has 17 IP addresses.

> c) current working directory

  $ pwd

> d) anything else that could be usefull for identify where you are located
> currently.

  $ gpslocation  # <-- Just joking here.

Bob




This bug report was last modified 14 years and 64 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.