Common Linux Commands

#ping google.com

#ping -I ethF 192.168.1.1 (from a particular source interface)

#traceroute google.com

#/sbin/ifconfig (all active network interfaces and some interface statistics)(add or change IP addresses)

# ifconfig -a

# ip addr

#setup (to change the default interface or changing the interface IPs etc)

#reboot

#clear (to clear the screen)

#ip neigh flush all (clear arp cache)

#ifconfig

#dig http://www.google.com (just like nslookup in windows)

#curl http://bbc.co.uk

#route -n (or route (to print the routing table in linux)

#route add default gw 10.0.1.1 eth0 (to add a default route)

#route add -net 10.0.1.0 netmask 255.255.255.0 gw 10.0.1.1

#route del -net 10.0.1.0 netmask 255.255.255.0 gw 10.0.1.1

Advertisement

One thought on “Common Linux Commands

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: