How to launch Android Studio using Terminal

I've just installed Android Studio. After installing, I forgot to add in the launcher. I restarted the system.

Now I want to launch Android Studio from Terminal. I've tried everything but didn't work.

7 Answers

cd into the directory where you unzipped the android studio installer zip file. The folder is named android-studio. It could be in your ~/Downloads folder if you downloaded it from the internet. Now cd into the bin folder and run the studio.sh file

./studio.sh
2

On ubuntu it is /opt/android-studio/bin/studio.sh

You can open terminal by CTRL+ALT+T

just run this command into your terminal

cd /usr/local/android-studio/bin

/usr/local/android-studio/bin$ ./studio.sh

0

If you want to use terminal to start a program then you should be knowing the command to be written in terminal. To know the command in Kubuntu I use the Kmenuedit. In kmenuedit find that program and that program's details there will be a field named command there you will find text to be written in terminal. Another option is to check system monitor program that also has a column named command. So you can check running instances of programs and command.

Go to android studio folder in your system then 1. Press right click of mouse and open terminal 2. wright ./studio.sh and press enter 3. it would open your android emulator in ubuntu

I tried to reduce job by setting an environment variable

echo "export ANDROID=/usr/local/android-studio/bin/studio.sh" >> ~/.bashrc
source .bashrc

Whenever want to open Android Studio just fire command

$ANDROID

I hope this will reduce your work.

Good luck..!

Launching Android Studio using Terminal with SUDO privileges

  1. Open terminal (ctrl + alt + t)
  2. Type sudo su command then enters your password.
  3. Type cd /opt/android-studio/bin
  4. Run Android studio using sh ./studio.sh

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like