View previous topic :: View next topic |
Author |
Message |
reup Guru
Joined: 13 May 2005 Posts: 419 Location: Nederland
|
Posted: Wed Dec 18, 2013 9:27 pm Post subject: /usr/bin/ifstat and /usr/sbin/ifstat [Solved] |
|
|
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 |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6097 Location: Dallas area
|
Posted: Wed Dec 18, 2013 9:29 pm Post subject: |
|
|
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 |
|
|
reup Guru
Joined: 13 May 2005 Posts: 419 Location: Nederland
|
Posted: Wed Dec 18, 2013 11:26 pm Post subject: |
|
|
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 |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Thu Dec 19, 2013 8:42 am Post subject: |
|
|
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 |
|
|
|