Terminal

senne

Registered
Could anyone give me some examples for what you can do with the Terminal? I only did that star wars thing. (love it by the way)



senne.
 
Boy, it's more like "What can't you do?"
Lots of handy 3rd-party OS X utilities just put a GUI on Terminal commands - MacJanitor, XOptimize, BrickHouse, etc.
Want to see all recent incoming and outgoing network traffic for your machine? Open a Terminal window and type:
tcpdump -en0
(That's the command if you have an Ethernet connection, BTW.)
There are web browsers, newsreaders, email clients, all sorts of stuff that can be run from Terminal windows. It is too kewl!
:D
 
top - Shows you what each active process in your computer is doing. top -u sorts it by CPU usage.

If a program locked up and you can't force quit it, go into terminal, find out what it's PID is by typing ps aux, then type kill ### (where ### is the nuber of that procecss) (carefull tho, don't go bonkers with this - only do it to programs that locked up).

You can also read mail with PINE (altho you might have to download PINE to do that as I don't recall if it's included with OSX), you can write text files and web pages using programs such as pico (my personal favorite), vi, emacs, etc.

You can remove trash items that refuse to empy from the trash can (forgot the command but someone posted it somewhere on macosx.com)

There's an entire world in the terminal, the question is - how far do you want to go? Ok, why do I all of a sudden feel like Morpheus offering a choice of pills? LOL :p

You may want to pick up a book on either Linux/Unix or OSX (or all) - I just don't know which one would be good for a beginner for command line stuff tho... Anyone else know anything like that?

Most books I've run accross want to show you things on Gnome/KDE or specific to a distro, anything more generic out there?

Welcome to the REAL world! ;)
 
Open the terminal, type 'emacs'. Press shift-esc, then type 'x' followed by 'doctor'.

The doctor will now see you!
 
One word: Perl.

In a few words:

1. goto terminal

2. type pico

3. type

#!/usr/bin/perl -w
print ("Hello, world!\n");

4. cntrl X and save the file as hello.pl

5. type perl hello.pl

6. Rejoice at having a machine that combines the beauty of Aqua with the power of Unix with a dash of kick-butt Perl tossed in to astound your friends!<br>
 
How 'bout some simple fun stuff for senne?

%banner I love penut butter sangwiches

%date
(show current date and time)

%cal
(show the current month)

%cal 2002
(show the year. If you like to plan ahead)

%man thecommand
(use this program to display the on-line manual pages for a particular command)
Not particularly fun, but indispensable.
 
klink: Don't confuse senne with the %s at the front of your command. :p You actually only type "date" or "cal", so only write that here. :p

With that said, I love these two commands:

Type bill gates in your Terminal and see what your computer says. :D (If you choose affirmatively, notice the second pun with a prominent computer guy.)

Type What's my skill at chess? Your comp has a built-in joke! ;)
 
Noted sim. :)

senne, another bit of Terminal advice: Don't poke your finger in your eye. It will hurt. :D


cheers,
[shmek:~] Klink%
 
Heh. Yeah. It's called the Internet.

Not trying to offend -- there are tons of Unix pages out there. Apple uses tcsh by default, so if you find commands that say something like "in bash you do this" it might not work (depending on the command).

Maybe I'll poke around and find some good newbie Unix sites, if I have time...
 
Once you get comfortable with moving around directories (That would be cd which stands for change directory) and then looking at what is inside (the command is ls which stands for list I beleive) you may be ready to download new programs to use in the terminal. You might try www.apple.com>Mac OS X>downloads>UNIX and find Wcalc which does really cool command line calculator functions and installs with a package so it gets you used to the unix thing without too much work. Then if you think you'd like to get your hands deeper into the world of unix software you could download a program called fink. It should also be in the UNIX downloads of the apple site and just make sure to follow all the directions and you will have a lot more stuff to do in Terminal :) you can find dictionaries and useful stuff like that.
 
Back
Top