
netstat | 327
Linux
Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
- A regular file.
? An error of some kind.
b A block device.
c A character device.
d A directory.
f: The pathname namei is currently trying to resolve.
l A symbolic link (both the link and its contents are output).
s A socket.
nameif
nameif [options] [name macaddress]
System administration command. Assign an interface name to a
network device specified by macaddress, the unique serial number
that identifies a network card. If no name and macaddress are
given, nameif will attempt to read addresses from the configura-
tion file /etc/mactab. Each line of the configuration file should
contain either a comment beginning with # or an interface name
and MAC address.
Options
-c filename
Read interface names and MAC addresses from filename
instead of /etc/mactab.
-s Send any error messages to syslog.
netstat
netstat [options] [delay]
TCP/IP command. Show network status. Print information on
active sockets, routing tables, interfaces, masquerade connections,
or multicast memberships. By default, netstat lists open sockets.
When a delay is specified, netstat will print new information every
delay seconds.
Options
The first five options (-g, -i, -M, -r, and -s) determine what kind of
information netstat should display.
-g, --groups
Show multicast group memberships.
-i, --interface[=name ...