Set FTP Autologin with .netrc file in linux

There are some scenario where we do not want to specify ftp user name and password on the ftp command line. So to automatically supply ftp username and password to the ftp client, create a file .netrc in user’s home direcrory which contains the information regarding the ftp server name, ftp user & password.