Answers for "bash how to download password protected files"

1

bash how to download password protected files

# Basic syntax:
# Download a single password protected file:
wget http://url/file --user=username --password=password --directory-prefix=/path/to/output/directory

# Recursively download a directory of password protected files:
wget -r --no-parent http://url/directory/ --user=username --password=password --directory-prefix=/path/to/output/directory

# Where:
#	- -r means recursively
#	- --no-parent tells wget to avoid getting files from any 
#		parent directories of directory

# Note, for directories, it's important to add the trailing / to the url
Posted by: Guest on October-04-2020

Code answers related to "bash how to download password protected files"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language