LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Where are the programs? Where do things get installed? (https://www.linuxquestions.org/questions/linux-newbie-8/where-are-the-programs-where-do-things-get-installed-4175493067/)

AngryAngry 01-29-2014 10:27 PM

Where are the programs? Where do things get installed?
 
I'm unsure where to look for programs.
I found a folder for gcc, but it did not have gcc.exe

I installed Allegro programming library but it did not say where it installed the program.
I'm also unable to find where menu programs in xfce link to (target program.exe)
I don't know where to look for this menu so I can manually open up the link file to find out.

schneidz 01-29-2014 10:33 PM

try typing
Code:

which gcc
into a terminal and seeing what path is returned.


.exe files usually means that its a windows file and they usually dont work in linux.

chrism01 01-30-2014 12:17 AM

Note also that an extension of '.exe' is an MSWin thing.
Executables don't have an extension in *nix.
If you want to check the file type, try file cmd thus
Code:

file somefilename

TobiSGD 01-30-2014 12:23 AM

In Linux/UNIX systems programs don't get installed the way they do in Windows. The binaries are usually installed int /usr/bin, libraries into /usr/lib, and so on. More info on that can be found here: http://www.pathname.com/fhs/

AngryAngry 01-30-2014 01:26 AM

Thanks for that 'which [program name]' thing

So if I create a program with gcc I was told to make it .exe, but what should the extension be if it is a linux program?

pan64 01-30-2014 01:43 AM

extension is not important for the unix. In general it tries to identify the type of the file by its content, not by the extension. (that is the command file - see man page of it).
Extension is used to make the file type visible for yourself, for humans, for the users only.
So you can make your app as somename.exe, it will not be a problem at all, just it is not the usual way (in linux).
Executables usually have no extension (on linux).

schneidz 01-30-2014 08:32 AM

i usually put an .x at the end (but whatever floats your boat).

after using windows throughout my childhood seeing a file without a '.suf[fix]' seems naked. but its totally cosmetic. unlike windows files dont have to have a certain name to be functional -- you can essentially rename buju-banton.mp3 to financial-report.pdf and using the file command it will look at the first few bytes of the file and realize it is a music file.

rtmistler 01-30-2014 02:31 PM

Quote:

Originally Posted by AngryAngry (Post 5107891)
Thanks for that 'which [program name]' thing

So if I create a program with gcc I was told to make it .exe, but what should the extension be if it is a linux program?

Another concept about that is that you were being told to make that program "executable" as in permissions.

Code:

ls -l
will show you the permissions and if it doesn't have 'x' for owner, then you can't execute it. I think mostly when you compile a file using gcc, it uses your umask to generate the permissions for your new file.


All times are GMT -5. The time now is 03:29 AM.