Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/usr/bin/ifstat and /usr/sbin/ifstat [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
reup
Guru
Guru


Joined: 13 May 2005
Posts: 419
Location: Nederland

PostPosted: Wed Dec 18, 2013 9:27 pm    Post subject: /usr/bin/ifstat and /usr/sbin/ifstat [Solved] Reply with quote

I might be mistaken but is there 2 ifstat ? one give a real time list of net operation and the other one gives only a summary

I could track the first one to net-analyzer/ifstat but cannot find the provenance of /usr/sbin/ifstat

a search on the net gives only information over the first one /usr/bin/ifstat

any idea where they come from, why there is 2 of them and how to find the sbin version ?

reup
_________________
reup

"Don't wiggle the tail of the frog in the oil of the frying peanuts"


Last edited by reup on Wed Dec 18, 2013 11:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6097
Location: Dallas area

PostPosted: Wed Dec 18, 2013 9:29 pm    Post subject: Reply with quote

I have /sbin/ifstat and it comes from the iproute2 package.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
reup
Guru
Guru


Joined: 13 May 2005
Posts: 419
Location: Nederland

PostPosted: Wed Dec 18, 2013 11:26 pm    Post subject: Reply with quote

thank you Anon-E-moose

I suppose I could have find out using some emerge or eix function but I took too long to think about it

as well I was surprise to find 2 package with the same function but working differently and having the same name

reup
_________________
reup

"Don't wiggle the tail of the frog in the oil of the frying peanuts"
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Thu Dec 19, 2013 8:42 am    Post subject: Reply with quote

reup wrote:
I suppose I could have find out using some emerge or eix function but I took too long to think about it.

reup ... afaik emerge or eix doesn't have the ability to corrolate files to packages, for this you need 'equery' (app-portage/gentoolkit) or 'e-file' (app-portage/pfl). The former can provide the package name of an installed file, ie:

Code:
# equery belongs /sbin/ifstat
 * Searching for /sbin/ifstat ...
sys-apps/iproute2-3.8.0 (/sbin/ifstat)

The latter can show any package (installed or not) which includes a file by that name (useful if say you want to know if there are more than one of such files, as in the case of 'ifstat'), ie:

Code:
# e-file ifstat | awk '!/(Last|Version)/{print}'
[I] sys-apps/iproute2
   Matched Files: /sbin/ifstat;

 * net-analyzer/ifstat
   Matched Files: /usr/bin/ifstat;

HTH & best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum