Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I know if my machine (Ubuntu) is using some local server? Like wampp, xampp or lampp? And also how do I know my Ubuntu version something like that?

share|improve this question

Try nmap localhost in terminal. It will list all the ports that are being used by some services. Example output:

21/tcp   open  ftp
22/tcp   open  ssh
80/tcp   open  http
5432/tcp open  postgresql

How to check version in terminal:

  • Apache2: apache2 -v
  • PHP: php -v
  • MySQL: mysql --version
  • Ubuntu: lsb_release -a
share|improve this answer
no i dont see any server running. But im sure there is at least one server installed. – belmark Jun 7 '13 at 4:51
What's the output of nmap? – llt Jun 7 '13 at 5:17

you can use netstat -atup


-t : Select all TCP services
-u : Select all UDP services
-a : Display all listening and non-listening sockets.
-p : Display the PID and name of the program to which each socket belongs

you will get all the services along with the PID.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.