Results 1 to 6 of 6
I'm just curious - how exactly does my system run binaries? Is there some program that does this?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-26-2008 #1Just Joined!
- Join Date
- Mar 2008
- Location
- At my computer
- Posts
- 39
What runs binaries?
I'm just curious - how exactly does my system run binaries? Is there some program that does this?
- 05-26-2008 #2Just Joined!
- Join Date
- Mar 2008
- Location
- At my computer
- Posts
- 39
Then why do the binaries in /usr/share/ not have any file extension at all?
- 05-26-2008 #3Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
asymptote was partially correct in what he said but missed out that a binary file isn't just one with a .bin extension, it is any compiled program, be it executable or library. File extensions don't mean much in Linux or the Unix world in general. They are not required as all files have a header that explains what it is.
Binaries are executed by the operating system directly. I suspect you are asking because you are unsure how to execute one outside of the usual locations? You need to grant a file execution permissions explicitly using something like chmod +x <filename> or using permission codesto grant permissions to all. Once that is done either put the file within your path (somewhere like /usr/bin/ - you can look at your path by running echo $PATH) or to execute it in place you can either specify the full path to the file or cd to it and call it from within that directory. The latter is the better of the two.Code:chmod +755
Code:/home/username/file cd /home/username/ ./file
- 05-27-2008 #4Just Joined!
- Join Date
- Mar 2008
- Location
- At my computer
- Posts
- 39
is there any way to add a directory to my $PATH?
- 05-27-2008 #5Just Joined!
- Join Date
- Mar 2008
- Location
- At my computer
- Posts
- 39
So you mean that the binaries are executed by the GNU/Linux kernel?Binaries are executed by the operating system directly
- 05-31-2008 #6Linux Engineer
- Join Date
- Feb 2005
- Posts
- 1,044


Reply With Quote

