3

I am trying to install Nmap-7.5 with source installation and the Compiler says :

NMAP SUCCESSFULLY INSTALLED

but when I use the command: nmap -v ,the system says command not found

I find the Nmap has been installed as /usr/local/bin/nmap

When I want to use the Namp, I have to enter the path /usr/local/bin/nmapand give the command like ./nmap -v. I want to use the command like nmap-v,but I don't known how. THANKS!

dlmeetei
  • 9,905
  • 3
  • 31
  • 38
AtagoLee
  • 33
  • 5

1 Answers1

0

Looks like /usr/local/bin/ is missing from PATH. You can check it with echo $PATH command.
To add it to path use instructions from here.
Alternatively you can create an alias for nmap by editing the ~/.bashrc file:
1. Add the following line into file:

alias nmap='/usr/local/bin/nmap'

2. Source from this file:

source ~/.bashrc
Elvis Plesky
  • 3,190
  • 1
  • 12
  • 21