Topic Contributors
creator avatar  
mreschke
Matthew Reschke
Site Developer
Created: Feb 11th, 2010
Updated: Nov 27th, 2010
File
Download Selected (zip)
Download Selected (tar.gz)
Edit
Select All
Select None
View
Detail
Detail Preview
Icons
Preview
Show Hidden
Hide Hidden
Full Manager
Reset Defaults
/ 181
icon
Training01.htm
icon
Training01_files
Open In New Tab
Open In New Window
List Archive Contents
Download File
Open
Download Folder (as .zip)
Linux Training Session 01
Post # 181 permalink Topic #181 by mreschke on 2010-02-11 11:36:34 (viewed 1,321 times)

Back to Linux Training

Part one will be held live on Google Wave Thursday 2010-02-17 at 10PM CST

Part One Material[-][- -][++]

  1. Base System
  2. Directory Layout & What/Where everything is
  3. Everything is a file (real or fake file)

Prerequisites[-][- -][++]

  1. About 1 hour or so of time
  2. A ready mind; study, memorize, experiment, retain.
  3. An installed, working Linux OS (you can use Mac OS or BSD too, just use the bash shell, and know some parameters will be different)
  4. Internet connection (duh) with your Linux browser open
  5. Bash shell open and ready to experiment along with me on the wave

Google Wave[-][- -][++]

Extras[-][- -][++]

/usr and /usr/local[-][- -][++]

Nice visual directory layout
http://www.aclab.ca/wiki/images/7/70/Linux_Directory_Structure.png

The /usr/bin and /usr/local/bin can be confusing. Like I said in the google wave, according to proper linux standards, ALL custom user installed applications should go into /usr/local/... but this is a standard that all the linux programs have not followed, almost all programs (besides the base) on your system will be in /usr (/usr/bin, /usr/sbin) not in /usr/local/. This chaotic mess of application development is one reason I like FreeBSD so much. FreeBSD is unix, nearly the same as linux (different kernel), but FreeBSD was engineered by college students, while linux was chaotically "grown" from the community. So FreeBSD enforces every standard possible. On a freeBSD system, absolutely every program will be in /usr/local/ folders.

A great command we have not discussed yet is the 'which' command. Typing 'which' and then the program name, like 'which wget' or 'which firefox' will show you where the program is located, on linux, if it's not a base system file, it will most likely be /usr/bin or /usr/sbin.