Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

CN ASSIGNMENT - 2

Name : Nikhil Soni

Reg Id: 211080056

Batch : C

1. Hostname
hostname with no options displays the machines host name

hostname –d displays the domain name the machine belongs to

hostname –f displays the fully qualified host and domain name

hostname –i displays the IP address for the current machine

2. ping
It sends packets of information to the user-defined source. If the packets are received, the
destination

device sends packets back. Ping can be used for two purposes

1. To ensure that a network connection can be established.

2. Timing information as to the speed of the connection.


3. ifconfig

View network configuration, it displays the current network adapter configuration. It is handy to

determine if you are getting transmit (TX) or receive (RX) errors.

4. netstat
Most useful and very versatile for finding connection to and from the host. You can find out all the

multicast groups (network) subscribed by this host by issuing "netstat -g"

netstat -nap | grep port will display process id of application which is using that port

netstat -a or netstat –all will display all connections including TCP and UDP

netstat --tcp or netstat –t will display only TCP connection

netstat --udp or netstat –u will display only UDP connection

netstat -g will display all multicast network subscribed by this host.


5. nslookup
If you know the IP address it will display hostname. To find all the IP addresses for a given

domain name, the command nslookup is used. You must have a connection to the internet for

this utility to be useful.

E.g. nslookup blogger.com


6. traceroute
A handy utility to view the number of hops and response time to get to a remote system or web site
is traceroute.

7. finger
View user information, displays a user’s login name, real name, terminal name and write status. this
is

pretty old unix command and rarely used now days.

8. telnet
Connects destination host via telnet protocol, if telnet connection establish on any port means

connectivity between two hosts is working fine.


telnet hostname port will telnet hostname with the port specified. Normally it is used to see
whether host is alive and network connection is fine or not.

You might also like