<p><a href="https://www.lifewire.com/ftp-defined-2654479" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="1">FTP is the simplest and most familiar file transfer protocol</a> that exchanges files between a local computer and a remote computer or network. Linux operating systems have built-in command line prompts you can use as FTP clients for making an FTP connection. Here are examples that illustrate typical uses of the command FTP for remotely copying, renaming, and deleting files.</p><h3>FTP Command Examples and Descriptions</h3><pre> <code> ftp abc.xyz.edu </code></pre><p>This command attempts to connect to the <a href="https://www.lifewire.com/servers-in-computer-networking-817380" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="2">ftp server</a> at abc.xyz.edu. If it succeeds, it asks you to log in using a username and password. Public ftp servers often allow you to log in using the username &#34;anonymous&#34; and your email address as a password. After you are logged in, you can get a list of the available ftp commands using the help function:</p><pre> <code> ftp&gt; help</code></pre><p>The help function lists the commands that you can use to show the directory contents, transfer files, and delete files.</p><pre> <code> ftp&gt; ls</code></pre><p>This command prints the names of the files and subdirectories in the current directory on the remote computer.</p><pre> <code>ftp&gt; cd customers</code></pre><p>This command changes the current directory to the subdirectory &#34;customers,&#34; if it exists.</p><pre> <code> ftp&gt; cd ..</code></pre><p>This changes the current directory to the parent directory.</p><pre> <code> ftp&gt; lcd images</code></pre><p>This command changes the current directory on the local computer to &#34;images,&#34; if it exists.</p><pre> <code> ftp&gt; ascii</code></pre><p>This changes to ascii mode for transferring text files.</p><pre> <code> ftp&gt; binary</code></pre><p>This command changes to binary mode for transferring all files that are not text files.</p><pre> <code> ftp&gt; get image1.jpg</code></pre><p>This downloads the file image1.jpg from the remote computer to the local computer. Warning: If there already is a file on the local computer with the same name, it is overwritten.</p><pre> <code> ftp&gt; put image2.jpg</code></pre><p>Uploads the file image2.jpg from the local computer to the <a data-inlink="ZBA1hx7u22oOhT23YBfIog&#61;&#61;" href="https://www.lifewire.com/remote-access-to-computer-networks-817773" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="3">remote computer</a>. Warning: If there already is a file on the remote computer with the same name, it is overwritten.</p><pre> <code> ftp&gt; !ls</code></pre><p>Add an exclamation mark in front of a command executes the specified <a data-inlink="KxaRFJlFIKsgbfw4uM5peg&#61;&#61;" href="https://www.lifewire.com/linux-unix-shell-commands-2180216" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="4">command</a> on the local computer. So !ls lists the file names and directory names of the current directory on the local computer.</p><pre> <code> ftp&gt; mget *.jpg</code></pre><p>With mget you can download multiple images. This command downloads all files that end with &#34;.jpg.&#34;</p><pre> <code> ftp&gt; mput *.jpg</code></pre><p>This command uploads all the files that end with &#34;.jpg.&#34;</p><pre> <code> ftp&gt; mdelete *.jpg</code></pre><p>This deletes all files that end with &#34;.jpg.&#34;</p><pre> <code> ftp&gt; prompt</code></pre><p>The prompt command turns interactive mode on or off so that commands on multiple files are executed without user confirmation.</p><pre> <code> ftp&gt; quit</code></pre><p>The quit command exits the ftp program.</p>