Originally Posted by abhijit_mohanta
the new binary file of namp(v 4.8) is located at /usr/local/bin
and the default nmap( V 3.0)is perhaps at /usr/bin
when i type the command echo $PATH$
then it shows both the directories are in the path variable
.when i type nmap -version it shows version 3.0 only.so tell me how to proceed.
This means that /usr/bin comes first before /usr/local/bin so the nmap in /usr/bin is found first and is executed.
You can do one of the following:
1. call the new nmap using the full path as:
2. modify your path so that /usr/local/bin comes before /usr/bin. (might not be a very good idea)
3. uninstall the old nmap version
4. mv /usr/bin/nmap to something like /usr/bin/nmap.old. You can then move it back if you want the old version.