New to Mac OS X Terminal


 
Thread Tools Search this Thread
Operating Systems OS X (Apple) New to Mac OS X Terminal
# 1  
Old 11-24-2008
New to Mac OS X Terminal

Hi everyone. I'm new to using the Terminal and was just wondering if anyone had a link to perhaps a list of commands. And tips on some useful websites to visit or books to read.
Oh and is there a way to delete just part of the Terminal's history? If so what is the command?

Thanks Smilie
# 2  
Old 11-27-2008
Mac OSX has most of the same commands as any other UNIX operating system; ls for listing directories, cd for changing the current directory, chmod for changing permissions, mkdir for making directories and rmdir for removing them, grep for finding text in files and sed for text replacement, man for viewing manual pages... Any general UNIX commandline reference should be able to help you. It also comes with the relatively friendly nano text editor. Where OSX differs from the UNIX commandline is mostly the presence of extra things, not things missing.

You can run 'man commandname' whenever you need to reread details on a specific command, and most manpages also list a few related commands down at the bottom, I recommend browsing through them.

As for editing your history list, the shell keeps its history in a plain text file named .bash_history, edit however you please.
# 3  
Old 12-10-2008
A good source to Bash and specific OS X commands can be found here: OS X commands

Yes, it is the "man" of the commands. But provides a good overview of all commands and easy to scroll and look for commands if you have forgotten the names and so on.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Trying to log in to school server using terminal on mac.

Hi everyone I am a complete beginner and already confused. the instructor has step by step directions for students on PC to download putty and do it that way. He neglects mac unfortunately. I attached the documents that instructs students how to do it. maybe you could read it and guide me? Iv done... (3 Replies)
Discussion started by: Beavs410
3 Replies

2. Open Source

The Terminal on Mac OS X

Does anyone know the differences in commands when it come to Linux and Mac OS X? I'm wanting to know if I use "this" command in Linux and It doesn't work in Mac then what command is equivalent to the one in Linux. Example Ctrl+Alt+f2 switches to (tty2) so what equivalent switches to ttys2 on Mac? (13 Replies)
Discussion started by: 1negroup
13 Replies

3. OS X (Apple)

The Terminal on Mac: Coding

So found this C code online and need to compile it in Terminal on Mac. Here is the code: #include <stdio.h> #include <math.h> int option; char q; int number; int currentsum; int value; void calc() { printf("\t\t\t\t\tBegin\n"); // says begin in top middle of screen ... (3 Replies)
Discussion started by: 1negroup
3 Replies

4. UNIX for Advanced & Expert Users

close a mac terminal

Is there a trick to closing a mac terminal with a command? I would think you could just type exit into your terminal but that doesn't work. I also tried quit and close just for the hell of it and that didn't work either. Does anyone know what the command is? (1 Reply)
Discussion started by: cokedude
1 Replies

5. Shell Programming and Scripting

How to checkout from SVN using Terminal in Mac OS X?

Hi, I am new for SVN. Earlier I have been using CVS. When I checkout the code from SVN using Eclipse, the size of the source code checked out is 612MB. But when I try to checkout from terminal, from my 5.8 branch , the checked out source code's size is only 312.1 MB. Can anyone tell me... (0 Replies)
Discussion started by: Afreen
0 Replies

6. UNIX for Dummies Questions & Answers

How to create new users on my mac from the terminal

I finally got how to su - in my mac from the terminal. Now I would like to be able to add new users. useradd -m -d ..... doesn't seem to work. (1 Reply)
Discussion started by: bigmac18
1 Replies

7. UNIX for Dummies Questions & Answers

Problems installing a program through Terminal in Mac OS X

Hey all.. I have a problem with the BitTorrent client called Deluge. (Deluge BitTorrent Client). Followed the guide on their homepage, but can't get it to work. First of all I have installed Xcode Tools 3.0 and MacPorts. I did the "sudo port install deluge" command, and all packages seemed to... (1 Reply)
Discussion started by: Sixmax
1 Replies

8. UNIX for Dummies Questions & Answers

Send email from unix terminal on Mac OS 10.x

Hello, I want to send email from unix terminal on Mac OS 10.x. I have 2 user accounts on the system - userOne and root. I tried sending an email from userOne to root by entering "mail root". It prompts to enter Subject and the content. It doesn't give any error message, but root doesn't get... (0 Replies)
Discussion started by: hypamw
0 Replies

9. UNIX for Dummies Questions & Answers

Running Terminal and/or X-Windows in Mac OS X

Quick question: When I load up Terminal or X-Windows on my Mac, and the prompt comes up...what folder am I starting in? (2 Replies)
Discussion started by: liquidcross
2 Replies

10. UNIX for Dummies Questions & Answers

Mac OS X/UNIX/Terminal Question

Hey everyone I'm new to UNIX due to the new Mac OS X operating system and would like some help. I'm trying to send an email via the UNIX-Shell-Terminal i Mac OS X, (it's called darwin) How do I do that? When I enter the Command mail I can send messages to root and with the command -forward... (4 Replies)
Discussion started by: onkel
4 Replies
Login or Register to Ask a Question