Terminal (or Terminal.app) is the program included in Mac OS X for running applications and issuing commands using the command line interface. These programs are controlled by typing lines of text, rather than using the mouse or keyboard commands in the usual graphical user interface (GUI).

learn more… | top users | synonyms

2
votes
2answers
5k views

How do I get vim to work at 256 colors in iTerm?

I just got a new iMac, and installed iTerm (0.10). On my last laptop 256 color mode worked fine, but I'm having trouble getting this to work on my new Mac. I copied over all the settings, set $TERM ...
2
votes
1answer
1k views

How to use the built–in VPN Server on Mac OS 10.6.6

I know that Mac OS 10.6.6 has a built in VPN server that one can access through command line. Is there an easier way? Can I make an Automator or AppleScript program that starts and stops the built–in ...
10
votes
2answers
5k views

How can I get the load average (and only the load average) on Mac OS X?

On all linux boxes /proc/loadavg contains the raw load for 1, 5, and 15 minutes. Nothing extra. On OS X machines this file does not exist. Is there a file or a terminal command which will give me the ...
6
votes
5answers
3k views

How to make terminals open side-by-side?

I use terminals a lot, and I frequently open and close them. The problem is that whenever I open a new terminal using ⌘+n it overlaps the current one, and I have to move it out of the way first. ...
12
votes
3answers
2k views

Can I customize ANSI colors in Terminal without extra tools like SIMBL?

I noticed that colors in the Snow Leopard Terminal.app aren't that great (using the Pro theme, but the other themes are worse). There seems to be no easy way to customize the colors, and googling ...
4
votes
2answers
187 views

Terminal issue with export PS1=“”

So I tried to change the output of my terminal prompt but when I try something like /W it just puts the /W not the path. For example export PS1="/W $ "turns my prompt into "/W $"
14
votes
4answers
17k views

How to get the fully resolved path of a symbolic link in Terminal?

I have a tangled mess of python installations on my laptop. I was looking at the executables in /usr/local/bin and they are all symbolic links to ../../../Library...... There's some weird behavior ...
5
votes
4answers
693 views

Newly Installed App (gem) Via Terminal, Path?

I have used sudo gem install to install a few gems. My question is how do I know where the executable was installed, so I can add it to the path in .bash_profile?
4
votes
3answers
2k views

Page down in terminal

How can I "page down" in the terminal?
3
votes
3answers
533 views

Problem with ssh agent

I'm having a problem using ssh agent to make sure I don't have to enter a password each time a certain program uses my id_rsa private key. I did ssh-add -K ~/.ssh/id_rsa and it seemed to add an entry ...
70
votes
16answers
58k views

Is there a Mac OS X Terminal version of the “free” command in Linux systems?

On Linux, I often use the free command to see the current amount of free and used memory in the system. For example: $ free total used free shared buffers cached ...
17
votes
4answers
3k views

Concisely starting Mac OS apps from the command line

I do a fair amount of work in the command line, and I find myself defining a lot of aliases of the form: alias skim='/Applications/Skim.app/Contents/MacOS/Skim' Is there a way to add magic such ...
5
votes
4answers
3k views

Alternatives to command line unzip?

I've found that the command line unzip tool doesn't gracefully handle some of the files I'm unzipping: it makes a bunch of junk directories, and creates files whose resource forks aren't found. ...
2
votes
2answers
300 views

Changing yahoo messanger's status using mac terminal

Does anybody know how I can change my yahoo messenger's status using a command in mac terminal !? Or anything except the regular way to change it !? thanx
12
votes
3answers
5k views

Log out other user w/o first switching to that user

My wife use separate accounts and quick user switching on a MBP running 10.6. Sometimes I want to log her out to free up some RAM, but I'd like to avoid logging in as her, logging out, then logging ...
7
votes
3answers
2k views

Why don't my arrow keys work in vim under iTerm?

They work just fine if I use Terminal and start a vim session, but under iTerm I have to resort to using H-J-K-L to do left-up-down-right movement. In both Terminal and iTerm TERM=xterm-color. My ...
4
votes
2answers
1k views

ctrl-o behavior in Terminal.app

I often use the ctrl-o shortcut in bash (from "Learning the bash Shell"): [G]o back to [a command in history] and press CTRL-O instead of RETURN. This will execute the command and bring up the ...
2
votes
2answers
637 views

Changing the color of the path in Terminal.app

I would like the CasebashMac:bfgenv chris$ part of the following line to appear in a different color in my terminal. CasebashMac:bfgenv chris$ python
8
votes
5answers
2k views

Open new terminal window in current space, regardless of other open terminals in other spaces

When using Spaces on Mac OS X trying to open a new terminal instance results in focus being pulled to whatever space has the most recently accessed terminal window. With Finder I can click on the ...
2
votes
2answers
953 views

Command Line method to backup using two Time Machine disks

Does anyone know of a command line method to select the active Time Machine disk? I would like to alternate between two backup disks for redundancy. I would like this to be automated, presumably via ...
5
votes
4answers
2k views

Automatically quit Terminal when typing exit

Scenario I use terminal to SSH a lot, however would like the Terminal App to quit when the last Tab closes using exit. I already have the terminal window itself set to close on successful exit, ...
5
votes
3answers
742 views

When is the locate database updated?

I use the locate command in Terminal regularly. When does its database get updated? On other systems, I could run updatedb as root to force it to update. Note: I know using mdfind to search with ...
1
vote
1answer
1k views

Where is the terminal application on the filesystem?

I want to be able to launch a Terminal window using JiTouch, which allows me to make a gesture open a file, so I want to know the location of the Terminal app so that I can open it.
15
votes
7answers
7k views

Start/stop internet sharing from a script?

Is there a way to start/stop internet sharing from the command line or maybe an apple script? The thing is that I move around my laptop between home and work. At one place I get wireless internet ...
4
votes
3answers
1k views

Is it possible to hide the scrollbar in Terminal?

In the 10.4 or maybe 10.5 versions of Terminal.app it was possible to hide the scrollbar completely. Does anyone know if this is still possible in the 10.6 version of Terminal.app?
5
votes
2answers
1k views

Decompressing .sit file

I have recently downloaded a .sit archive file. Is there a way to decompress it at the command line?
3
votes
2answers
800 views

Installing mc (midnight commander) without root access?

How do I do that? The normal installers (with .pkg files) ask for a root password. It is possible to run normal mac software without root access, but how do I run and install this shell software?
7
votes
6answers
2k views

OS X Terminal equivalent of Ctrl+Left / Ctrl+Right

In Windows and Linux I could always hit ctrl+← or ctrl+→ to skip a word to the left or right in the terminal. In text editors it seems that ⌥+←/→ works, but no dice ...
5
votes
3answers
7k views

Where are bash profile startup files?

I know that you can have a .profile or .bash file in your home folder to customise Mac OS X 10.6.4 Terminal bash startup. Every time I start up Terminal, there is a line that tells me "You've got ...
44
votes
4answers
32k views

Are my permissions for /usr/local/ correct?

I’m using HomeBrew for my port needs (seems a bit “cleaner” than MacPorts). I can install without sudoing (which is great), but the man linking step seems to require it (/usr/local/share/man/man3 ...
2
votes
2answers
403 views

Equivalent to alt-. in terminal

I am curious as to whether there is an equivalent to the Alt-. command on Mac. On my computer it inserts the following character: ≥, instead of showing the preceding lines final parameter.
2
votes
3answers
168 views

Tools for making Finder easier to use?

I need the following tools for Finder. Launch a Terminal from Finder. Copy a path information from Finder. Make a new file from Finder. (not a new directory) Any hints?
5
votes
4answers
2k views

Is there a way to remotely restart Finder (or wake-up the desktop) from SSH?

Over the last few months I've found my MacBook Pro is getting increasingly unwilling to wake-up if it's gone to sleep of it's own accord - not when I put it to sleep deliberately, but when the machine ...
2
votes
2answers
1k views

How to skip system hotkeys when using terminal emacs?

I like to run GNU emacs in a Terminal window under Mac OS X 10.6.4. Unfortunately, whenever I hit a hot key for emacs I often "trip" on an OS X system hot key. For instance, when I hit Ctrl + space ...
7
votes
5answers
2k views

How can I Open Multiple Customized Terminal Shells?

How can I customized Terminal so that when I open the application it opens several shell tabs? If possible I would like to also have it run a different environment script for each tab. Example: Run ...
9
votes
2answers
29k views

How can I mount an SMB share from the command line?

I would like to mount an SMB network share from the command line (terminal); how would I go about that? I am using Mac OS X 10.6.4.
5
votes
2answers
3k views

Is there a usable iOS4 Terminal App?

Mobile Terminal 426 appears to be the only non-crashing iOS4 Terminal App. Unfortunately it's missing all of its convenience features, like gestures. Are there alternatives?
3
votes
4answers
494 views

Opening a new Terminal window when it's running on another desktop

I open a lot of terminal windows. I also make use good use of tabs & multiple desktops. Normally I launch Terminal.app with Spotlight. But if Terminal is already running on another desktop, it ...
29
votes
15answers
92k views

Is there a way to start the Terminal with a keyboard short cut?

Sort of like the Windows+R command in the windows world? That actually just lets you run a command but you get the idea.
6
votes
1answer
3k views

Turn on Back To My Mac via a Script or Command Line

The VPN software I use for work (IPSecuritas) requires me to turn off Back To My Mac to start it's connection, so I frequently turn off Back To My Mac in order to use my VPN connection (the program ...
164
votes
7answers
84k views

How can I configure Mac Terminal to have color ls output?

How can I configure Mac Terminal to have color ls output? I am using MacOS 10.5