PDA

View Full Version : [SOLVED] What directory do people usually put programs in?



Cooter2543
November 25th, 2009, 05:51 AM
Where do people usually store their programs in? Windows has the Program Files folder, but what is the equivalent in Ubuntu?

Second, is there an option on the 'mv' command to move a directory and all of it's contents? Or will mv move the whole lot?

-Zeus-
November 25th, 2009, 06:26 AM
Where do people usually store their programs in? Windows has the Program Files folder, but what is the equivalent in Ubuntu?

Second, is there an option on the 'mv' command to move a directory and all of it's contents? Or will mv move the whole lot?

First off, welcome. :)

Question 1: different folders, but "you" don't really decide, the system takes care of that. Often they will be in /bin, /usr/bin, etc. If you're curious about a specific program, type the command "which programname" (eg, "which mv"), and it should say something like, "mv is /bin/mv"

2, mv will by default move directory contents

Have fun :)

Sealbhach
November 25th, 2009, 06:35 AM
But when you install a program it often install library files as well, these go into usr/lib

.

slakkie
November 25th, 2009, 06:40 AM
First off, welcome. :)

Question 1: different folders, but "you" don't really decide, the system takes care of that. Often they will be in /bin, /usr/bin, etc. If you're curious about a specific program, type the command "which programname" (eg, "which mv"), and it should say something like, "mv is /bin/mv"


This is true for applications provided by .deb packages, but when you compile from source you can definitely decide where to install them:

./configure --prefix=/opt for example to install the application in /opt/.

Cooter2543
November 25th, 2009, 06:45 AM
OK, thanks guys.

-Zeus-
November 25th, 2009, 06:45 AM
True - I was thinking on a new-user level.

louieb
November 25th, 2009, 06:57 AM
For the most part Ubuntu follows the Filesystem Hierarchy Standard (http://www.pathname.com/fhs/pub/fhs-2.3.html)
The short of it
Programs essential to the system are located in /bin or /sbin.
Programs installed and integrated through the package manager are located /usr/bin or /usr/sbin

Anything else: Example - you get Firefox from the Mozilla site. It should install itself in /opt.

liquider
November 25th, 2009, 07:34 AM
And any windows programs via wine installed to default path are found in

~/.wine/drive_c/Program Files/...