Having difficulty with UNIX concept. Please help!


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Having difficulty with UNIX concept. Please help!
# 1  
Old 01-10-2007
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  
Old 01-10-2007
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  
Old 01-10-2007
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  
Old 01-11-2007
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  
Old 01-11-2007
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..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Difficulty with set - command

Hi , i have a shell script with the first two lines as #! /bin/ksh set -x when i try opening the file from unix using the command 'sh filename.sh' , i am getting the below error : invalid optionline 2: set: - Pls help Use code tags for you code and data... (1 Reply)
Discussion started by: Rajankum
1 Replies

2. What is on Your Mind?

What exactly is the concept of BITS in this unix.com forum?

Is there a detailed page on the explanation of concept behind BITS and score used in this forum. Just saw the index on my Banking page. (Clicked the Banking hyperlink below my profile name on the topmost right corner of this screen) Thanks in advance. (2 Replies)
Discussion started by: Manjunath B
2 Replies

3. Shell Programming and Scripting

difficulty with awk

hello folks, i am stuck with this awk command. i need to calculate the sum of a column of values on a flatfile and i am using the following command : awk -F"|" '{x += $10} END {print "Sum: "x}' standard_csv_file1.out that flatfile contains 180 fields and i am getting the... (5 Replies)
Discussion started by: jdsony
5 Replies

4. Shell Programming and Scripting

difficulty in formatting a file.

a file containing following data (part of it).... 1907594 201012 31 11 5837737 201012 41 18 257402.88 201101 31 11 7500 201101 33 1 115618.5 201101 41 11 556330 201102 31 12 481783.5 201102 41 20 2827732.13 201103 31 71 85253 201103 33 2 4479588.07 201103 41 90 7120 201104 21 1 ... (4 Replies)
Discussion started by: guptam
4 Replies

5. Shell Programming and Scripting

Loop difficulty

hi all I am new to unix and want to create a loop to repeat the loop and before that it ask me to do so.I know "while" may help but I put it in my work and getting stuk with it.any help appreciated. (13 Replies)
Discussion started by: samsami1971
13 Replies

6. Shell Programming and Scripting

Regarding Mail concept in unix

Hi, I am new to this mail concept in unix. i have requirement to read the mail from mailbox. Now to get the mail where i have to configure the mail id and also the mail server. Kindly suggest me. Thanks in advance. (3 Replies)
Discussion started by: krishna_gnv
3 Replies

7. UNIX for Dummies Questions & Answers

trying to understand rationale of unix stream i/o concept

I am an entry level programmer with no formal training in computer science. I am trying to enhance my conceptual knowledge about operating systems in general. I have been using the C programming language on Linux systems for some time and have used the traditional unix stream I/O APIs. The... (1 Reply)
Discussion started by: kaychau
1 Replies

8. Shell Programming and Scripting

Perl Difficulty

Hi, I am trying to upload a file to a SQL database table. The column type is IMAGE. I am looking for a solution to upload a word doc file. I tried 3 approaches. 1) my $fileToStore = "mytest.doc"; open IPFILE, "<", $name; binmode IPFILE; while (<IPFILE>) { $fileToStore .= $_; } close... (1 Reply)
Discussion started by: b.paramanatti
1 Replies
Login or Register to Ask a Question