Commands from 'Unix® for Mac®' book


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Commands from 'Unix® for Mac®' book
# 1  
Old 01-24-2005
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  
Old 01-24-2005
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  
Old 01-24-2005
Power

Thank you RTM, I guess too many authors take things for granted.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Remote desktop for mac unix commands

So Ive been a bit confused dealing with ssh keys or something else, who knows maybe someone can help. I run a set of computers on a network which are all running mac os x lion. I have a lion server serving them all up. I run remote desktop to update them and do anything else "tech" support... (13 Replies)
Discussion started by: jcahn93
13 Replies

2. Shell Programming and Scripting

to create a phone book using shell script and unix commands

can you help me to create a phone book with add, delete, modify with first name, last name, middle name, phone no(multiple ph no), address, email address, notes or comments to store about the contact and groups that hold for the contact.. i am new to this linux environment. please guide me. ... (1 Reply)
Discussion started by: monster11209
1 Replies

3. UNIX for Dummies Questions & Answers

UNIX Book Recommendation

Hi! To begin with, I know there is a dedicated sub-forum for this, but I'm not able to create a new thread there, and I'm not able to find anything in the threads already there to suit my needs either. This being said, I'm currently using Mac OS X Leopard, which is a great operating system, but... (5 Replies)
Discussion started by: cezar.elnazli
5 Replies

4. UNIX for Dummies Questions & Answers

Good book on Unix

I'm learning about Unix on my mac through the terminal application. I like it quite a bit. I'm finishing the chapter on Unix from my Mac OS X the missing manual, and it's whetted my appetite. Can anyone recommend a good book on beginning Unix (starting at beginner to intermediate). I'd like... (1 Reply)
Discussion started by: Straitsfan
1 Replies

5. Shell Programming and Scripting

use full book for unix

can some one tell me the name of the book or some use full link for a unix commands(advanced) (3 Replies)
Discussion started by: alokjyotibal
3 Replies

6. UNIX for Dummies Questions & Answers

Unix Book

OK Guys! I need a top of the line unix system administration book for newbies! help! thanks (1 Reply)
Discussion started by: disturbe_d
1 Replies

7. UNIX for Dummies Questions & Answers

Search for unix book

hello everyone, i wish to know anyone have any recommended good book about unix from for beginner until advanced? i wish to buy just 1 book, that include most of the useful part. i just review a book name "UNIX - in the nutshell 4th edition", is it suitable for me as a newbie? If not, any else... (4 Replies)
Discussion started by: chuwfan
4 Replies

8. UNIX for Dummies Questions & Answers

Unix beginner book help

Due to my new job I need to learn Unix to advance in the company and I am mainly a windows and mac user. What is a good book to get me started on the right path and hopefully prevent me from wasting money on several books and weeks of reading. Any response is welcomed thanks in advance. (3 Replies)
Discussion started by: windowsux
3 Replies
Login or Register to Ask a Question