I'm trying to switch from VSCode to IntelliJ-based IDEs and I wonder why some commands e.g. sudo, apt, node, don't get recognized by the integrated terminal. (I'm using Ubuntu as my OS and Bash in IntelliJ). The terminal just prints out:
bash: sudo: command not found
The terminal in VSCode just worked out of the box.