6
  1. I install (using the terminal setup command) Visual Studio Code. I can run it (by clicking on the icon on the 'all programs') but I can't find the installation path of it.

I want to run it using sudo and I need to navigate to the installation path to use the terminal and call sudo visualStudioCode and I can't find it. (Try to use the 'find', but I can't find it.)

  1. How can I create a shortcut of this sudo visualStudioCode on the Ubuntu desktop?
wjandrea
  • 14,504
Yanshof
  • 321
  • 3
  • 6
  • 16

2 Answers2

17

I tried

which code

, it returned /usr/bin/code

and to run, just typed

code

and it opened VS Code. hope this helps

0

The binary for anything that you install using apt-get dpkg is usually either in /bin or /usr/bin directories from where you can run the program. You can also try to use the which command to locate pathnames of files which would be executed. So in your case, on a terminal, type:

which visualStudioCode
wjandrea
  • 14,504