LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-16-2005, 03:13 PM   #1
TranceDude
Member
 
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 222

Rep: Reputation: 30
arp command


hi

I want to use the arp command (read about it in some network book) but when i type arp it isn't recognized
Does anybody knows where to find it?

I checked the net and it's in the net-tool package

I have the latest version installed

# rpm -q net-tools
net-tools-1.60-52

# ifconfig
bash: ifconfig: command not found

# arp
bash: arp: command not found


But even ifconfig does not work ...
Please help?

Last edited by TranceDude; 08-16-2005 at 03:19 PM.
 
Old 08-16-2005, 04:12 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Some commands need root user to run and even so, you should put the dash ( - ) after su to get the path. Otherwise, you can find out where the program is located, then use the full path to a command.
For example: su -
and to find out where the program is, use the command:
whereis arp or whereis ifconfig
The command which arp or which ifconfig will work also.
Then, use the results..... /sbin/arp or /sbin/ifconfig
 
Old 08-17-2005, 06:27 AM   #3
TranceDude
Member
 
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 222

Original Poster
Rep: Reputation: 30
thanks a lot!

But i worked on a RH 9.0 machine and there ldconfig worked just by typing it in the terminal
any idea why this does not work on FC4?
 
Old 08-17-2005, 06:31 AM   #4
TranceDude
Member
 
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 222

Original Poster
Rep: Reputation: 30
is there a way i can put the path /sbin (where arp and ldconfig are) in a configuration file so when i type arp, ... the terminal will loook in that path?
I'm just a beginner but maybe this is possible?
If you tell me in what file this belongs it would be very handy !
 
Old 08-17-2005, 07:17 AM   #5
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
You can put it in the users hidden file called .bash_profile . The easiest way for a beginner would be to open the file manager called Konqueror and select View / Show Hidden Files.
Now you can open ./bash_profile and add a path to /sbin in there like this...
PATH=$PATH:/sbin

You may need to logout and back in for those changes to happen. Also, some programs are not meant to be run by users and you get permission denied messages.
For example:

$ dhclient
Can't create /var/run/dhclient.pid: Permission denied
Internet Systems Consortium DHCP Client V3.0.2
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

can't create /var/lib/dhcp/dhclient.leases: Permission denied
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFFLAGS: Permission denied
Open a socket for LPF: Operation not permitted
 
Old 08-17-2005, 08:57 AM   #6
TranceDude
Member
 
Registered: Aug 2005
Distribution: Fedora Core 4
Posts: 222

Original Poster
Rep: Reputation: 30
thanks a lot

i found the file and everything works fine now

thx!
 
Old 08-17-2005, 10:40 AM   #7
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Glad to help!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange ARP behavior : A linux server responds to all ARP requests Hdvd21 Linux - Networking 4 10-24-2013 05:02 AM
arp: command not found rajames429 Linux - Networking 1 04-28-2005 11:21 PM
Disabling ARP probes after receiving an ARP request AltecLansingMan Linux - Networking 1 03-30-2004 01:25 PM
How to call the arp linux shell command from within a perl program Bassam Programming 1 03-11-2004 02:00 AM
How to create an proxyarp entry in arp table by using arp command? himalayas Linux - Networking 0 06-04-2003 04:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration