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..
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
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
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
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
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
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?
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
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
LEARN ABOUT CENTOS
bos_getlog
BOS_GETLOG(8) AFS Command Reference BOS_GETLOG(8)
NAME
bos_getlog - Prints a server process's log file
SYNOPSIS
bos getlog -server <machine name> -file <log file to examine>
[-cell <cell name>] [-noauth] [-localauth] [-help]
bos getl -s <machine name> -f <log file to examine>
[-c <cell name>] [-n] [-l] [-h]
DESCRIPTION
The bos getlog command displays on the standard output stream the specified log file from the machine named by the -server argument. The
BOS Server fetches the log file from the /var/log/openafs directory unless an alternate pathname is provided as part of the -file argument.
CAUTIONS
Log files can grow quite large, especially for the database server processes. To keep them to a manageable size, periodically either use
the UNIX rm command to truncate each log file, or use the bos restart command to restart each process.
It can take up to five minutes after the file is removed or process restarted for the space occupied by a log file to become available.
OPTIONS
-server <machine name>
Indicates the server machine from which to retrieve the log file. Identify the machine by IP address or its host name (either fully-
qualified or abbreviated unambiguously). For details, see bos(8).
-file <log file to examine>
Names the log file to display. If a filename only is provided, the BOS Server fetches the log file from the /var/log/openafs directory;
the standard values are:
AuthLog
The Authentication Server (kaserver) log file.
BackupLog
The Backup Server (buserver) log file.
BosLog
The BOS Server (bosserver) log file.
FileLog
The File Server (fileserver) log file.
SalvageLog
The Salvager (salvager) log file.
VLLog
The Volume Location (VL) Server (vlserver) log file.
VolserLog
The Volume Server (volserver) log file.
If a pathname and filename are provided, the log file is retrieved from the indicated directory. Partial pathnames are interpreted
relative to the /var/log/openafs directory.
-cell <cell name>
Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see bos(8).
-noauth
Assigns the unprivileged identity "anonymous" to the issuer. Do not combine this flag with the -localauth flag. For more details, see
bos(8).
-localauth
Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The bos command interpreter presents the ticket
to the BOS Server during mutual authentication. Do not combine this flag with the -cell or -noauth options. For more details, see
bos(8).
-help
Prints the online help for this command. All other valid options are ignored.
OUTPUT
The output is preceded by the line
Fetching log file '<filename>'...
The remainder of the output depends on the particular log file.
EXAMPLES
The following example displays the FileLog file from the machine "fs3.abc.com":
% bos getlog -server fs3.abc.com -file FileLog
Fetching log file 'FileLog'...
Sun Nov 8 04:00:34 1998 File server starting
Sun Nov 8 04:00:39 1998 Partition /vicepa: attached 21 volumes;
0 volumes not attached
Sun Nov 8 04:00:40 1998 File Server started Sun Nov 8 04:00:40
1998
Mon Nov 9 21:45:06 1998 CB: RCallBack (zero fid probe in host.c)
failed for host 28cf37c0.22811
PRIVILEGE REQUIRED
The issuer must be listed in the /etc/openafs/server/UserList file on the machine named by the -server argument, or must be logged onto a
server machine as the local superuser "root" if the -localauth flag is included.
When a server is in restricted mode, bos getlog can only return the contents of the salvager's log.
SEE ALSO
bos(8)
COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 BOS_GETLOG(8)