What is binary file ?

A binary file is a file whose content is in a binary format consisting of a series of sequential bytes, each of which is eight bits in length. It doesn’t contain text or human-readable characters as part of its contents. 
It contains binary data, which are usually machine-readable sequences of bytes. 
It includes a wide range of file types, including executables, libraries, graphics, databases, archives and many others.

On Linux systems, the default directory for binaries or packages is /usr/bin, where most system-specific binaries reside. Also, /user/local/bin is for non-system binaries, i.e. locally compiled or managed packages.

Steps to execute a bin file in Linux

  • Mark the file as executable
$ chmod +x file_name.bin
  • Now execute the file using the command :
$ ./file_name.bin

Leave a Comment

Your email address will not be published. Required fields are marked *