The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
semaphore concept maverix UNIX for Advanced & Expert Users 8 04-10-2008 11:07 AM
have difficulty with setup red hat first time sito Red Hat 0 01-03-2008 06:52 PM
Reverse Proxy difficulty rboekdrukker UNIX for Dummies Questions & Answers 1 12-13-2007 05:44 PM
LUN concept Prem HP-UX 1 02-22-2007 05:02 PM
Difficulty in Posting URLs in my threads Nisha Post Here to Contact Site Administrators and Moderators 3 07-12-2002 12:32 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-10-2007
ALon ALon is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 7
Having difficulty with UNIX concept. Please help!

Hi,

I would be very happy if someone could help me please. I am relatively new to UNIX, and still learning.

My understanding of things are:
Say I have a PC running Windows. This machine has a name. If I have 10 PC's, then I have 10 names, one for each PC. Each PC is independent of the other. It is a separate entity. Each has it's own file system, CPU, RAM, harddrive etc...

Now, considering UNIX...
At university there are about 50 machines in the lab. Each is a box, with a label on it stating its hostname e.g abc.def.ac.uk.
So I am assuming that each is a machine in its own right, yes? i.e. if we were to open the box, inside each machine will have its own CPU, own RAM, own motherboard etc. Is this correct?
Now how does the UNIX bit come in? It says that UNIX is supposed to be "multi user, multi tasking, time sharing". Does this simply mean that some other user too can remotely log into that box and use it to do their work?

Now for the other question. If I sit at machine 1, and create a file, and then I log out, and log in on machine 5, then that file is visible. Does this mean that when I created that file, it was not created on the harddrive of machine 1, but rather on a big hard drive inside the server room?

So, I am very confused here. There seem to be many directory structures, one somewhere in a server room which stores everything, and one on each box where the UNIX O/S is stored.

Someone please address what I am asking using simple, laymen terms.

Thanks a lot.

A

Last edited by ALon; 01-10-2007 at 05:08 PM..
  #2 (permalink)  
Old 01-10-2007
jimmyc jimmyc is offline
Registered User
  
 

Join Date: Dec 2006
Location: dallas tx
Posts: 43
Wow… I’m not sure where to start here…
Yes unix is multi tasking. User's can log into one box and using a variety of tool/apps work or store their information on another box. The name on the box is most likely a “hostname”. So to move (not physically) to another box you could "telnet" to box 3 and use your login in there (assuming you have a login there) even though you’re still at box 1. Maybe someone can suggest a beginning UNIX book or just do some google searches on client/server definitions and relationships.

For your second question, the admin there most likely has your login set up to point to a common storage space so any machine can access files. It makes it easier to manage and more efficient. If you think of one box as a single stand alone entity you’re missing the whole networking picture.
hth's
  #3 (permalink)  
Old 01-10-2007
ALon ALon is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 7
Thank you very much for your reply. It makes a little more sense now. I do understand the way client/server architectures work, I am just not sure how UNIX works...I tried reading wikipedia, but it wasn't very helpful, for me anyway!

OK, if I an on machine1, and want to access the harddrive on machine3, does that mean I have to mount the filesystem of machine3 onto machine1? Or something along those lines.

You mentioned hostnames. Is a hostname simply the name of a unix box? Does it mean that each hostname has its own CPU, harddrive, RAM etc?

Thanks.
  #4 (permalink)  
Old 01-11-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,322
if you want to access data on particular HD, you can S/FTP the data, but if you need the entire HD onto your box ( where you are currently logged ) yes, you need to NFSmount this partition.
Hostname is a reference to a machine unique name, e.g.
1 - mainframe.sysgate.org
2 - sysadmin.sysgate.org
These would be two different machines, each with CPU, Ram, etc, but still part of domain "sysgate.org"
Hope this helps.
  #5 (permalink)  
Old 01-11-2007
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,937
Quote:
Originally Posted by ALon
Now, considering UNIX...
At university there are about 50 machines in the lab. Each is a box, with a label on it stating its hostname e.g abc.def.ac.uk.
So I am assuming that each is a machine in its own right, yes? i.e. if we were to open the box, inside each machine will have its own CPU, own RAM, own motherboard etc. Is this correct?
Yes. They're ordinary computers running some variety of UNIX.
Quote:
Now how does the UNIX bit come in? It says that UNIX is supposed to be "multi user, multi tasking, time sharing". Does this simply mean that some other user too can remotely log into that box and use it to do their work?
If the machine is configured to allow this, then yes -- absolutely. The computers at my university had a similar arrangement which I often used for just that, though the university placed careful restrictions on who was allowed to login from where.

May I shift your perspective a little? Try imagining it, not as a "computer" in the Windows sense, but a machine that sits there and runs "jobs". When you run a program, that makes a new job, and you can have many jobs running at the same time belonging to many different users. It keeps careful track of which users are allowed to run which jobs and access which files but beyond that, the fact that you're the one sitting in the chair in front of it is largely incidental. You could remove the keyboard and monitor and just use it completely remotely -- I do for my UNIX machine, which is handy since it's a web server hundreds of kilometers away from me.
Quote:
Now for the other question. If I sit at machine 1, and create a file, and then I log out, and log in on machine 5, then that file is visible. Does this mean that when I created that file, it was not created on the harddrive of machine 1, but rather on a big hard drive inside the server room?
Quite probably.
Quote:
So, I am very confused here. There seem to be many directory structures, one somewhere in a server room which stores everything, and one on each box where the UNIX O/S is stored.
UNIX does not have drive letters, as you may have noticed. Instead it has one(one per computer!) giant directory tree starting from one "root partition" -- that's going to be the hard drive of the computer you're sitting at -- and attaches or "mounts" more drives to different directories. Usually, the /etc/fstab file tells a UNIX computer which drives to attach where, when. Also try 'df' in a shell to show you what disks are mounted where at that particular moment.

I've seen something like your setup before. How it works is, each individual computer has it's own independent disk space used for system files(stored on it's root partition), so it can boot up independently. But the directories you use, something like /home/username/, get "mounted" to the big server through the network. When you login, do things, and logout, you're running programs on that particular machine, but all your data and settings gets saved to the server. So no matter which one you login to, you get the same files and settings.

Last edited by Corona688; 01-11-2007 at 12:11 PM..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:56 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0