LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-16-2005, 12:12 AM   #1
andi_kan
LQ Newbie
 
Registered: Aug 2005
Distribution: Mandrake Linux 10
Posts: 2

Rep: Reputation: 0
Question How do I execute a .bin file?


Okay, this is a fairly simple question but one which I am stumped at. Just as DOS/Windows recognises .exe files as executables, how do I run .bin files under my Linux (Mandrake 10.1)?
 
Old 11-16-2005, 12:45 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,374

Rep: Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383
If it's truly an executable eg try
file <yourfile.bin>
then
chmod u+x <yourfile.bin>
./<yourfile.bin>
 
Old 11-16-2005, 01:35 AM   #3
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
or
Code:
sh <filename>
without changing the file permissions
 
Old 11-16-2005, 08:15 AM   #4
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 420

Rep: Reputation: 90
Quote:
Originally posted by perfect_circle
or
Code:
sh <filename>
without changing the file permissions
this will work if it is a shell script (or other script that bash will understand)
if it is binary then it will not work.
It will say "cannot execute binary file"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/bin/tar: cannot execute binary file dhammika Linux - General 8 11-08-2005 04:17 PM
openoffice won't start. cannot execute bin. y? dark_prancer Linux - Software 3 10-15-2005 06:55 AM
Who can tell me why I am unable to execute bin file under RHEL AS 4? memorinex2005 Red Hat 7 03-10-2005 08:10 AM
Execute .bin fiies nodnarb Linux - Software 3 07-19-2004 05:27 AM
bash: /bin/cat: cannot execute binary file inTUXicated Linux - General 9 08-06-2003 07:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration