Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I had put my computer on hibernate mode coz my internet connection had stopped while download was taking place.Now the internet is working.How do i check whether it is downloading?Or do i have to do something to resume the download process?

share|improve this question

As you initiated your download from console, you know the command you executed for it. Assuming it is something starting with wget, you could check using

ps aux|grep wget|grep -v grep

This utilises the ps tool to show the list of running processes for all users in long form (see man ps for details), pipes the output to grep which filters it and leaves only lines containing "wget", and finally pipes it to grep again to filter itself. Now you should see your download process -- or, otherwise, know you've got to start it again.

On the other hand you should see the running process in the terminal window where you executed it -- unless, of course, you "backgrounded" it using the ampersand at the end (e.g. "wget [url] &"). In this case, you can go to the exact terminal window where you started it, and type fg to bring it back to foreground.

Third place to look for is where your downloaded files go to. If the download is still running, the files should change.

share|improve this answer
@lzzy The command i entered was $repo sync.Right now my terminal is open and i can see the last download status which i saw before hibernating i.e. "Receiving Objects: 76%(3297/4333),155.27 Mib |16kib/sec.Can u please tell me what to do now to check downloading? – Nikki Jul 5 '12 at 13:35
If the sync does not continue, it is probably "hung". I don't know what $repo expands to. But you can use above description here, too, replacing "wget" with e.g. "sync". This way you find the PID of the process, and can terminate it (you can try to kick it softly first: kill -HUP 123, if it continues you're fine. If not, kill 123 should terminate it. If not, kill -KILL 123 should pull the big gun -- alsways assuming 123 being the PID of your process. Then, simply start the sync again -- it should continue where it stopped before. – Izzy Jul 5 '12 at 13:53
This is what i get with the command: ps aux|grep sync|grep -v grep :-root 14 0.0 0.0 0 0 ? S 13:01 0:00 [async/mgr] root 17 0.0 0.0 0 0 ? S 13:01 0:00 [sync_supers] nivedita 1451 0.0 1.0 55364 10508 pts/0 Sl+ 13:03 0:10 python -E /home/nivedita/Proj/.repo/repo/ --repo-dir=/home/nivedita/Proj/.repo --wrapper-version=1.17 --wrapper-path=/home/nivedita/bin/repo -- sync #--calling-python-from-/bin/sh-- – Nikki Jul 5 '12 at 14:03
what should i do now.I dont want to teminate the download process.I want to resume it from the point where it had stopped.can u please help? – Nikki Jul 5 '12 at 14:05
and with the command : ps -A | grep sync i get 14 ? 00:00:00 async/mgr 17 ? 00:00:00 sync_supers – Nikki Jul 5 '12 at 14:08

Your Answer


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.