linux - what is the use of "wgetrc" command in wget download -
what purpose of "wgetrc" in below commands.
-sh-3.00$ wgetrc=/hom1/spyga/spp/wgetrc_local wget --directory-prefix=/home1/spyga/spp/download ftp://127.0.0.1/outgoing/data.zip wgetrc_local files having credentials of ftp server.
normally downloading files ftp server using below command.
-sh-3.00$ wget --ftp-user=xyz--ftp-password=12345 ftp://localhost/outgoing/data.zip what different between above commands.
please me out understand commands. you.
the first command specifies alternative configuration file use instead of default ~/.wgetrc. specify using --config=/hom1/spyga/spp/wgetrc_local argument wget.
this file can contain wgetrc commands change behaviour of wget. in case it's done user , passwords don't have supplied on command line. specially on multiuser systems security risk pass passwords on command line, can possibly viewd other users, it's little better store them in file restricted access permissions instead. way processes started owner of file can access it.
another use of wget startup file change it's default settings, user agent etc...
it's documented here.
Comments
Post a Comment