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

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
766 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
8k 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
824 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 ...
48
votes
4answers
36k 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
428 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
170 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
2k 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 ⌃ + space in ...
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 ...
10
votes
3answers
33k 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
561 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 ...
34
votes
15answers
109k 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 ...
174
votes
7answers
92k 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