Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have connected to a machine running Linux via SSH and would like to know; is there any command to ping a computer, or translate domain name to ip address in Linux?

share|improve this question

migrated from Oct 18 '10 at 20:13

This question came from our site for professional and enthusiast programmers.

To literally answer their question: No their isn't. SSH is just another application/protocol. It is like you are asking whether your email application can open MS Word documents... Maybe you have to learn first what SSH is: – Felix Oct 18 '10 at 20:13

3 Answers 3

"ping" and "nslookup" assuming the machine you've SSH'd to has them installed:

you@yourhost:~$ ping
PING ( 56(84) bytes of data.
64 bytes from ( icmp_seq=1 ttl=57 time=27.8 ms
64 bytes from ( icmp_seq=2 ttl=57 time=27.1 ms

you@yourhost:~$ nslookup

Non-authoritative answer:  canonical name =
share|improve this answer

Did you mean you are logged in and you want to ping a server?

You can find the ping binary in :

share|improve this answer

You can use which to see where the programs are that you want to use.

$ which ping

$ /sbin/ping
share|improve this answer

Your Answer


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