LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2004, 05:31 PM   #1
SyM
LQ Newbie
 
Registered: Jun 2003
Posts: 11

Rep: Reputation: 0
Programs how to orgranisize


Hello,

Well i am back to linux again and i got some questions. I am wondering how the Linux system works with programs. For example with Windows you will install most programs in c:\Program Files\ but how does this work in Linux ? I have no clue to organize my Linux/hda what ever. What is a standard path were you install your programs like Amsn etc, and where do you leave your mp3 stuff.

Could some maybe explain this to me.

Thnx in advance !

/me signs out
 
Old 06-11-2004, 05:48 PM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
Depends on the installer. There are a number of places programs can be installed to...

/bin
/sbin
/usr/bin
/usr/sbin
/usr/local/bin
/usr/local/sbin
/usr/local/program_name
/opt/program_name

As for your files, they go in your home directory... /home/user_name . If you have files you want to share betwixt users, I normally make a /home/shared directory.
 
Old 06-11-2004, 05:59 PM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I think precompiled packages go wherever they want to. When you compile, you have more control. But, in essence, Windows groups files by programs (with plenty of other random scattered crap in WINDOWS\System32 and Documents and Settings\WhoozitsData or wherever (I forget). Linux stores files according to function. Some things go into /opt akin to 'Program Files' but mostly, as ranger-nemo says, the executables go in */bin - the configs go in */etc and ~, the docs in */doc, and so on.

So it's more on which filesystem - standard is to leave /bin and /sbin to the system, as well as /usr/(s)bin and so on. Mostly you'd want to install with a prefix of /usr/local which means most stuff gets distributed under that directory tree. But you can install them to somewhere in $HOME such as ~/bin or wherever you want. (Most binary packages install the executables in /usr/bin, though.)

The cool thing is that /usr/local can be on its on partition (safe if you need to reformat a piece of the disk) and Linux distros don't touch it as a rule.

And, yeah, your personal files should go under /home/your_user_name. Even there, /home used to be under /usr, I think, and I've had it under /usr/local/home before. You can do whatever you want but the path of least resistance and least complications is to go with defaults - my junk in ~; programs with '--prefix=/usr/local'. The *nix fs is actually pretty cool and will make sense after awhile if it doesn't now.
 
Old 06-11-2004, 05:59 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Essential reading for windows-refugees :}


http://www.tldp.org/LDP/Linux-Filesy...tml/index.html



Cheers,
Tink
 
Old 06-12-2004, 05:04 AM   #5
SyM
LQ Newbie
 
Registered: Jun 2003
Posts: 11

Original Poster
Rep: Reputation: 0
Fella`s

Thnx getting more a view of it.

You will hear from me sometimes again

Big thnx


Greetzz SyM
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Are these programs - or equivalent programs - available for Linux? voly Linux - Software 12 07-29-2005 02:44 AM
my table with programs when i press in button (left down corner) do no show programs sagi7ario Mandriva 1 03-12-2004 12:02 PM
unable to add programs from add/remove programs dav7500 Linux - Software 2 02-26-2004 07:25 PM
How to get newly installed programs in programs list Brosky Linux - Software 5 02-06-2004 03:45 PM
What are some 'must have' programs? SuSE_Surfer Linux - General 11 10-24-2003 05:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration