Thursday, February 19, 2009

Open a bin file in linux

let's imagine that the file in question is called pleaseletthiswork.bin and that it is stored in the home folder.

Open a text window. This will leave you in your home folder (do a pwd to prove it to yourself). Type ./pleaseletthiswork.bin and then press enter.

chmod 700 pleaseletthiswork.bin
sudo ./pleaseletthiswork.bin


The 'magic' bit is the "./" , which tells linux that the file to be executed lives in the same folder as you are. Unlike windows and msdos, Linux does not automatically include the folder that you're in to the list of places to look. This means that you have to tell it, with the "./" bit.

No comments: