Author: Surendra Anne

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

Linux Troubleshooting for a newbe

When I started working on Linux, I was interested in knowing how some of our Linux users approach an issue to troubleshoot. So today we will see how to do Linux troubleshooting in an nutshell(This is my personal and every person have their own way to troubleshoot an issue). Quick way of doing troubleshooting 1)When I had a problem I will first try to pin point the issue, what is the present status of system and what it has to be. To do that I will use top, iostat, netstat, ps and many more commands to see system performance 2) Second, look into error either on console or log files which are most of the time located in /var/log folder. 3) If I am still unable to find the root cause of the issue, I will just Google it by just pasting the error message. Most of the times I will get answers here if the issue is some thing of  basic nature. 4) If you still did not  find a solution, then post the issue in online forums, groups etc. Definitely experts will help you. 5) Discuss with your seniors and friends who are into Linux administration what you have did and where you got struck up. When discuses with other then only ideas will open. 6) Last but not least try this if the servers are not in production environment restart the service and try to see you...

Read More

Logical Volume Manager (LVM) in Redhat linux

Configuring LVM.. Please watch full video and comment on it so that we can correct our mistakes.. We like Feedback from you.. please comment on the video… Your comments are valuable to us to improve our Service. The following video shows how to configure LVM sit and relax and see the video.. Unconfiguring LVM:In this video you will see how to unconfigure the LVM step by step.. Please browse our site for other hot topics such as Linux interview questions.. Practical implementations of many Admin activities.. Please visit https://www.linuxnix.com for more linux admin...

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.