To restart your terminal follow these two steps

  1. Close your terminal by clicking on the x sign, in the terminal’s tab Close terminal button

  2. Open a new temrinal by clicking on the + button that appeared Open terminal button