Nmap is not installing correctly
I am trying to install Nmap-7.5 with the original install and the compiler says:
NMAP SUCCESSFULLY INSTALLED
but when i use the command: the nmap -v
system says command not found
I found that Nmap was installed as /usr/local/bin/nmap
When I want to use Namp, I have to enter the path /usr/local/bin/nmap
and give the command like ./nmap -v
. I want to use the command like nmap-v
, but I don't know how. THANK!
source to share
Seems to be /usr/local/bin/
missing from PATH. You can check it with the command echo $PATH
.
To add it to the path, use the instructions here .
Alternatively, you can create an alias for nmap
by editing the file ~/.bashrc
:
1. Add the following line to the file:
alias nmap='/usr/local/bin/nmap'
2. Source from this file:
source ~/.bashrc
source to share