Professional Documents
Culture Documents
CN Assignment 2
CN Assignment 2
Batch : C
1. Hostname
hostname with no options displays the machines host name
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
View network configuration, it displays the current network adapter configuration. It is handy to
4. netstat
Most useful and very versatile for finding connection to and from the host. You can find out all the
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
domain name, the command nslookup is used. You must have a connection to the internet for
7. finger
View user information, displays a user’s login name, real name, terminal name and write status. this
is
8. telnet
Connects destination host via telnet protocol, if telnet connection establish on any port means