Get help configuring, running and troubleshooting software

Moderator: slax

App folder?

Postby konaexpress » Wed Sep 14, 2011 11:29 am

Where is the application folder or what is it called in Linux? Thanks.
konaexpress
User avatar
Sr. Member
Sr. Member
 
Posts: 441
Joined: Mon Sep 12, 2011 4:35 pm

Re: App folder?

Postby slax » Wed Sep 14, 2011 11:48 am

/usr/bin
/usr/sbin
/usr/local/bin
....
slax
User avatar
Site Admin
Site Admin
 
Posts: 724
Joined: Wed Aug 18, 2010 2:55 pm
Location: ...somewhere out in space...

Re: App folder?

Postby konaexpress » Wed Sep 14, 2011 12:34 pm

Whoowee! Had a hard time making up their minds didn't they? :twisted: :lol:

Thanks!
konaexpress
User avatar
Sr. Member
Sr. Member
 
Posts: 441
Joined: Mon Sep 12, 2011 4:35 pm

Re: App folder?

Postby slax » Wed Sep 14, 2011 1:25 pm

use command
Code: Select all
locate
if you search something specific :D
slax
User avatar
Site Admin
Site Admin
 
Posts: 724
Joined: Wed Aug 18, 2010 2:55 pm
Location: ...somewhere out in space...

Re: App folder?

Postby konaexpress » Wed Sep 14, 2011 1:31 pm

slax wrote:use command
Code: Select all
locate
if you search something specific :D


Is this a terminal command?
konaexpress
User avatar
Sr. Member
Sr. Member
 
Posts: 441
Joined: Mon Sep 12, 2011 4:35 pm

Re: App folder?

Postby Dragynn » Wed Sep 14, 2011 4:15 pm

konaexpress wrote:
slax wrote:use command
Code: Select all
locate
if you search something specific :D


Is this a terminal command?


Yup!
Code: Select all
locate --help
for a list of options for this command
Image
Dragynn
User avatar
Hero Member
Hero Member
 
Posts: 1018
Joined: Sat Oct 23, 2010 4:36 pm
Location: Deep in the heart o' Texas

Re: App folder?

Postby konaexpress » Wed Sep 14, 2011 5:09 pm

Kill me now! OK, I will try it.
konaexpress
User avatar
Sr. Member
Sr. Member
 
Posts: 441
Joined: Mon Sep 12, 2011 4:35 pm

Re: App folder?

Postby ongoto » Wed Sep 14, 2011 5:25 pm

When you have some time to kill, you can also open a file browser and check out /usr/share/applications and find things and see how everything is named Menus are a heck of a lot more fun though, huh?. :)
Image
--Only a penguin could make a nest out of some rocks--
--Twitter--
--An eternal gem ala Joble--
ongoto
User avatar
Hero Member
Hero Member
 
Posts: 962
Joined: Sun Mar 01, 2009 12:53 pm
Location: California, USA

Re: App folder?

Postby Dragynn » Wed Sep 14, 2011 8:01 pm

ongoto wrote:When you have some time to kill, you can also open a file browser and check out /usr/share/applications and find things and see how everything is named Menus are a heck of a lot more fun though, huh?. :)


/usr/share is full of all kinds of fun things to hack on :mrgreen:

Right-click stuff a lot and click "properties", lotsa good stuff there, you can change individual icons, tooltip text and such.

more terminal fun: you can start any application from terminal by just typing the name of the app. :D

Gnome and Nautilus are very drag-n-drop friendly, it's real easy to stay away from the terminal and do everything all GUI style if a user chooses. But take note that to drag files into system folders, you will need to open the destination folder as administrator (right-click and the option is there in context menu).
Image
Dragynn
User avatar
Hero Member
Hero Member
 
Posts: 1018
Joined: Sat Oct 23, 2010 4:36 pm
Location: Deep in the heart o' Texas

Re: App folder?

Postby melodie » Thu Sep 15, 2011 3:47 pm

konaexpress wrote:Kill me now! OK, I will try it.


Hi konaexpress,

Theses are not the way to go when you look for "where is the app located" ? Why ? Because under *nix like there is no such thing as "the folder for the apps".

Under /usr/bin you have the scripts and binaries related to the user's application. Under /bin and /sbin, the ones related to (grossly) the system's binaries and scripts (executables, under Windows, and under Mac, no idea... )

When you install them you get a package : and this package contains all that is related to the program : documentation, information about the date built, source origins, licence, the depends... some informations are useful for the package manager to know what depends need to be installed, and some are meant to let the package manager know where are all the files to uninstall when you decide you don't want the program anymore : this is what you do when you remove the package; You open Synaptic, search for the package (the research button is there fore you), you select the package, right-click : uninstall. All the installed files will be looked for by the package manager (apt-rpm in PCLinuxOS).

About the depends : there are shared libs most often. The windows equivalent of the dll's. Each package with it's information, allow sharing libs with other programs. Therefore the space used in the hard drive is much small that if each package had it's libs brought with him. This is also a reason why it is discouraged to install a program out of the repositories of a given distribution : if one program, installed from third party, does not use the same version of lib than the ones in the distribution you can create a conflict, and you can bring the system to become unstable.

About the console command "locate", you first need to update the database of the files, so you must become root in console and invoke "updatedb".

I don't quite see the point in looking for the different parts of a program with the locate command. Here is a much better command line, that can be used without being root:

rpm -qil gimp // for exemple

will give you so many informations about gimp, you will be very happy to know all about it ! :D
Last edited by melodie on Thu Sep 15, 2011 3:53 pm, edited 1 time in total.
melodie
Hero Member
Hero Member
 
Posts: 582
Joined: Mon Jan 07, 2008 8:10 am
Location: France

Re: App folder?

Postby melodie » Thu Sep 15, 2011 3:50 pm

Dragynn wrote:But take note that to drag files into system folders, you will need to open the destination folder as administrator (right-click and the option is there in context menu).


I would suggest not to do that. Who wants to play with the file system in a way such that it can get broken ? konaexpress just arrived under Linux, and needs not to start bad experiences ! :mrgreen:
melodie
Hero Member
Hero Member
 
Posts: 582
Joined: Mon Jan 07, 2008 8:10 am
Location: France

Re: App folder?

Postby melodie » Thu Sep 15, 2011 4:03 pm

konaexpress wrote:Whoowee! Had a hard time making up their minds didn't they? :twisted: :lol:

Thanks!


One more, you'll understand a little better how it is organized : http://tldp.org/LDP/Linux-Filesystem-Hi ... ctory.html

:)

and one more for the road.. "what is read-write-execute ?" : http://www.zzee.com/solutions/linux-permissions.shtml

He ! all this is very serious ! No fun ! :(

Ok, one for the fun... Linux photo story: Linux in pictures

-- Do you know about Linux ?
-- Linux, what is it ? :shock:

8)
melodie
Hero Member
Hero Member
 
Posts: 582
Joined: Mon Jan 07, 2008 8:10 am
Location: France

Re: App folder?

Postby konaexpress » Thu Sep 15, 2011 4:53 pm

I can see that I am going to have a love/hate relationship with you. :lol: :P

All this started when I was trying to find a program on the hard drive so I could make a shortcut for it on the desktop or in the dock. I had no idea where to tell it to find the program and I still don't! :D

I can see why synaptic is a cool program, it will save my butt.
konaexpress
User avatar
Sr. Member
Sr. Member
 
Posts: 441
Joined: Mon Sep 12, 2011 4:35 pm

Re: App folder?

Postby melodie » Thu Sep 15, 2011 5:31 pm

konaexpress wrote:I can see that I am going to have a love/hate relationship with you. :lol: :P

All this started when I was trying to find a program on the hard drive so I could make a shortcut for it on the desktop or in the dock. I had no idea where to tell it to find the program and I still don't! :D

I can see why synaptic is a cool program, it will save my butt.


Hi kona-express,
When you need to do something, just say what you need to do. If you start thinking about how to do it, you might get into confusion. :)

The most simple for me is using the console. For this time, another method might be nice for you. You open the file manager, as simple user, go to the directory /usr/share/applications : you will find desktop files, that's to say, the files which "code" for the menu entries. You need to copy the one related to the program you want to start from desktop. (copy to your desktop). Right-click, copy, paste... you don't even need to be root. Once done, double-click on the icon, it will launch the program.

Note that in Lxde, or from lxpanel even without full Lxde, there is a right-click menu on the menu entries to do that. It might be very possible that Gnome menu entries allows that too, and Kde as well probably.

In the dock : it depends what dock maybe, each can have it's own gui to setup icons. Lxpanel does provide it, so do Xfce, and Gnome and... AWM, all in fact. :D
Not tint2 panel, but other means are at work there...

Have fun ! :)
melodie
Hero Member
Hero Member
 
Posts: 582
Joined: Mon Jan 07, 2008 8:10 am
Location: France

Re: App folder?

Postby Dragynn » Fri Sep 16, 2011 7:19 am

melodie wrote:
Dragynn wrote:But take note that to drag files into system folders, you will need to open the destination folder as administrator (right-click and the option is there in context menu).


I would suggest not to do that. Who wants to play with the file system in a way such that it can get broken ? konaexpress just arrived under Linux, and needs not to start bad experiences ! :mrgreen:


You say that, and yet you gave another noob detailed instructions on how to do a system hack to hide his partitions on another thread, and now his system is borked to a state of unuseability. :shock:

Just a note: The /usr/share/applications folder is indeed an easy way to grab launchers for the desktop, in addition to using copy/paste though, you can also just grab, drag, and drop it on the desktop. You can also open the main menu and grab a program and utilize drag-n-drop to drag it to either the desktop, or to the panel (another nice piece of functionality that many panels like tint2 and lxpanel do not have).

This is the info i'm trying to get across for new folks, gnome includes a lot of simple drag-n-drop functions that folks coming from windoze and crapintosh are used to, really almost anything you can do on the command line, can be easily done using the GUI and drag-n-drop, and it's a lot less confusing for a lot of people, and something they will remember and understand and put to good use in the future. :D
Image
Dragynn
User avatar
Hero Member
Hero Member
 
Posts: 1018
Joined: Sat Oct 23, 2010 4:36 pm
Location: Deep in the heart o' Texas

Next
Forum Statistics

Who is online

Users browsing this forum: No registered users and 1 guest

Options

Return to PCLinuxOS Gnome Apps & Software

cron