Comands not working.

Hi I've been using Fedora Core 3 for a while now and I've started to notice that some basic UNIX commands don't work. When I've tried using the iptables command from the terminal I get a bash: iptables: command not found error.

Everything Linux 1798 This topic was started by ,


data/avatar/default/avatar05.webp

16 Posts
Location -
Joined 2005-02-20
Hi I've been using Fedora Core 3 for a while now and I've started to notice that some basic UNIX commands don't work. When I've tried using the iptables command from the terminal I get a
 
bash: iptables: command not found
 
error. I also get this error when I've tried to use the cvs command as well as a few other I can't remeber off the top of my head.
 
Any ideas as to why these commands don't work for me?
 
Thanks,
 

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


data/avatar/default/avatar05.webp

500 Posts
Location -
Joined 2004-04-06
It probably means that you don't have the software installed.

data/avatar/default/avatar10.webp

2895 Posts
Location -
Joined 2002-08-30
Have you tried to invoke these commands as root user in a terminal window?

data/avatar/default/avatar05.webp

16 Posts
Location -
Joined 2005-02-20
OP
Yeah i've tried as root user and I get the same error. Would the programs i need to install be on the Fedora distro disks? or would I have to download them from somewhere?
 
Thanks guys,
 

data/avatar/default/avatar04.webp

1678 Posts
Location -
Joined 2003-09-27
In Fedora/Redhat, you often have to include the absolute path. Say for ifconfig you have to go:
 

Code:
/sbin/ifconfig
...and so on. Do a command line search for iptables and see where it is, then do the command again with the absolute path as root. It might be at:

Code:
/usr/sbin/iptables

data/avatar/default/avatar10.webp

2895 Posts
Location -
Joined 2002-08-30
Thanks Dan, forgot that about fedora....
 
Just type in whereis name of command/utility that you want to use. That will give you the relative path that Dan spoke about.

data/avatar/default/avatar05.webp

16 Posts
Location -
Joined 2005-02-20
OP
Hey, thanks a lot I've got everything working now.