≡ Menu

Identify A Remote Host Apps and OS Using UNIX / Linux Command Line

How do I identify remote server os and apps using UNIX or Linux command line options?

You can use the nmap command under UNIX, OS X, BSD or Linux operating systems to detect remote operating systems and running apps. Type the following command
# nmap -O -v localhost
# nmap -O -v server.ip.address

Sample outputs:

Starting Nmap 5.00 ( http://nmap.org ) at 2010-06-11 04:18 IST
NSE: Loaded 0 scripts for scanning.
Warning: Hostname localhost resolves to 2 IPs. Using
Initiating SYN Stealth Scan at 04:18
Scanning localhost ( [1000 ports]
Discovered open port 80/tcp on
Discovered open port 3306/tcp on
Discovered open port 631/tcp on
Completed SYN Stealth Scan at 04:18, 0.09s elapsed (1000 total ports)
Initiating OS detection (try #1) against localhost (
Retrying OS detection (try #2) against localhost (
Retrying OS detection (try #3) against localhost (
Retrying OS detection (try #4) against localhost (
Retrying OS detection (try #5) against localhost (
Host localhost ( is up (0.000026s latency).
Interesting ports on localhost (
Not shown: 997 closed ports
80/tcp   open  http
631/tcp  open  ipp
3306/tcp open  mysql
No exact OS matches for host (If you know what OS is running on it, see http://nmap.org/submit/ ).
TCP/IP fingerprint:

Uptime guess: 0.527 days (since Thu Jun 10 15:39:23 2010)
Network Distance: 0 hops
TCP Sequence Prediction: Difficulty=201 (Good luck!)
IP ID Sequence Generation: All zeros

Read data files from: /usr/share/nmap
OS detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 12.11 seconds
           Raw packets sent: 1095 (51.990KB) | Rcvd: 2208 (98.632KB)
Share this tutorial on:

Your support makes a big difference:
I have a small favor to ask. More people are reading the nixCraft. Many of you block advertising which is your right, and advertising revenues are not sufficient to cover my operating costs. So you can see why I need to ask for your help. The nixCraft, takes a lot of my time and hard work to produce. If you use nixCraft, who likes it, helps me with donations:
Become a Supporter →    Make a contribution via Paypal/Bitcoin →   

Don't Miss Any Linux and Unix Tips

Get nixCraft in your inbox. It's free:

{ 1 comment… add one }
  • sasi April 29, 2015, 5:55 am

    nmap -O -v xxx.xxx.xxx.xxx client hosts mac os x (mac mini) ,ubuntu desktop host. OS and other detail is not show.

Security: Are you a robot or human?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">

   Tagged with: , , , , , , , , , , , , , ,