UNIX / Linux Network Communication Utilities - Unix/Linux

What are UNIX / Linux Network Communication Utilities?

In this chapter, we will discuss in feature about network communication utilities in UNIX. When you work in a concentrated environment, you want to communicate with isolated users and you also need to access remote UNIX equipment.

There is a number of UNIX utilities that help users compute in a networked, distributed environment. This part lists a few of them.

The ping Utility

The ping command sends an echo request to a host available on the network. Using this command, you can check if your secluded host is respond well or not.
The ping command is useful for the following −

  • Tracking and isolating hardware and software problems.
  • Determining the status of the network and various foreign hosts.
  • Testing, measuring, and managing networks.

Syntax

Following is the simple syntax to use the ping command –

The above command starts printing a reply after every second. To come out of the command, you can terminate it by pressing CNTRL + C keys.

Example

Following is an instance to check the accessibility of a host available on the network –

If a host does not exist, you will receive the following output –

The ftp Utility

Here, ftp stand for File Transfer Protocol. This utility helps you upload and download your file from one computer to another computer.
The ftp utility has its own set of Unix-like commands. These commands help you execute responsibilities such as −

  • Connect and login to a remote host.
  • Navigate directories.
  • List directory contents.
  • Put and get files.
  • Transfer files as ascidia, EBCDIC or binary.

Syntax

Following is the easy syntax to use the ping command –

The above command would prompt you for the login ID and the password. Once you are authenticated, you can access the home directory of the login explanation and you would be able to execute different commands.

The following tables lists out a few main commands −

S.No. Command & Description
1
put filename
Uploads filename from the local machine to the remote machine.
2
get filename
Downloads filename from the remote machine to the local machine.
3
mput file list
Uploads more than one file from the local machine to the remote machine.
4
mget file list
Downloads more than one file from the remote machine to the local machine.
5
prompt off
Turns the prompt off. By default, you will receive a prompt to upload or download files usingmputormgetcommands.
6
prompt on
Turns the prompt on.
7
dir
Lists all the files available in the current directory of the remote machine.
8
cd dirname
Changes directory to dirname on the remote machine.
9
lcd dirname
Changes directory to dirname on the local machine.
10
quit
Helps logout from the current login.

It should be noted that all the files would be downloaded or uploaded to or from the present directories. If you want to upload your files in a particular directory, you want to first modify to that directory and then upload the necessary files.

Example

Following is the instance to show the working of a few instructions –

The telnet Utility

There are times when we are essential to connect to a remote UNIX device and work on that machine remotely. Telnet is a utility that allows a computer user at one site to make an association, login and then manner work on a computer at another site.

Once you login using Telnet, you can achieve all the performance on your remotely linked machine. The following is an instance of Telnet session –

The finger Utility

The finger command show information about users on a given host. The host can be either local or secluded.

Finger may be disabling on other systems for security reasons.

Following is the simple syntax to use the finger command −

Check all the logged-in users on the local machine –

Get information about a particular user presented on the local machine –

Check all the logged-in users on the remote machine –

Get the information about a particular user accessible on the secluded device –

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Unix/Linux Topics