LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-18-2020, 03:33 PM   #1
Inver
LQ Newbie
 
Registered: Nov 2020
Location: Dumbarton
Posts: 3

Rep: Reputation: Disabled
Wink nmap used in linux


hi everyone, great site. I am a mature student trying to learn cyber security. have installed linux and trying to install nmap in linux. i have managed to get nmap running in windows 10 but the course uses linux. the error message comes up " bash nmap command not found. I have tried the help on the site e.g. turning windows features on and off, putting full path to nmap but still no luck.

Could anyone offer any other guidance?
 
Old 11-18-2020, 03:51 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,138
Blog Entries: 6

Rep: Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827
What disto of linux are you using. How did you install nmap? With your package manager?

Or are you asking something else? Are you trying to run a bash script in that windows linux scripting layer? You'll need to give some more info.
 
Old 11-18-2020, 03:51 PM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by Inver View Post
the error message comes up " bash nmap command not found.
Either it is not installed, or it is installed at a location that is not in the PATH.
Quote:
putting full path to nmap but still no luck.
What is the full path?

Which distro are you using? How did you install nmap? I just installed and tested nmap in Debian Buster like this:
Code:
# apt install nmap
# type nmap
nmap is /usr/bin/nmap
# nmap
Nmap 7.70 ( https://nmap.org )
Usage: nmap [Scan Type(s)] [Options] {target specification}
...
 
Old 11-19-2020, 07:21 AM   #4
Inver
LQ Newbie
 
Registered: Nov 2020
Location: Dumbarton
Posts: 3

Original Poster
Rep: Reputation: Disabled
Talking

Quote:
Originally Posted by teckk View Post
What disto of linux are you using. How did you install nmap? With your package manager?

Or are you asking something else? Are you trying to run a bash script in that windows linux scripting layer? You'll need to give some more info.
Hi thank you for taking the time to reply/ help me. linux. 1.5.1.0 the bash suggests nmap is not available. nmap was from zenmap web site. two version one for windows and one for kali linux. i got the windows one to work ok. the package manager may have been included in the down load. ubuntu was installed as well but not tried that yet. I have googles search the error message and tried various good suggestions but with no luck.

a s mentioned just learning my way round my way round this area of IT. thank you
 
Old 11-19-2020, 10:17 AM   #5
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,138
Blog Entries: 6

Rep: Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827
Maybe English is not your native tongue. I have no idea what you are asking.
What distibution of Linux are you using?

Whatever flavor of linux that you are using, it will have repositories and a package manager to install from that repository and satisfy all dependencies. nmap is common. It will probably be in just about all Linux distribution repositories.

I would not download random files from the internet and try to install them. you will have a mess. Use your package manager.

Last edited by teckk; 11-19-2020 at 10:22 AM.
 
Old 11-19-2020, 11:10 AM   #6
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
OP: don't download nmap from any site, use the package management tools from whatever distro you are running, as suggested by other members.
 
Old 11-19-2020, 11:43 AM   #7
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,606

Rep: Reputation: 2549Reputation: 2549Reputation: 2549Reputation: 2549Reputation: 2549Reputation: 2549Reputation: 2549Reputation: 2549Reputation: 2549Reputation: 2549Reputation: 2549
Quote:
Originally Posted by Inver View Post
i have managed to get nmap running in windows 10 but the course uses linux.
Quote:
I have tried the help on the site e.g. turning windows features on and off, putting full path to nmap but still no luck.
This seems to be a contradiction - turning Windows features on and off will only affect Windows, not Linux.

Are you trying to run Linux via the "Windows Subsystem for Linux"?


Quote:
Originally Posted by Inver View Post
Hlinux. 1.5.1.0 the bash suggests nmap is not available. nmap was from zenmap web site. two version one for windows and one for kali linux. i got the windows one to work ok. the package manager may have been included in the down load. ubuntu was installed as well but not tried that yet.
It's still unclear what you are using. Please enter "uname -a" and "cat /etc/os-release" into Bash and post the results.

Ubuntu allows you to install nmap, but does not do it for you. (If you want to use Ubuntu, use "apt install nmap" instead of the zenmap website.)

Kali will have nmap installed already (Distrowatch confirms this).

Usually Kali is not recommended for beginners, but if you're learning cyber-security on a course it may be suitable. (You should confirm with the course tutor if Kali is a good choice or they have a different preferred distro).

Alternatively, a distro such as CentOS also includes nmap by default and may be worth starting with.

 
Old 11-19-2020, 05:39 PM   #8
Inver
LQ Newbie
 
Registered: Nov 2020
Location: Dumbarton
Posts: 3

Original Poster
Rep: Reputation: Disabled
Wink

Quote:
Originally Posted by berndbausch View Post
Either it is not installed, or it is installed at a location that is not in the PATH.


What is the full path?

Which distro are you using? How did you install nmap? I just installed and tested nmap in Debian Buster like this:
Code:
# apt install nmap
# type nmap
nmap is /usr/bin/nmap
# nmap
Nmap 7.70 ( https://nmap.org )
Usage: nmap [Scan Type(s)] [Options] {target specification}
...
Thank you for taking the time to reply. will try this and guidance from others. will keep you posted if thats ok.
 
Old 11-19-2020, 11:31 PM   #9
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by Inver View Post
Thank you for taking the time to reply. will try this and guidance from others. will keep you posted if thats ok.
That's absolutely OK, but you may also want to consider answering the clarifying questions I and others asked.
 
  


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
port 5432 open nmap online but closed status with firewalld and local nmap scan mtdew3q Linux - Security 6 06-04-2018 06:20 PM
nmap ? how do i do nmap in linux ? command not found abbasakhtar Linux - Newbie 2 01-02-2011 01:08 AM
LXer: Learn how to use nmap, and nmap GUI, a great port scan tool LXer Syndicated Linux News 0 01-03-2008 09:10 AM
nmap increase send delay for nmap 4.20 matters Slackware 1 10-01-2007 11:37 PM
Cant nmap from but can nmap to procfs Linux - General 6 08-01-2006 02:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:49 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