怎么在linux上运行.bin文件

来源:互联网 发布:詹姆斯mvp赛季数据 编辑:程序博客网 时间:2024/04/27 03:26

//转载自:http://www.cyberciti.biz/faq/howto-unix-command-run-execute-bin-files-in-linux/

Q. I have downloaded a file from internet that ends with .bin extension. Documentation says just run bin file. What command I need to type in order to run bin files in Linux.

A. .bin files are Linux self extracting binary files. For example Java or Flash are two examples of these types of file. Just type following two commands to run .bin files:


Run .bin file in Linux / UNIX

Change the permission of the file you downloaded to be executable. Type the following command:
$ chmod +x file.bin

Start the installation process or run .bin file.Type the following command:
./file

For example if .bin file name is application.bin. Type:
$ chmod +x application.bin
$ ./application.bin

Another example for Java Linux self extracting binary file:
# chmod +x jre-1_5_0-linux-i586.bin
# ./jre-1_5_0-linux-i586.bin


原创粉丝点击