The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Book For the Unix shell udayn Shell Programming and Scripting 2 02-05-2008 04:22 PM
Unix Book disturbe_d UNIX for Dummies Questions & Answers 1 07-24-2007 03:14 PM
Search for unix book chuwfan UNIX for Dummies Questions & Answers 4 07-13-2006 06:13 AM
Unix beginner book help windowsux UNIX for Dummies Questions & Answers 3 04-05-2006 11:00 AM
Unix book reference mandarin14 UNIX for Dummies Questions & Answers 3 03-21-2005 06:08 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-24-2005
Frank Hunter Frank Hunter is offline
Registered User
  
 

Join Date: Jan 2005
Location: Robson Valley BC Canada
Posts: 7
Question Commands from 'Unix® for Mac®' book

Hi everyone, first day on the job.

I'm attempting to learn Unix from the 'Unix® for Mac®' book. On page 11 there are instructions to enter certain commands but for me they don't work.

[darwin:~] user% which w is supposed to result in: -/usr/bin/w -I get a "command not found"

darwin:~] user% which which " " " " " which: shell built-in command. -I get a "command not found"

Still on page 11 I read. "You can get a full list of the built-in shell commands by typing the command builtins at the shell prompt. I entered "builtins" also "command builtins" these also returned a "command not found"

On some entries the cursor becomes a >. Why and how do I return to the regular cursor.

I'm sorry if these items have been dealt with in the past but I couldn't find them.

Thanks
  #2 (permalink)  
Old 01-24-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Welcome Frank. Please read the rules so you know what to do and what not to do.

Try /usr/bin/which or /usr/sbin/which instead of just which (I would guess it isn't built-in as they stated in your book).

% /usr/bin/which w

If the cursor becomes a > sign, then it was usually because a full command line wasn't typed - and it's waiting for you to finish the command sequence. Pushing the Control key and C at the same time should get you out of it.

Use the man pages for assistance also. They are sometimes hard to understand, but no one said it would be easy!

% man which

If you can't get these examples to work, look at the PATH variable and MANPATH variable

% env | more

env will give you all the environment variables, | is the pipe sign, and more is to let you look at it all a screen at a time.
  #3 (permalink)  
Old 01-24-2005
Frank Hunter Frank Hunter is offline
Registered User
  
 

Join Date: Jan 2005
Location: Robson Valley BC Canada
Posts: 7
Red face

Thank you RTM, I guess too many authors take things for granted.
Closed Thread

Bookmarks

Tags
learn unix

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:27 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0