Install and run IntelliJ in WSL — Ubuntu

Rahul Kumar
Mar 13, 2024

--

  1. Download IntelliJ for Linux — link

2. Extract the tarball to a directory that supports file execution. For example, to extract it to the recommended /opt directory.

  • Run the following command for IntelliJ IDEA Ultimate:
sudo tar -xzf ideaIU-*.tar.gz -C /opt
  • For the IntelliJ IDEA Community, run:
sudo tar -xzf ideaIC-*.tar.gz -C /opt

Now, you can run the application by running the idea.sh script which will be present in at /opt/idea-IC-233.14808.21/bin/

sh /opt/idea-IC-233.14808.21/bin/idea.sh

Or, we can add an alias in the .bashrc file to avoid running such a long command.

alias intellij="sh /opt/idea-IC-233.14808.21/bin/idea.sh"

Note: Don’t forget to run source .bashrc

Reference: https://www.jetbrains.com/help/idea/installation-guide.html

--

--