What is the curl equivalent of wget -qO (wget -q -O)?

I need to run the following command in Red Hat Linux, but I don't have wget installed.

wget -q -O | bash 

What's the equivalent for curl?

1 Answer

This should do it.

curl -s | sh 

EDIT: removed -O: Not needed as it's piping to the bash, as @gravity's comment mentions.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like