WattMaster WM-WCC3-TGD-01B User Manual

Page 652

Advertising
background image

WCC III Technical Guide

13B-40

13B. WCC III - MCD INSTALLATION GUIDE

Common Linux Commands

Common Linux Commands that would be helpful to know for the WCCIII-MCD2

Display Current Confi g for all NIC’s: ifconfi g

Display Current Confi g for eth0: ifconfi g eth0

Display Current Confi g for eth1: ifconfi g eth1

Assign IP: ifconfi g eth0 192.168.100.100

Ping: ping -c 4 192.168.100.100

Assign second IP: ifconfi g eth1 192.168.200.200 - Used for Crossover connection

Disable network card: ifconfi g eth0 down - WARNING: Use this command only if connected through a serial port or if you have
Keyboard and Monitor hooked up.

Enable network card: ifconfi g eth0 up

Assign IP/Subnet: ifconfi g eth0 192.168.100.100 netmask 255.255.255.0

Assign Default Gateway: route add default gw 192.168.100.1

Trace Path: tracepath www.google.com - Tests if route to Internet is present

DNS Test: host www.google.com - Tests if the MCD’s DNS Settings are functioning /etc/resolv.conf

Reverse Lookup: host 209.191.93.52 - Tests reverse DNS lookup to yahoo.com

Ping XXX.XXX.XXX.XXX

Pings a specifi c IP Address for testing. Under Linux it is continually testing the IP address so you

must press “Control” “C” to stop the IP pinging process.

traceroute “IP address”

Provides information concerning the route which packets must take to get from your computer (the server in

this case) to a remote computer/server; typically used to diagnose possible problems in packet routing.

nslookup “IP address”

Provides conversion of an IP address to an alias of a computer if it is registered in DNS (Domain Name

Service) or will provide the IP address for an alias.

sudo

sudo is the superuser and as such is a privileged user who has unrestricted access to the whole system,

including all commands and all fi les regardless of their permissions. By convention, the username for the

superuser

account

is

root.

ls (ls –al is the most useful)

Lists the contents of a directory by typing on the command line. -l displays detailed information

about

each

fi le and directory, including permissions, owners, size and time/date when the fi le was

last

modifi ed; -a option displays all the fi les and subdirectories including hidden fi les (with names

that begin with a dot); -p displays a slash at the end of each directory name to distinguish them

from

fi lenames; -r displays fi les in reverse order; -t displays fi les in order of modifi cation time; -x

displays

the

fi lenames in columns across the screen.

chmod (permissions) fi lenames

changes the permissions for a fi le; permissions should include a letter designating who gets

permissions (u for the user, g for the group, o for others, or a for all) followed by a + or - (to give or

take away the permission) followed by the kind of permission (r for read access, w for write

access, x for execute if the fi le is a program or script); the complete command that you type should

look

like:

chmod

g-w

fi lename

chown user:group fi lenames

changes ownership of a fi le

Advertising
This manual is related to the following products: