I was messing around in Terminal (bad idea, I know, but I'm usually pretty good with it) and now it does what the title says. I know about pressing Control-C to stop it from running, but how do I just stop it running the command without pressing Ctrl-C?

  • Welcome to Ask Ubuntu! Did you apply any changes to your .bashrc, .bash_profile or .profile files? Are you able to log in to a virtual terminal (Ctrl+Alt+F1)? (go back with Ctrl+Alt+F7).
    – gertvdijk
    Jan 16, 2013 at 23:10
  • No, I don't think I did. (thanks for such a quick reply :) )
    – Rain
    Jan 16, 2013 at 23:11
  • 1
    Then please explain "messing around in Terminal". Also, can you install another terminal application and see if that works? (xterm, Konsole, etc.)
    – gertvdijk
    Jan 16, 2013 at 23:13
  • just checked with virtual terminal, same thing. same with xterm, too. And I was using this guide to mount an Android MTP device, modified for a Kindle Fire. omgubuntu.co.uk/2011/12/…
    – Rain
    Jan 16, 2013 at 23:16

1 Answer 1


My guess is that you might have copied and pasted these lines from the guide as-is:

echo “alias android-connect=\”mtpfs -o allow_other /media/GalaxyNexus\”" >> ~/.bashrc

echo “alias android-disconnect=\”fusermount -u /media/GalaxyNexus\”" >> ~/.bashrc

With those special speech marks (also known as smart quotes) having a different meaning to the terminal than regular speech marks, the commands are radically altered from the original intent.

I suggest you check the end of ~/.bashrc for those suspect alias lines, remove them if they are there, and reopen the terminal.

  • Woohoo! Thanks so much, this fixed it! Man, five years of Ubuntu and I couldn't figure that out, time to brush up.
    – Rain
    Jan 16, 2013 at 23:51
  • Important lesson for @Rain: Don't just run random commands from tutorials! And I was right in my first comment, but I must have missed this part of the tutorial. So, good find by IlluminAce here! :)
    – gertvdijk
    Jan 17, 2013 at 1:38

You must log in to answer this question.

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