18

Opening my terminal (ctrl+alt+t), it takes a long time to load my prompt. I had read here regarding the same issue but none of their solutions helped me. On opening the terminal, it takes around 4-5 seconds to load and just before the prompt appears, I see a really quick flash of a white splash-screen sort of program popping up. I don't think that this has happened after installing any particular package/software. Any suggestions?

Thanks in advance.

24

Put

set -x

at the top and

set +x

at the bottom of both files ~/.profile and ~/.bashrc.

(Keep your text editor open so you can undo these changes easily!)

These commands will show you what is running when your shell starts, so you may be able to determine which command is slow.

  • I may be super stupid but I cannot figure out how this works. I added those lines but nothing changed at all. – UpmostScarab Nov 16 '16 at 20:57
  • @UpmostScarab After adding the lines, type bash --login in a terminal, and see what happens. (Press Ctrl-D afterwards to exit the shell you just started.) – joeytwiddle Nov 17 '16 at 1:31
  • Thanks. Turns out that my terminal was suppressing the output. – UpmostScarab Nov 17 '16 at 6:49
  • 2
    Thanks SDKMAN! for slowing down my work. – mjaggard Feb 22 '17 at 8:36
  • 2
    same for me... was SDKMAN (sdkman.io)... timeout connection was causing the shell to take over 10s to load T_T – daveoncode Sep 22 '17 at 9:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.