How to interrupt stuck bash tab completion?

Posted by codeape on Server Fault See other posts from Server Fault or by codeape
Published on 2010-05-13T08:22:59Z Indexed on 2010/05/13 8:25 UTC
Read the original article Hit count: 396

Filed under:
|
|

Case:

  • A Windows share mounted using samba over a flaky VPN connection (sometimes very slow, sometimes it drops)
  • When doing tab-completion on filenames, my bash shell can freeze up if the VPN is slow or dropped when I am attempting the tab completion.

Example:

$ cp myfile.zip /mnt/winbox-c/Progr<tab> key pressed here

Is there a bash key I can press to get bash out of its hung state when something like this happens?

© Server Fault or respective owner

Related posts about bash

Related posts about hang