I originaly posted this at
Deaths Kitchen but I figured some of you guys might be able to learn from it also. It is not done so please don't post anything below and I will update it as I update the one at DK. Thanks
This is a little lesson for anyone totaly lost. Don't come back and say that is easy [censored]. I am saying now this is the basics.
In Linux you have a totaly different directory structure from windows. Every one has their own folder in the home directory accept root. Root is a default user who runs the syste. his default directory is /root.
see the directory structure here
http://deathskitchen.promodtecnologies.com/cgi-bin/DeathsKitchen2/YaBB.pl?board=OSforum;action=display;num=1013816145
Now in Linux you use forward slashse instead of back ward slashes in windows.
you use / in linux not \
Sooooo the path to your home folder is
/home/Your account name
In the root folder (/) you have certain folder you want to know about
bin - Bianaries are kept here
home - all home directories are stored here. Login under anything but root and you start here
mnt - mount point for all removeable drives. In linux everything is a file/program. Hard drives, printer, CDROM all can be found here
enough spoon feeding, see the link above.
Now once you are logged in and you are in a terminal windows or in text mode you might want to see all the fiels in the directory tou are in. you would use the "ls" command.
$ ls
that will give you something like this
$ls
gnome_setup BTP myxterm
above are 3 file names. In Linux everything is case sensative. BTP is not the same as btp. Rember that. What if you want more info on these files? YOu could use switches. The "-a" switch will allow you to see hidden files. That is any file starting with a "." usally. So in the same directory.
$ ls -a
gives us
$ls -a
. .mysql_history BTP gnome_setup
.. .profile myxterm
what if you wanted even more info on this directory? Well you can use the "-l" switch with the "-a" or without it.
ls -al
gives us
drwxr-xr-x 3 user_name username 512 Oct 28 20:28 .
drwxr-xr-x 41 nobody username 1536 Dec 9 14:10 ..
-rw------- 1 user_name staff 95 Oct 28 20:28 .mysql_history
You get the idea. What the [censored] is that right? Well this is a bit of usefull info. See in Linux you can actually own a file and set who can do what with it. you have 3 levels of access basicaly
World
Group
Owner
each of these levels can have privilages set for read, write and execute.
so...
rwx = read write execute
still with me? You can set levels with the "chmod" command, which we will get to in a moment.