Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Having difficulty with UNIX concept. Please help! Post 302102576 by Corona688 on Thursday 11th of January 2007 10:42:12 AM
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..
 

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
All times are GMT -4. The time now is 06:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy