Running curl on windows - windows

I'm trying to install curl from the following link
https://curl.haxx.se/download.html
from Windows 64 - Generic. But the zip folder doesn't have curl.exe file. I don't know what to do. How do I run curl in my cmd?

I have downloaded this one:
Win64 x86_64 7zip 7.49.1 binary SSL SSH Viktor Szakáts 1.81 MB
and the zip folder contains a curl.exe (within the bin folder).
Go to this directory with cmd and just enter curl --help or any other curl command.

Related

Installing Github .zip files on Chromebook via Linux

I'm using a Linux Debian terminal, trying to install a Github .zip file by following a walkthrough (from Chromebook). They're using a Windows terminal and access the zip file from a G: drive. They run the following:
C:\Users\zasur>G:
G:\>cd filename.zip
G:\filename>npm install
Which installs the Github zip. I've looked all over online and tried a few different solutions but can't get past the second command they run.
I was able to open /mnt/chromeos/MyFiles/Downloads from Linux by sharing the Downloads folder with it.
I'm not sure how to change the directory from here to the filename.zip and/or run commands from it. Whenever I try to run cd filename.zip or cd /mnt/chromeos/MyFiles/Downloads/filename.zip it always fails. Is this even possible on a Chromebook?

Downloading a file using a windows CMD line using wget/curl

I have a client [Windows 10 VM] and a server [say a linux based VM].
I have Apache running on the Linux Server.
I have a file on the linux server that I want to download on my windows client.
I want to do it in 2 ways from the windows CMD:
-Using curl
-using wget
I tried the foll commands on my windows CMD. But doesnt work. Is something wrong with my CLI?
curl http://x.x.x.x/home/abc/ -O test.zip
wget http://x.x.x.x/home/abc/ -O test.zip
From curl side, most probably curl.exe is missed on Windows Client machine or could not find it. One of the options is to download curl:
Download curl zip for Windows from this page: https://curl.se/download.html
Unzip and you will find the ..\bin\curl.exe
Also add ...\bin\ to your Path variable in System Settings.
To use wget in Windows, you can follow this link and it worked for me: https://medium.com/nerd-for-tech/using-wget-command-in-windows-10-environment-d766b8f526e9
Short tutorial:
Download the GnuWin setup
Install it
Open the wget directory
Add to Environmet Variables as well.

NGINX cmd command does not work

When i use my mac, i installed by brew. And it made all command usable every where
But, chocolatey does not allow windows to install NGINX.
So i downloaded under the C: and unzipped it.
Unlike Mac, i can't use NGINX or NGINX -s reload.
I think the 'bin' folder should be located in window 'PATH', but i could not know where it is.
When i order 'NGINX', cmd returns NGINX is not internal or external command.
How can i use these commands? Even though, Windows' directory tree is not similar with Mac's
If you download the nginx binary package from nginx website,when you unpacked it,there was no bin folder in it.The executable application is nginx.exe.The following is what looks like if you use ls command in the nginx directory.
C:\nginx-1.8.1>ls -1
conf
contrib
docs
html
logs
nginx.exe
temp

Cannot use curl even though git is installed

I have git for windows installed, but I can't run curl commands in cmd. If I type in curl, I get the following error:
'curl' is not recognized as an internal or external command, operable program or batch file.
Curl is normally included in the Git package for Windows.
If you start "Git Bash", the command "curl" should be available in your bash window.
The curl executable is located in the "bin" directory, along with all the other applications installed with git.

Downloading file using wget directly into an EC2 instance

I am trying to download a zip file using wget directly from my EC2 instance. The command actually works and a file is downloaded, however it is a fraction of the size it is supposed to be (supposed to be 7 GB and the file downloaded is 14K) and unzip commands are not working.
Any ideas? I'd prefer not to download the file to my local computer and then use scp (although if I have to I guess that is what I'll do)
Found the issue, the website requires authentication before downloading the file, so I believe I just need to add login credentials as parameters in the wget command:
wget --user=user --password=password

Resources