how to find the installing path of some install application?

27,591

I tried

which code

, it returned /usr/bin/code

and to run, just typed

code

and it opened VS Code. hope this helps

Share:
27,591

Related videos on Youtube

Yanshof
Author by

Yanshof

Updated on September 18, 2022

Comments

  • Yanshof
    Yanshof over 1 year
    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
      wjandrea over 6 years
      Which exact command did you use to install it? Do you know the name of the executable?
    • Yanshof
      Yanshof over 6 years
      i not sure because it was 2-3 month ago - but maybe this sudo dpkg -i <file>.deb sudo apt-get install -f # Install dependencies
    • Admin
      Admin over 6 years
      It should be vscode and it doesn't require sudo.
    • Yanshof
      Yanshof over 6 years
      but there is some python script that i want to debug and its need to have sudo to debug it
    • Yanshof
      Yanshof over 6 years
      and call from the terminal 'sudo vscode ' does not find the vscode
    • guiverc
      guiverc over 6 years
      quick hint(s): to see what commands you entered, look at history (which can be made to record date & time too). also if you know the command that runs a program/app, use the whereis sudo to find out where the command sudo is stored by example...
    • Ravexina
      Ravexina over 6 years
      @Yanshof run sudo updatedb then locate -i visual | grep -i -e studio -e code let me know what is the out put. also let me know about the output of locate -i visual | grep -i desktop.
  • Yanshof
    Yanshof over 6 years
    which visualStudioCode ... do nothing :( and on the /bin and /usr/bin its not exist :(:(
  • Admin
    Admin over 6 years
    I think then as per the comments above from wjandrea you would need to know the name of the executable. You could try searching using a regular expression with find to search for an approximate word or phrase.
  • Ashif
    Ashif over 4 years
    thank you so much @joy-grewal
  • cheekybanana
    cheekybanana about 4 years
    Who the hell names their code editor's binary as "code"? I swear to f-cking god, I've been trying to find an executable starting with V forever. The audacity of calling your software "code"... This is like making a desktop manager application and calling the binaries "computer". Yes, I'm f-cking mad. (Thanks by the way)