You are not logged in.

#1 2014-02-22 20:24:42

aligator
Member
Registered: 2013-10-07
Posts: 75

[solved] ifconfig / iftop don't work

hi

if I execute ifconfig/iftop I get this:

ifconfig will not execute and completion _ifconfig exists.
iftop will not execute and completion _iftop exists.

Maybe I hav this problem with some other commands too...

I Don't understand what this means. Can anyone help me?

aligator

Last edited by aligator (2014-02-24 16:19:41)

Offline

#2 2014-02-22 20:27:06

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] ifconfig / iftop don't work

Do you have iftop and net-tools installed?

Offline

#3 2014-02-22 20:27:57

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,097
Website

Re: [solved] ifconfig / iftop don't work

Hello aligator, a couple suggestions for you. First of all, when posting terminal output (or code snippets), please use code tags, like so:

not using code tags makes unicorns cry

Second, you are far better off switching to iproute2 instead of using ifconfig. ifconfig has been deprecated for a while now.

All the best,

-HG

Offline

#4 2014-02-22 21:04:37

Gusar
Member
Registered: 2009-08-25
Posts: 3,606

Re: [solved] ifconfig / iftop don't work

ifconfig might be considered "deprecated", but the kernel interfaces it uses will probably never get removed, so ifconfig will remain functional. I'm not even sure it's possible to remove these kernel interfaces when doing a manual kernel compile.

karol is right, aligator doesn't have these tools installed. But the bash-completion files for them are installed (they're part of the generic bash-completion package), and that's why the messages.

Offline

#5 2014-02-22 21:09:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] ifconfig / iftop don't work

https://www.archlinux.org/news/deprecat … net-tools/
https://wiki.archlinux.org/index.php/FA … ge_is_X.3F

@Gusar
I don't see completion for ifconfig, but I know nothing about completion, so I may be looking in the wrong place.

$ pkgfile iftop
extra/bash-completion
community/iftop
$ pkgfile ifconfig
core/net-tools

Offline

#6 2014-02-22 21:22:35

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,638
Website

Re: [solved] ifconfig / iftop don't work

I think OP is using zsh.

$ pkgfile _iftop 
extra/zsh
$ pkgfile _ifconfig
extra/zsh

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2014-02-22 22:12:55

Gusar
Member
Registered: 2009-08-25
Posts: 3,606

Re: [solved] ifconfig / iftop don't work

karol wrote:

@Gusar
I don't see completion for ifconfig, but I know nothing about completion, so I may be looking in the wrong place.

Oops, I must admit, I only checked iftop smile. It seems WorMzy is onto something smile

Offline

#8 2014-02-24 16:18:59

aligator
Member
Registered: 2013-10-07
Posts: 75

Re: [solved] ifconfig / iftop don't work

hi

Thank you for the answers. Yes I use zsh.
And I hadn't installed the net-tools and iftop. But because there was no "command not found", I didn't think that it isn't installed...
Thank you for telling me that it is deprecated.

aligator

Last edited by aligator (2014-02-24 16:20:11)

Offline

#9 2014-02-24 16:24:08

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] ifconfig / iftop don't work

See https://wiki.archlinux.org/index.php/Pkgfile for how to enable "Command not found" hook.
Before:

$ iftop
bash: iftop: command not found

After:

$ iftop
iftop may be found in the following packages:
  community/iftop 1.0pre4-1	/usr/bin/iftop


Edit:

aligator wrote:

Thank you for telling me that it is deprecated.

https://www.archlinux.org/news/deprecat … net-tools/

Last edited by karol (2014-02-24 16:26:49)

Offline

Board footer

Powered by FluxBB