PDA

View Full Version : [xubuntu] Where are the programs?



Troooppo stefano
December 15th, 2012, 02:59 PM
Hello.

In xubuntu, in which folder will i find all the applications? In Windows they were in Programs...

And wich extension is equivalent to Windows' .exe ?

Thank you!

ibjsb4
December 15th, 2012, 03:00 PM
Look in /usr/share/applications

JRV
December 15th, 2012, 03:25 PM
/usr/share/applications holds the launchers for programs, not the actual programs.
The launchers are .desktop files.
In linux a program does not need a file extension.
Use the "which" command to find the location of a program.


which bash

returns "/bin/bash"


which firefox

returns "/usr/bin/firefox"

Cheesemill
December 15th, 2012, 03:37 PM
In xubuntu, in which folder will i find all the applications? In Windows they were in Programs...
Linux isn't the same as Windows.
Instead of programs living in a single directory the files that make up an applications are spread over the hard drive depending on their purpose. Program binaries are usually in /usr/bin, program icons are in /usr/share/icons, documentation is in /usr/share/docs etc...

For some background on this concept take a read of these:

http://www.thegeekstuff.com/2010/09/...tem-structure/ (http://www.thegeekstuff.com/2010/09/linux-file-system-structure/)
http://www.tuxradar.com/content/take...ilesystem-tour (http://www.tuxradar.com/content/take-linux-filesystem-tour)
http://www.pathname.com/fhs/pub/fhs-2.3.html


And wich extension is equivalent to Windows' .exe ?
There isn't one.
Instead of using a files extension to find out what type of file it is Linux looks at the actual information inside the file. For example if you look at what I've done below, the system still knows that the 'Desktop' file in my example is an image, even though I've removed the extension.

rob@arch:~/Pictures$ ls D*
-rw-r--r-- 1 rob users 1.1M Dec 8 19:17 Desktop.jpg
rob@arch:~/Pictures$ file Desktop.jpg
Desktop.jpg: JPEG image data, JFIF standard 1.01
rob@arch:~/Pictures$ mv Desktop.jpg Desktop
rob@arch:~/Pictures$ ls D*
-rw-r--r-- 1 rob users 1.1M Dec 8 19:17 Desktop
rob@arch:~/Pictures$ file Desktop
Desktop: JPEG image data, JFIF standard 1.01
rob@arch:~/Pictures$

ibjsb4
December 15th, 2012, 03:40 PM
In which folder will i find all the applications

/usr/share/applications

Cheesemill
December 15th, 2012, 03:42 PM
/usr/share/applications
No.

They are just the application launchers, not the actual applications.

Frogs Hair
December 15th, 2012, 03:42 PM
Unlike Windows the is no program and features or C program files equivalent. The following command will generate a list in the form of a text document in your home folder.
sudo dpkg --get-selections > installed-software

ibjsb4
December 15th, 2012, 03:47 PM
No.

They are just the application launchers, not the actual applications.

I never said they were not. You WILL find all GUI app's there.

Impavidus
December 15th, 2012, 04:33 PM
The programs themselves are typically located in /usr/bin, program data in /usr/share, but exceptions are common.

File name extensions have no meaning to linux (but they do to some programs running on linux). Script executables often (but not always) have an extension indicating the scripting language (.sh, .py, .pl), binary executables usually don't have an extension. Extensions on linux are mostly a convention to aid users, not a necessity.

MG&TL
December 15th, 2012, 04:56 PM
I never said they were not. You WILL find all GUI app's there.

All GUI apps with a launcher. But yes, fine, whatever. ;)

Rockstarever
December 15th, 2012, 06:29 PM
ok if u need to see where are the files that run the program try open the explorer. and press ctrl+h this will show all the hidden files and many of them contains the related files to the programs. hope this helps.

-----------------
Ubuntu rocks.

monkeybrain2012
December 15th, 2012, 08:09 PM
ok if u need to see where are the files that run the program try open the explorer. and press ctrl+h this will show all the hidden files and many of them contains the related files to the programs. hope this helps.

-----------------
Ubuntu rocks.
No, those are configuration files for the programs' settings. The actual executables are actually in /usr/bin as pointed out before (or /usr/local/bin or sometimes /opt/programname depending on how the program was installed)

@OP,
In Linux files are grouped by functionalities and many programs may share the same libraries. Once you get used to it it is actually more logical and efficient than the Windows way (one reason why Linux is so lean comparing to windows. Since many programs share the same system libraries they don't have to be duplicated for each program like in Windows)

Merrattic
December 15th, 2012, 08:18 PM
No-one has asked why or what you need to know for?

The Applications Menu (default top panel, top left, Xubuntu icon)will provide a link to all gui installed apps, otherwise dpkg -l on the cli will show all apps installed