Useful Command Lines

Useful command lines

Networking

ifconfig

ifconfig is useful for seeing your local networking configuration. It's installed on or is available for more or less every Unix like system and has a Window approximation (ipconfig). On Ubuntu its available in the net-tooks package.

www.review-pc.com $ ifconfig
eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx  
          inet addr:192.168.1.7  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: yyyy::yyyy:yyy:yyyy:yyyy/zz Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:26635567 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21681445 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:38208692678 (38.2 GB)  TX bytes:3093046903 (3.0 GB)
          Interrupt:89 Base address:0xc000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:22515 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22515 errors:0 dropped:0 overruns:0 carrier:0
⋮