chmod to execute a bin file?

Discussion in 'Linux & BSD' started by Heeter, Feb 4, 2009.

  1. Heeter

    Heeter Overclocked Like A Mother

    Messages:
    2,732
    Hi all,

    I want to run an installer bin file as executable. Is it like this?

    Code:
    # chmod +x filetoinstall.bin
    #./filetoinstall.bin
    
    This is for an Ubuntu Server.


    Thanks

    Heeter
     
  2. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
    chmod 0700 <file>
    ./<file>

    easy :)
     
  3. Heeter

    Heeter Overclocked Like A Mother

    Messages:
    2,732
    Thanks LofLA,

    As usual, your a great help. Gonna go try it out.

    Heeter