I want to launch Intellij IDEA IDE via
sudo because IDE needs to manupulate files from
idea.sh is placed at
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
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?