- 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.)
- How can I create a shortcut of this
sudo visualStudioCodeon the Ubuntu desktop?
2 Answers
I tried
which code, it returned /usr/bin/code
and to run, just typed
codeand it opened VS Code. hope this helps
2The 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 2