-----Original Message-----
From: Henry T Wijaya [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, 28 March 2002 3`24 AM 
To: [EMAIL PROTECTED]
Subject: [SLUG] random thoughts

Hi (again, unashamedly),

'few' quick questions.

1) Under WinXX, you can share a particular partition or directory. How
do I do that under Linux, esp when the rest of the pc's are running w2k?
Do I have to set it up via samba?

Yes samba can take care of this. if your not sure how to set it up try
reading man samba, and even try installing SWAT which should help you
configure and administer samba

2) Under WinXX, there's such a thing call "WORKGROUP", and that allows
anyone to view the shared partitions/directories. How do I do that under
Linux? Samba again?

Yes samba again.

3) Using command-line under bash, one can basically "trace", TAB, and a
list of matching executables are shown, provided of course in the
executables are in your path. I had added /usr/sbin in my .bash_profile,
yet "trace" TAB doesn't shows up any matching executables. What's going on?

.bash_profile will only be of any use if you are using bash as your
interpreter. If you are using korn shell (ksh) or C shell (csh) then then
your .bash_profile will be ignored.

4) What's the name of the program that spits out random quotes whenever
one logins?

Its called fortune....if using Red Hat its usually found somewhere like
/usr/games.

5) How do I know if the nic is operating @ 10 or 100mbps? I've used
'ifconfig', seems like the nic is operating @ 10mbps, since 
RX bytes:10546363 (10.0 Mb). If that's the case, how do I change it to
100mbps? My nic does support 100mbps. :)

RX bytes:10546363 <-- this just indicates the amount of received bytes since
the interface had been brought up. My guess is if your card supports
100megabits then it will operate at 100megabits by default unless its can
switch between 10 and 100 and your connected to a 10megabit device like a
hub.

6) In my home directory, I've an executable 'dnetc', and would like to
make a directory named 'dnetc' too, but mkdir complains

/home/henry
[henry@nsw henry]$ mkdir dnetc
mkdir: `dnetc' exists but is not a directory
[henry@nsw henry]$

So how do I accomplish creating a directory when there's a file with an
exact name of the intended directory?

Its complaining because there is a file called dnetc therefore you cant have
a directory called that too...simply rename the file to something
else...e.g. mv dnetc dnetc-file then make your directory... mkdir dnetc not
move the original file into the directory and change it back to its original
name... mv dnetc-file ./dnetc/dnetc

7) man ls states that the -A option will list everything except those . & ..

yet...

[henry@nsw BitchX]$ ls -A ~
.bash_history
.bash_logout
.bash_profile
.bashrc
bookmarks.html

...

your confused...when it says it will list everything except . and .. it
means the the directories called . and ..
if you look very closely at the contents of a directory your see [.] and
[..] in just about every direcotory (except root (/))

I don't know the best way to explain this but the directory [..] is a link
back to the previous directory in that tree of directories...so if I was to
change dir to /usr/local/games/quake3 then do an ls | more I would see the
first 2 directories are [.] and [..]...not if I was to type cd ..  it would
drop me back 1 directory so if I typed pwd it would show /usr/local/games

Now as for [.]..this is a link the the current directory you are in...so if
you wanted to execute the file quake3 in /usr/local/games/quake3, instead of
typing /usr/local/games/quake3/quake3 to start it you could simply type
./quake3 if you are already in the directory /usr/local/games/quake3

Does that make any sense to anyone else?? Bear in mind its 5:23 in the
morning...

8) How do I copy from a terminal and paste it onto any window program?
Copying & Pasting is fine if I were to do it from a window to a window,
using the normal CTRL + C, CTRL + V, respectively.

Hmm, this one is a little tricky...i don't think clipboard sharing among
programs is completely developed...i mean some programs don't have any
trouble sharing the clipboard but some programs do..thats why you'll find
some programs you can cut and paste to where as other you cant...what you
can try doing if you have a 3 button mouse selecting the text with the left
button on the mouse then going to the window you would like to paste to and
press the middle mouse button. If you only have a 2 button mouse then you
can change your X configuration to emulate 3 buttons on your mouse...cant
explain how to do that right now tho...

Hope that doesn't take up too much of your time...

Rgds,
Henry

----------------
Powered by telstra.com

 
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

--

Searching for "A Better Way" to a home loan ?. Call RAMS on 13 7267, or go to 
http://www.rams.com.au

The e-mail and any attachments may contain confidential information.  If you receive 
it in error you must not use or disclose the information. You must tell us and delete 
it. We do not waive any legal privilege by sending it. RAMS does not promise that the 
email is free from virus defect or error.
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to