I want to download all the `.nc4` files under this link <https://hydro1.gesdisc.eosdis.nasa.gov/data/GLDAS/GLDAS_NOAH025_M.2.1/> by using wget command as stated in <https://disc.gsfc.nasa.gov/information/howto/5761bc6a5ad5a18811681bae?keywords=wget>

I downloaded wget Version 1.19.4 from <https://eternallybored.org/misc/wget/>

Unfortunately, I could not figure out how to enter username and password as described in <https://disc.gsfc.nasa.gov/information/howto/5761bc6a5ad5a18811681bae?keywords=wget>

Also, I did all the instructions step by step at this link <https://disc.gsfc.nasa.gov/data-access> When I enter `NUL > .urs_cookies`, it says Access is denied. But creates `.urs_cookies` file inside my directory.

Another way to download the data is to use Mirador <https://mirador.gsfc.nasa.gov/>. After I add the data to my cart, it gives some instructions to download these files. However, I got stuck on the first step and could not save the URLs to my workstation. I guess I should download the .txt file as myfile.dat.

wget:

1. Save the list of URLs in one of the above links to your local workstation as myfile.dat

If you haven't done so already, follow these instructions to register with Earthdata Login system and authorize the access to GES DISC data

Create a `~/.netrc` file pointing to urs.earthdata.nasa.gov and an empty `~/.urs_cookies` file

On your command line, using wget 1.18 ( or higher ): `wget --content-disposition --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --auth-no-challenge=on --keep-session-cookies -i myfile.dat`

Could someone please help me to download these files? Any help would be appreciated.