New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Switcher Hangout The place for switchers to discuss their new machines, and how to work with OS X. General support can be had here for newbie stuff, like "How do I restart my new iMac?" :)

Beginner's guide to navigating the Terminal in OS X


Post Reply New Thread Subscribe

 
Thread Tools
cwa107

 
cwa107's Avatar
 
Member Since: Dec 20, 2006
Location: Middletown, Pennsylvania
Posts: 26,499
cwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond repute
Mac Specs: 15" MBP, Core i7/2GHz, 8GB RAM, 480GB Crucial M500 SSD

cwa107 is offline
I found this great little tutorial on the basics of navigating the command line interface in OS X. For those of you switching - the Terminal program, located in Applications => Utilities is the equivalent of the Command Prompt in Windows XP. Since OS X is built on top of a variation of OpenBSD, known as Darwin, you'll find that the Terminal doesn't use the traditional commands that you might be accustomed to if you cut your teeth on DOS. The great thing about learning the OS X Terminal is that the lessons translate easily into the command line utilities of other UNIX-like operating systems, including Linux. Although the majority of basic tasks can be performed exclusively in the GUI of OS X, for those wishing to graduate to "power user" status or do advanced troubleshooting, a working knowledge of the Terminal is absolutely essential.

I hope you find this useful.
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi

rman is offline
If I may make a small correction. The terminal is the application to get to the UNIX environment. I believe you are suggesting a working knowledge of UNIX.

Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
QUOTE Thanks
djames42

 
Member Since: Oct 07, 2005
Location: Seattle
Posts: 346
djames42 has a spectacular aura about
Mac Specs: MBP CD 1.83/2ghz/7200 100g + Mini 2ghz C2D 2gb + Mini 1.42ghz G4 + PM 7200/120 + Newton OMP

djames42 is offline
Quote:
Originally Posted by cwa107 View Post
For those of you switching - the Terminal program, located in Applications => Utilities is the equivalent of the Command Prompt in Windows XP.
Those of us who live and breathe in the UNIX environment might take offence to that statement :black:

I'm just teasing really. I've often wondered how many Mac users ever really use the Terminal, compared to how many of us use MacOS in a large part because of having Unix under the hood (I spend the majority of my working day, and a good part of my non-working day inside a shell). The Unix environment is just another one of those reasons that MacOS X is the most powerful operating system in the world. AppleScript is another...

The main difference between the Terminal and XP's command prompt is that you can actually be productive with Terminal. The command prompt is, quite frankly, a bit of a joke. If you consider that not only does Terminal give you access to shell scripting (ksh and csh), the default install of MacOS also gives you perl, php, python, yacc, sed, and awk. Installing the development tools gives you even more goodies to play with (such as gcc).

XP's command prompt gives you, erm, let me see... DOS batch files.
QUOTE Thanks
D3v1L80Y

 
D3v1L80Y's Avatar
 
Member Since: Feb 02, 2004
Location: PA
Posts: 12,459
D3v1L80Y has a reputation beyond reputeD3v1L80Y has a reputation beyond reputeD3v1L80Y has a reputation beyond reputeD3v1L80Y has a reputation beyond reputeD3v1L80Y has a reputation beyond reputeD3v1L80Y has a reputation beyond reputeD3v1L80Y has a reputation beyond reputeD3v1L80Y has a reputation beyond reputeD3v1L80Y has a reputation beyond reputeD3v1L80Y has a reputation beyond reputeD3v1L80Y has a reputation beyond repute
Mac Specs: MacBook

D3v1L80Y is offline
Most users I know have never touched the DOS prompt/Command line in Windows.
These are the same people, who are recent switchers, that won't likely ever have the need to enter the Terminal.
If you have prior experience in a *nix environment, great have a ball.

My advice:

If you have never had any in-depth experience with a *nix OS, then the Terminal is one playground that should be left alone. Not having any knowledge prior to reading any "beginner" guide is a recipe for potential disaster.
To put it into "Windows Terms", (something I abhor doing, but will this time to help create an analogy)... it can be likened to messing with the Registry in Windows and having no idea what you are doing. You are going to screw something up majorly, before you actually reach whatever goal it was you were trying to acheive.

If that description matches you, then you would be wise to just leave it be.

:black:

__________________________________________________
Posting and YOU|Forum Community Guidelines|The Apple Product Cycle|Forum Courtesy

mac: a waterproof raincoat made of rubberized fabric
MAC: a data communication protocol sub-layer, also known as the Media Access Control
Mac: a brand name which covers several lines of personal computers designed, developed, and marketed by Apple Inc.

QUOTE Thanks
technologist

 
Member Since: Mar 30, 2004
Location: USA
Posts: 4,744
technologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond repute
Mac Specs: 12" Apple PowerBook G4 (1.5GHz)

technologist is offline
Quote:
Originally Posted by djames42 View Post
Those of us who live and breathe in the UNIX environment might take offence to that statement :black:
:mac:

(I wouldn't say that I "live and breathe in the Unix environment"...but I certainly start to suffocate in the lousy command prompt.)
QUOTE Thanks
cwa107

 
cwa107's Avatar
 
Member Since: Dec 20, 2006
Location: Middletown, Pennsylvania
Posts: 26,499
cwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond repute
Mac Specs: 15" MBP, Core i7/2GHz, 8GB RAM, 480GB Crucial M500 SSD

cwa107 is offline
My comments were focused on recent switchers, not for hardened veterans of OS X and UNIX-like operating systems, that is why I posted the link in this forum. Please understand that I tried to keep my statements relevant to that audience.

And by all means, if you don't feel comfortable working in a command-line environment, please be aware that you can do damage to your system if you don't exercise caution. However, I believe the tutorial focused more on getting in and out of directories and basic file manipulation. None of which will do serious damage without root privileges.
QUOTE Thanks
Slokunshialgo

 
Member Since: Oct 19, 2006
Posts: 152
Slokunshialgo will become famous soon enough

Slokunshialgo is offline
Something I find funny, is that when I'm on my Linux box, I find it hard to go more than 5 minutes without opening the shell to do something (Not counting when I'm randomly surfing the net), but on Mac, I open it about once every couple of weeks. it just never seems to be needed, and for a lot of what I would need it for, there's something better in the GUI that I can use.

PC: Intel Core 2 Duo 2.66 GHz, 2 GM RAM, Total 750 GB HDD, Windows Vista Business (For gaming), Ubuntu 8.04 Hardy Heron (64-bit), Slackware 12 (For GTK# coding)
Mac: 1.66GHz, 1GB RAM, 60GB HDD, Mini
QUOTE Thanks
MC Hammer

 
MC Hammer's Avatar
 
Member Since: Nov 14, 2006
Location: Finland
Posts: 89
MC Hammer is on a distinguished road
Mac Specs: iMac 20", 2GB ram, 500GB hd, 256MB Radeon x1600

MC Hammer is offline
Ah, thanks for the link cwa107! You must be reading my mind some how, lol.

I was fiddling with the Terminal some days ago but couldn't really make head nor tail of it, since it's pretty different from the Win prompt etc. So I thought I'd ask if there are any tutorials/guides on using the Terminal but never got around to actually ask about it. (=forgot)

Anyways.. seems like an interesting read. I really like to dig deep in to things. Maybe it'll reveal the soul of the OS X bit more to me. So far I've felt like an outsider when using the Mac, since I'm not fully aware of what's going on under the surface :black:

Syntax Error.
QUOTE Thanks
karudzo

 
Member Since: May 27, 2006
Location: Concord, NC
Posts: 445
karudzo has a spectacular aura about
Mac Specs: Macbook Pro 17" 2.6GHz 4GB RAM

karudzo is offline
Since OS X is built on top of a variation of OpenBSD, known as Darwin, you'll find that the Terminal doesn't use the traditional commands that you might be accustomed to if you cut your teeth on DOS.


Actually a variant of FreeBSD. I'm an avid Unix/Linux user and agree that, unless someone knows what they're doing, they should stay out of "Terminal-land".
QUOTE Thanks
moss918

 
Member Since: Dec 03, 2006
Location: UK
Posts: 709
moss918 is just really nicemoss918 is just really nicemoss918 is just really nicemoss918 is just really nicemoss918 is just really nice
Mac Specs: iMac 2.93C2D 4GB

moss918 is offline
I'm pretty sure I should stay well away from the Terminal. I have no idea what it does and even less of an idea what I would need it for. I'm well aware that I sound like such a pansy right now and I'm fine with that. What do you guys actually do with it?

(Good link BTW)
QUOTE Thanks
arai_speed

 
Member Since: Dec 08, 2006
Posts: 59
arai_speed is on a distinguished road
Mac Specs: MacBook Pro, OSX 10.4.8, 2.33 GHz Intel Core 2 Duo 2 GB 667 MHz DDR2 SDRAM

arai_speed is offline
I actually dig the Terminal, use it everyday. The windows prompt is crap, it's always been crap, even in Vista it's still crap. I would use Cygwin while on my windows machine but even that was not good enough. The whole Unix thing is one of the main reasons I use a Mac as my workstataion.

As far as novice users using the Terminal, I say go crazy. It's your computer so do with it as you wish.
QUOTE Thanks
aitebar

 
Member Since: Sep 04, 2007
Posts: 21
aitebar is on a distinguished road

aitebar is offline
Hello Guys,

is there anyway how to go inside the Terminal when restarting the PowerMac G4 like pressing the option key or C key when the computer is restarting or starting?

will really appreciate a detailed answer.

Thanks
QUOTE Thanks
cwa107

 
cwa107's Avatar
 
Member Since: Dec 20, 2006
Location: Middletown, Pennsylvania
Posts: 26,499
cwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond reputecwa107 has a reputation beyond repute
Mac Specs: 15" MBP, Core i7/2GHz, 8GB RAM, 480GB Crucial M500 SSD

cwa107 is offline
Turn your Mac on, immediately press and hold Command+S. This will start you in Single User mode, essentially in the terminal.

Liquid and computers don't mix. It might seem simple, but we see an incredible amount of people post here about spills. Keep drinks and other liquids away from your expensive electronics!
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,621
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
Quote:
Originally Posted by karudzo View Post
Since OS X is built on top of a variation of OpenBSD, known as Darwin, you'll find that the Terminal doesn't use the traditional commands that you might be accustomed to if you cut your teeth on DOS.


Actually a variant of FreeBSD. I'm an avid Unix/Linux user and agree that, unless someone knows what they're doing, they should stay out of "Terminal-land".
Come on, as long as you're not doing any sudoing, there's relatively little risk in OS X. Just make sure you understand the commands you're issuing. There is very little reason not to play with perl, python, bash scripting, etc etc etc.

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
scathe

 
scathe's Avatar
 
Member Since: Jan 12, 2009
Location: Prague, Czech Republic
Posts: 1,096
scathe is a jewel in the roughscathe is a jewel in the rough
Mac Specs: 2,4Ghz 15" unibody

scathe is offline
hehe, when people will be reading this, they might actually get even more scared of the Terminal (or shell for that matter) than ever before

I don't think it's all that dangerous, after all how else do you want to learn than by doing something stupid

learning to work with the shell is and for a long time probably will be very useful so even the basic knowledge is good

on the other hand, most users don't even know something like this exists, let alone think about using it ... they might even be better off
QUOTE Thanks

Post Reply New Thread Subscribe


« iphoto | question regarding envelopes »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Mac Buyers Guide rs2sensen Switcher Hangout 42 09-10-2007 10:43 PM
Linux to Mac Switchers Guide - Comments? mac57 Switcher Hangout 13 08-16-2007 07:54 AM
Terminal Problem WROC OS X - Apps and Games 5 01-09-2007 04:01 PM
The mysterious Terminal Kokopelli OS X - Operating System 2 03-05-2006 08:23 AM
Terminal Help rs2sensen OS X - Apps and Games 1 04-25-2005 10:52 PM

All times are GMT -4. The time now is 05:42 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?