Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
@Karan just going to point out that no one ever assumes wget even exists on windows. It is typically used in bourne shell or other unix-y shells. I compiled wget for windows, but I almost always run it within MSYS bash or a cygwin shell. – Wyatt8740 Feb 24 at 15:32

Try this: (assumes *nix)

echo "check_certificate = off" >> ~/.wgetrc

Then ever after, wget will act like you specified the --no-check-certificate switch. More info at or

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .