The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - Newcomers (http://hintsforums.macworld.com/forumdisplay.php?f=15)
-   -   feedback on Unix FAQ (http://hintsforums.macworld.com/showthread.php?t=40649)

hayne 06-10-2005 02:43 PM

Quote:

Originally Posted by Raven
Another thing that should go in, especially since it a recommended step mentionned in the new WebKit instructions for Safari is how to add directories in the shell path since its something that could be very practical for new unix users (less typing is always better :) )

Maybe I don't understand what you mean, but isn't this what is covered by question #2 ?

Raven 06-10-2005 02:48 PM

I guess it is implicitly indicated yes.

Raven 06-13-2005 02:07 PM

Ok ok... Shame on me for the last post... I looked at post 2 in this thread instead of the Unix FAQ one... Yeah your right... Its very nicely put in that proper thread :rolleyes:

nkuvu 06-13-2005 02:49 PM

Quote:

Originally Posted by nkuvu
Tried that -- works great. Tested in bash, csh, ksh, sh, tcsh, zsh (all of the shells installed on my system).

Interesting side note. On Solaris, csh doesn't like "echo $0". It complains that "no file was found for $0". The ps trick worked fine, though.

Now if I could get the chsh command to work, I'd actually be able to change to a useful shell. (Which is a whole long thread in itself, and not really important)

hayne 06-18-2005 01:56 AM

Thanks for the suggestions for the FAQ.
I have now added in sections that respond (at least partially) to all of the suggestions to this point.
Don't hesitate to point out errors or parts that are unclear.

mandehu 01-03-2006 01:36 AM

unix vs gui
 
Quote:

Originally Posted by hayne
This thread is intended for feedback on the "Unix FAQ" sticky thread that is listed at the top of the "UNIX - Newcomers" forum thread listing:
http://forums.macosxhints.com/showthread.php?t=40648

Please use this thread to suggest additions or corrections to the FAQ.

I wonder how to open a window in the OSX GUI for any given "exotic" Unix folder, eg ~/monza/ps-files (monza is a folder in my Home).
Thank you for your work.

hayne 01-03-2006 02:26 AM

Quote:

Originally Posted by mandehu
I wonder how to open a window in the OSX GUI for any given "exotic" Unix folder, eg ~/monza/ps-files (monza is a folder in my Home).

I'm not sure what you mean. If you mean how to open a Finder window from the command-line (in Terminal), you can do that with the 'open' command:

open ~/monza/ps-files

But thanks for the reminder - I forgot about the 'open' command when I was making that list of commonly used commands. I'll go add it now.

mark hunte 01-03-2006 09:37 AM

Hi Hayne, I noticed in the Faq
How can I redirect the output from a command into a file? you mention
Quote:

To do this, you append the command with the ">" symbol (think of it like a funnel) and a filename
I wonder if it worth also mentioning the use of >> which as you know will append to a file.

Also in a reply to one of my posts, you reminded me of a useful command option for searching the Man pages.

man -k foo

which maybe handy for others to know.

Thanks

hayne 01-03-2006 01:06 PM

Quote:

Originally Posted by mark hunte
I wonder if it worth also mentioning the use of >> which as you know will append to a file.

Also in a reply to one of my posts, you reminded me of a useful command option for searching the Man pages.

man -k foo

which maybe handy for others to know.

Thanks for the suggestions - I'll add these to the FAQ soon.

Oops 04-11-2006 03:16 PM

Adapt old questions/include a new one about using Standard accounts.
 
Several questions are very nicely addressed, but assume that the user is operating from an Administrator's account. For example, the use of 'sudo' in:
----------
7) What's the deal with permissions? How do I change them?
and
8) How do I gain "root" privileges? Do I need to enable the "root" user?
----------
This is no doubt a good assumption, given that people are operating from the command line, but now that recommendations are to operate from a Standard account, the beginner might run into a roadblock with these.

You probably know the best way to approach this, but possibilities would be:
(1) to say to make sure you're operating from an administrator's account before doing this;
or
(2) to tell how to 'su adminusername' to get administrator's command line privileges temporarily.
or
(3) there is something else I don't know about.

Granted, (3) is guaranteed to be true as a general idea, but I meant that there is another way of operating from a Standard account with all its benefits, and still using 'sudo' from the command line.

Thanks for this wonderful resource.

hayne 04-11-2006 05:35 PM

Quote:

Originally Posted by Oops
Several questions are very nicely addressed, but assume that the user is operating from an Administrator's account. For example, the use of 'sudo' in:
----------
7) What's the deal with permissions? How do I change them?
and
8) How do I gain "root" privileges? Do I need to enable the "root" user?

Good point.
I'll try to add some explanation along the lines you suggested.
Thanks.

Quaresti 06-07-2006 10:38 AM

Re: How can I tell what shell I am running?

How about using
Code:

finger `whoami`
or
Code:

finger $USER
instead? There's a chance of picking up a similar username when grepping passwd.

hayne 06-07-2006 02:01 PM

Quote:

Originally Posted by Quaresti
Re: How can I tell what shell I am running?

How about using
Code:

finger `whoami`
or
Code:

finger $USER
instead? There's a chance of picking up a similar username when grepping passwd.

That is true, but you'd still be able to pick out which one was yours.
But I added your suggestion of using 'finger' as an alternative way of seeing what shell is assigned to your account.
Note, however, that some corporate installations will have disabled 'finger' on their Macs.


All times are GMT -5. The time now is 10:20 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.