Compatible Support Forums: Comands not working.

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Comands not working.

#1 User is offline   ned99 

  • stranger
  • Group: Members
  • Posts: 16
  • Joined: 20-February 05

Posted 31 March 2005 - 05:53 AM

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,

0

#2 User is offline   iamroot 

  • addict
  • Group: Members
  • Posts: 501
  • Joined: 06-April 04

Posted 31 March 2005 - 06:58 AM

It probably means that you don't have the software installed.
0

#3 User is offline   danleff 

  • Carpal Tunnel
  • Group: Moderators
  • Posts: 2903
  • Joined: 30-August 02

Posted 31 March 2005 - 11:07 AM

Have you tried to invoke these commands as root user in a terminal window?
0

#4 User is offline   ned99 

  • stranger
  • Group: Members
  • Posts: 16
  • Joined: 20-February 05

Posted 31 March 2005 - 09:06 PM

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,

0

#5 User is offline   Dapper Dan 

  • Pooh-Bah
  • Group: Moderators
  • Posts: 1703
  • Joined: 27-September 03

Posted 31 March 2005 - 11:12 PM

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

0

#6 User is offline   danleff 

  • Carpal Tunnel
  • Group: Moderators
  • Posts: 2903
  • Joined: 30-August 02

Posted 31 March 2005 - 11:24 PM

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.
0

#7 User is offline   ned99 

  • stranger
  • Group: Members
  • Posts: 16
  • Joined: 20-February 05

Posted 04 April 2005 - 03:15 AM

Hey, thanks a lot I've got everything working now.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users