Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

when a try use a wget in a https site, I need add

 wget --no-check-certificate https://...

how I can use a more short argument?
for don't use this very long string.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

From what I can see there's no shorter version of the --no-check-certificate option.

So you could always make an alias to it. alias wgetncc='wget --no-check-certificate' (Change 'wgetncc' to whatever you please.)

Type that into the command line and after that, every time you run wgetncc it will be a shortcut to wget --no-check-certificate

If you want this to be an alias every time you login, you will have to place this in an alias file or something equivalent. It depends on the shell you are using.

share|improve this answer
    
Your accepted answer is naturally what the OP was looking for, but I'm interested in knowing why one would simply assume he was talking about Wget on Linux and not Windows, and thus recommend alias? –  Karan Nov 21 '12 at 21:29
    
I didn't know for sure. But my guess was formulated from two different factors: 1) Most of the time wget isn't used on Windows. 2) OP's other questions are about GNU/Linux. So that is why I assumed he was talking about GNU/Linux. –  0xAether Nov 21 '12 at 21:48
    
Hmm, I guess that's fine although I wish people would specify their operating environment and other relevant details instead of making people guess and possibly wasting their time. –  Karan Nov 21 '12 at 21:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.