How to stop running download process by CURL?

1

I forgot to use > filename after curl operation.

linux console is giving contiguously garbage data(hopefully downloading and displaying the content on console).

How can we stop this process (ctrl-c s not working)?

getting continous output like this:

ÎþH2ݾà#qsý¼°-sáGâvâzì#éì¼ÄúÁN\t1à }$ZXGcô°

executed following

curl http://example.com/file.tgz

Instead of

curl http://example.com/file.tgz > mongo.tgz

P K

Posted 2012-03-19T15:48:21.120

Reputation: 1 753

Answers

4

Just press Ctrl-C to abort the currently running process – in that case, curl spitting out data to stdout rather than a file.

If your terminal is still showing messed up symbols, clear it with Ctrl-L or entering clear.

slhck

Posted 2012-03-19T15:48:21.120

Reputation: 182 472

i tried ctrl-c but i am getting console output – P K – 2012-03-19T15:53:13.127

Try pressing Ctrl-L to clear the screen. – slhck – 2012-03-19T15:54:52.793

Ctrl - c killed the process, but it somhowe changed the locale to Chinese !??? Now I know what home looks like in Mandarin :) – RickyA – 2014-01-23T11:32:01.627