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 injected an sh script ( using ./ inject evil for a joke but now when I need the terminal I have to wait and then lets me do commands. How do I UN-inject the script so I can go on the terminal immediately? Also I'm using Ubuntu 12.04 LTS if that helps.

share|improve this question

From the readme.


If you've astley-overdosed:

./ stop

And also remove the script.

  • As far as I can tell is that you need to remove the script from disc.
  • A reboot will clean the process from memory OR do a ps -ef|grep astley and kill the process-id.
share|improve this answer
I've done that and it doesn't work – daviddomingos2001 Apr 11 '13 at 15:01
I can confirm this worked for me in a VM. – Rinzwind Apr 14 '13 at 15:42

I'm guessing this should only be running in the terminal you're running. Simplest way to fix this would be to boot into a livecd and undo it.Alternately, if booting into a livecd sounds like too much work you'll want to boot into single user mode (so you're root) and do the same thing.

To undo it, you simply need to go into your home directory from the other install, and remove it from your .bashrc, or better yet, work out from bashrc where is now, and delete it (which is safer, since then you can edit bashrc from your own account, which avoids the risk of accidentally changing ownership to someone else)

And the next time you decide to do something this silly, have a backup account (and add it to sudoers) to fix this.

share|improve this answer
I can't find .bashrc and i tried to search for it – daviddomingos2001 Apr 11 '13 at 15:00
it should be under /home/username/.bashrc If you're using a livecd, look at your hard drive, not the livecd's filesystem – Journeyman Geek Apr 11 '13 at 22:18
up vote 0 down vote accepted

Its all right now because I reinstalled Ubuntu. Also,Journeyman Geek I’ve learnt my lesson to make a backup account.

share|improve this answer

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.