How can I know the filesize of the downloaded file before downloading it?
You can use the following command:
curl --head <url>
where <url> is the URL of the file you want. The response will be only the headers of the HTTP response, which may include the file size if is known by the server.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the
terms of service.
1 year ago