Search Results for: ftp

Getting mulitple files from ftp server with out any prompt

How to get multiple file from FTP server? Normally when we try to connect to a FTP server we can download one file after other but if we want to download multiple files at a time we can use mget at FTP prompt but the issue is it always asks you to conform your action by presenting you with yes/no prompt for which we have to either enter "Yes" or "No". This is not advisable when you want to script your actions like keeping in a shell script.  We can resolve this issue in two ways 1)when you are accessing FTP server use -i option which is nothing but interactive way to get files from FTP server, actually this -i option will disable iteractive download of files from server. Syntax: ftp -i server-ip/servername Example: #ftp -i 222.1.89.1 2)This is used when you are middle of the transaction you can use prompt command in ftp mode to get multiple files without any prompt, here is the example and this is for that session ftp> ls 200 PORT command successful. Consider using PASV. 150 Here comes the directory listing. -rw-r--r-- 1 1005 0 47 Apr 11 19:37 file1.txt -rw-r--r-- 1 1005 0 47 Apr 11 19:37 file2.txt -rw-r--r-- 1 1005 0 47 Apr 11 19:37 file3.txt -rw-r--r-- 1 1005 0 47 Apr 11 19:37 file4.txt 226 Directory send OK. ftp> prompt...

Read More

TFTP Implementation In Linux

Trivial File Transfer Protocol (TFTP) server is an important service for Network engineers, because they will be using this TFTP server for coping big IOS(Inter networking Operating System)files to routers, So as a Linux administrators we have to install and configure tftp server. Why these network guys uses TFTP server for coping IOS images? why not ftp, scp, rcp etc? Ans : Because TFTP use UDP protocol for sending data, so it’s bit faster due to it’s unreliable way of sending data. In early days one serial port is between router and server so the data transmission is very...

Read More

APT-CACHE and APT-GET commands for package management in Ubuntu

Introduction In an earlier article, we demonstrated how you could use the dpkg package manager to install, remove and query information about software packages in the Ubuntu OS. In this article, we will show you how to use apt-cache to search for and query information about packages available in online and local repositories and we will also show you how to use apt-get to install and uninstall packages. Essentially apt-cache is the tool we use to query the apt software cache to obtain information about packages and apt-get is the tool we use for installing packages and modifying the state of packages installed on the system. All the examples demonstrated in this article were performed on an Ubuntu 16.04 system.   APT-CACHE examples   Example 1: List all available packages To list all packages available to be installed, we use the apt-cache pkgnames command as shown below root@linuxnix:~# apt-cache pkgnames libdatrie-doc libfstrcmp0-dbg librime-data-sampheng python-pyao-dbg fonts-georgewilliams python3-aptdaemon.test libcollada2gltfconvert-dev python3-doc8 r-bioc-hypergraph angrydd fonts-linuxlibertine ---------output truncated for brevity Note that this command only shows the package names and no other information about the package. Example 2: Search for a package To search for a package use the apt-cache search command followed by the package name. Let’s search for the nano text editor. root@linuxnix:~# apt-cache search nano nano - small, friendly text editor inspired by Pico alpine-pico - Simple text editor from Alpine,...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.