Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There are multiple ways to restart or reboot IntelliJ on Linux using the command line. Here are a few methods:

Method 1: Using kill command

  1. Open the terminal on your Linux machine.
  2. Run the command "ps aux | grep IntelliJ" to list all running IntelliJ processes.
  3. Note down the process ID (PID) of the IntelliJ process you want to restart.
  4. Run the command "kill -9 PID" to kill the process forcefully.
  5. Now, launch IntelliJ again using the standard method. It will start with a clean slate.

Method 2: Using the built-in restart command

  1. Open IntelliJ and go to Help > Find Action (or press Ctrl-Shift-A on your keyboard).
  2. In the search bar, type "Restart".
  3. Select "Restart IntelliJ IDEA" from the suggested options.
  4. IntelliJ will close and then reopen with a fresh state.

Method 3: Using the command line options

  1. Open the terminal on your Linux machine.
  2. Navigate to the directory where IntelliJ is installed using "cd" command (e.g., "cd /opt/idea-IC-211.7442.40/bin/").
  3. Run the command "./idea.sh -r" to restart IntelliJ.
  4. Alternatively, you can run the command "./idea.sh -h" to display all available command-line options and choose the appropriate one.

Note: You may need to replace the IntelliJ version number and installation directory in the above commands with the one on your system.