我如何执行shell文件?

时间:2021-10-29 13:55:09

I'm trying to download Whatsapp on my laptop. I am using Ubuntu desktop software. I've installed Android Emulator from http://dl.google.com/android/android-sdk_r16-linux.tgz I unzipped the file, opened the folder, Android-sdk-linux, opened Tools and now I'm supposed to execute the file Android, and I'm not sure how to do that. Can anyone give me any help?

我正在尝试在笔记本电脑上下载Whatsapp。我正在使用Ubuntu桌面软件。我从http://dl.google.com/android/android-sdk_r16-linux.tgz安装了Android Emulator我解压缩了文件,打开了文件夹,Android-sdk-linux,打开工具,现在我应该执行Android文件,我不知道该怎么做。谁能给我任何帮助?

Ok, so this is what I thought I was supposed to do: shell@shell:~$ cd Desktop shell@shell:~/Desktop$ ./android.sh bash: ./android.sh: No such file or directory

好的,所以这就是我认为应该做的事:shell @ shell:〜$ cd桌面shell @ shell:〜/ Desktop $ ./android.sh bash:./ android.sh:没有这样的文件或目录

but then that happens...

但那会发生......

3 个解决方案

#1


0  

Make the file executable first with

首先使文件可执行

chmod +x filename.sh

Then start the script with

然后用脚本启动脚本

./filename.sh

Or

/full/path/to/filename.sh

#2


0  

sh filename.sh

OR

bash filename.sh

#3


0  

Use the following command to install the WhatsApp on Ubuntu:

使用以下命令在Ubuntu上安装WhatsApp:

wget https://www.thefanclub.co.za/sites/all/modules/pubdlcnt/pubdlcnt.php?file=https://www.thefanclub.co.za/sites/default/files/public/downloads/whatsapp-webapp_1.0_all.deb&nid=200 && sudo dpkg -i whatsapp-webapp_1.0_all.deb

Then enter the password and open WhatsApp using the application key.

然后输入密码并使用应用程序密钥打开WhatsApp。

#1


0  

Make the file executable first with

首先使文件可执行

chmod +x filename.sh

Then start the script with

然后用脚本启动脚本

./filename.sh

Or

/full/path/to/filename.sh

#2


0  

sh filename.sh

OR

bash filename.sh

#3


0  

Use the following command to install the WhatsApp on Ubuntu:

使用以下命令在Ubuntu上安装WhatsApp:

wget https://www.thefanclub.co.za/sites/all/modules/pubdlcnt/pubdlcnt.php?file=https://www.thefanclub.co.za/sites/default/files/public/downloads/whatsapp-webapp_1.0_all.deb&nid=200 && sudo dpkg -i whatsapp-webapp_1.0_all.deb

Then enter the password and open WhatsApp using the application key.

然后输入密码并使用应用程序密钥打开WhatsApp。