1

I want to launch Intellij IDEA IDE via sudo idea.sh. sudo because IDE needs to manupulate files from /etc/share. idea.sh is placed at /home/<username>/<path>/bin/idea.sh.

I tried to add this path to PATH environment variable by adding export PATH="$PATH":<path-to-idea>/bin to /etc/profile or by changing string in /etc/environment from PATH="blahblah" to PATH="<path-to-idea>/bin:blahblah". In both cases after sudo echo $PATH command I got string with my path to IDEA added.

But when I tried to execute idea.sh via sudo idea.sh I got sudo: idea.sh: command not found. What am I doing wrong?

kassie
  • 111
  • 2

1 Answers1

2

Just to run:

sudo ./idea.sh

in background:

sudo ./idea.sh &

Also visit similar answer.

Anton Dozortsev
  • 1,132
  • 10
  • 21