Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Basically I want to check if the computer is connected to the wifi (router) using a command line command. Ping is usually used to check internet connection, but I only want to know if is connected to the router, not about internet connection. I am using wicd as a network manager.

Thank you

share|improve this question
2  
Ping your router then. –  terdon Sep 4 '13 at 17:56
    
Thanks, but I believe iwconfig is faster, as the information will go on a loop (text status bar). –  milarepa Sep 4 '13 at 18:08
add comment

2 Answers

up vote 1 down vote accepted

The easiest way would be to ping your router, something like ping 192.168.1.1.

Alternatively, you can run ifconfig and check if you have an IP address. You can also do this with iwconfig and look for an ESSID.

share|improve this answer
    
Thank you. I will use iwconfig. –  milarepa Sep 4 '13 at 18:05
add comment

I believe that Wavemon should work for you.

Install:

  • Ubuntu/Debian:

    # apt-get install wavemon 
    
  • Fedora/CentOS/Red Hat:

    # yum install wavemon
    

Starting to use # wavemon.

enter image description here

share|improve this answer
1  
Thanks, but I was thinking to get the information as standard output, as I needed for an all text status bar. –  milarepa Sep 4 '13 at 18:06
add comment

Your Answer

 
discard

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.