Results 1 to 5 of 5
About 3 or 4 months back I started using linux. I started a little project of making well formated notes whenever I found out how to do something new. So ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-28-2005 #1Just Joined!
- Join Date
- May 2005
- Posts
- 15
I've been writing a linux guide... (Debian Sarge)
About 3 or 4 months back I started using linux. I started a little project of making well formated notes whenever I found out how to do something new. So next time it came to reinstall I'd be able to have everything up and running in no time at all. It got a little out of hand thoguh and I thought I'd try and write it so it may help other people too. At almost 10,000 words I thought I should post it and get some feedback.
The html version is currently lacks some of the formatting as it's directly saved from OpenOffice so I've posted the sxw version too. It's certianly far from finished and some of the information needs reviewing and updating too.
Linux Guide HTML Version
Linux Guide SXW OpenOffice Version
Any Feedback/comments would be greatly appreciated.
- 07-28-2005 #2Linux Engineer
- Join Date
- Jan 2005
- Location
- Chicago (USA)
- Posts
- 1,028
1. In section 1, say something like:
"Before going forward, be sure to read at least some of the essays at gnu.org to learn about the philosophies and history of GNU/Linux.
2. Find and replace "linux" (not case sensitive) for "GNU/Linux".
3. Add somewhere that "~" is short for your home directory.
4. Add
cat (print a text file on the screen)
cat [file]
and
echo (print text on the screen)
echo [text]
If you want to find the value of an enviornment variable, such as $PATH, enter "echo $PATH".
to the basic commands list.
4. For the chmod syntax put "See manual page with 'man chmod'."
5. Somewhere say "When something has a space in it, you need to put a '\' before the space so it isn't read as two different things."
6. Here's a revision of 2.1.4-2.1.6:
2.1.4 - UNIX, GNU and GNU/Linux Directory Layout
UNIX and UNIX-like operating systems such as GNU/Linux's directory layout can be VERY confusing to a windows user. For starters there's no drive letters; everything starts at /, which actually is very usefull because you can replace the directories below with different partitions. Also, instead of "\", "/" is used, which actually makes a lot of sense since it's much easier to reach when typing.
Below I'll list some of the folders and what the, to my knowledge are for. One or two of these may just be educated guesses. Remember not all of these are actually files on the hard drive. Some refer to various system devices. And different folders may actually be located in different partitions or even a different hard drive. If something isn't listed your system may be different or I may just have no clue what it's for.
/bin
Binary. This contains all the most basic programs that are required for using the system. Such as cd, mv, mkdir, mount, kill and other basic programs.
/boot
GRUB the boot loader's configuration files, Linux kernels and things needed at startup.
/dev
Device. This is a fun one. All devices on your computer will be here. such as your hard drives. ie, /dev/hda is the first IDE drive and /dev/hdb is the second as well as many other things. You can't access the devices directly from this directory. You need to initialize or mount them some other way and they will be available else where.
/etc
Configuration. Any major system configuration files will usually be found here. Of course you need root access to edit any of them.
/home
Home. Now this is where all your user files will be stored. This is often stored on a separate partition or drive to the rest of the system folders. Having a seperate /home partition can save a lot of redoing configuration you've already done on another distro when installing a new distro.
/lib
Libraries. Like window's DLL files. They're compiled code used by other programs. Usually a single library will be used by many different programs for different common tasks. This stops everyone from having to reinvent the wheel all the time, not to mention the axle, the motor and many other parts.
/mnt
When you mount other hard drives and partitions you'll usually make a folder here to mount them too. Though you can mount partitions to folders else where. for example, I like to mount my second drive to a folder called data in my user directory.
/media
Some distros, such as Debian and Fedora Core use this instead of /mnt.
/proc
This directory is an interesting directory because really doesn't exist. It's something created by Linux. Inside /proc are things about what is running right now.
/root
Unlike normal user's root's user files and configuration files are located here. (the configuration files start with a . and are hidden by default)
/sbin
System administration binaries.
/sys
System. Hard to say but I suspect it's various information about the system and system devices status. Probably intended to be interpreted by a program and not read by the user directly.
/tmp
Temporary files. This is where programs dump temporary random crap.
/usr
Non-system-essential binaries, but things you'll want if you want to actually do something with your system.
/usr/local
This is where you should install new programs that didn't come with your distro.
/var
Hard to say. I suspect it's just shared configuration files for general programs. (where as /etc/ is for system configuration).
Additional: I've recently found a site with specifications on what all the different folders are for. http://www.pathname.com/fhs/pub/fhs-2.3.html
2.1.5 - Hidden files/folders and user config files/folders
"Hidden files" are just files that start with a period ("."). Typically these are configuration files and folders. KDE applications will have their config files in ~/.kde/share/apps/APPLICATION and ~/.kde/share/config/APPLICATIONrc. Most other programs will store their configuration in ~/.APPLICATION.
2.1.6 - Symbolic Links (also called symlinks for short)
Symbolic links can be really handy. They just point to another file or directory. To create a symlink, enter
ln -s TARGET LINK_NAME
5. Make it a light text on dark background. It's easier on the eyes. Staring at a white background is like staring at a lightbulb.
6. Somewhere, add
$PATH
Everything that isn't an address of a file or directory typed into a command prompt or something built into the command interpreter is looked for in the directories in $PATH. If it's found, it will be executed. If not, you'll get an error saying command not found.
7. Somewhere add
~/.bashrc
This is a script for the shell bash (which is what most UNIX, GNU, and GNU/Linux distributions use as a shell (command interpreter)) that is excecuted every time you enter bash. This is usefull if for example you want an enviornment variable, such as $PATH always set to something, you could add "PATH=$PATH:/home/user/scripts" so /home/user/scripts is always in $PATH.
- 07-28-2005 #3Linux Newbie
- Join Date
- Jul 2005
- Posts
- 138
you are the same guy in linuxquestions.org............i read this topic there
- 08-01-2005 #4Just Joined!
- Join Date
- May 2005
- Posts
- 15
Thanks for the corrections and sugestions.
Originally Posted by a thing
- 08-01-2005 #5Linux Newbie
- Join Date
- Feb 2005
- Location
- Texas
- Posts
- 168
I just visited linuxquestions.org
It is a very nice site.
JeffRegistered Linux User #391940


Reply With Quote
