BSD / Linux - Some UNIX NETWORK Commands

10/15/2003
  FINGER
FINGERD

HOSTNAME - Show or Set the System's Host Name
ID
  IFCONFIG - Configure a Network Interface
LOGNAME
  PING - Send packets to TCP/IP addresses
RUPTIME
RUSERS
RWHO
TALK
TTY
  W
WALL

  FINGER



FINGERD



HOSTNAME - Shows or Sets the System's Host Name (ex matrix.Berkeley)
hostname displays the system's host name eg. localhost.localdomain
hostname matrix.Berkeley will change the hostname to matrix.Berkeley
hostname -s (short hostname - cut name at first dot) displays matrix (the name of the local host (i.e. this computer)
hostname --ip-address displays the hosts ip address 127.0.0.1
ID



  IFCONFIG - Configure a Network Interface
ifconfig with no arguments displays the status of currently active interfaces including TCP/IP addresses, packet statistics, collisions, Interrupt & Base address.
ifconfig -a displays the status of allinterfaces, active or not.
ifconfig eth0 down shuts down interface eth0
ifconfig eth0 up activates the eth0 interface
ifconfig eth0 netmask 255,255,0,0 changes the network mask for eth0
ifconfig eth0 -pointopoint 126.3.0.1 (note the hyphen and spelling) changes the IP address of eth0


LOGNAME



  PING - Sends ICMP ECHO_REQUEST packets to TCP/IP addresses
ping 168.9.0.5 sends 1 packet each second and returns the status of each - the following is displayed :
PING 168.9.0.5 (168.9.0.5): 56 data bytes
64 bytes from 168.9.0.5: icmp_seq=0 H1=128 time=3.2ms
64 bytes from 168.9.0.5: icmp_seq=1 H1=128 time=1.8ms
64 bytes from 168.9.0.5: icmp_seq=2 H1=128 time=1.6ms

RUPTIME



RUSERS



RWHO



TALK



TTY



  W



WALL




Up to Top of Page
Back to the LINUX home page...