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.


1 Answer 1


To see every command that runs during your shell's startup configuration, 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!)

Then in a terminal, run:

$ bash --login

and see which command takes the most time.

  • I may be super stupid but I cannot figure out how this works. I added those lines but nothing changed at all. Nov 16, 2016 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.) Nov 17, 2016 at 1:31
  • Thanks. Turns out that my terminal was suppressing the output. Nov 17, 2016 at 6:49
  • 3
    Thanks SDKMAN! for slowing down my work.
    – mjaggard
    Feb 22, 2017 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, 2017 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.