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

1
vote
2answers
1k views

Weird keybindings in Mac OS X Terminal.app

I am trying to use the key "shift-tab" in emacs running purely under Terminal.app, but got an error saying there is no keybinding for "M-[ z" (where M is the meta key, set to be the option key under ...
6
votes
7answers
8k views

Is there a beginners guide to Unix from the OS X point of view?

I'm hoping to build on my embarrassingly-limited knowledge of the command line, and I know there are a ton of great resources out there. I'm wondering if there are any books or other resources that ...
2
votes
3answers
649 views

Titling tabs in Terminal

I'd like to be able to set the titles on my tabs to short, easy-to-remember things, since I often have a few open. You can use Command-I and set the Title that way, but OSX appends the name of the ...
22
votes
4answers
30k views

Can I make my Mac OS X Terminal color items according to syntax, like the Ubuntu terminal?

I want it to have all the colors for syntax folders, etc... How can I do that?
2
votes
1answer
1k views

Why won't wget work with cron?

I've been using the bashpodder script recently, and while the script works beautifully when I use it in the command line, the crontab I created for it doesn't work at all. It fails when it has to use ...
2
votes
4answers
3k views

How to correctly pipe output into “say” in terminal

I realized that the say command can be great when combined with another command/program because it can read you the output. I tried to pipe the output from leave to say by typing the following in ...
5
votes
6answers
3k views

Why use the terminal in daily non-programming life

Disclaimer: I'm a Windows boy awaiting his first mac. I never bothered learning/using command-line interfaces. I've been looking at the Terminal Tips and Tricks topic and I don't see how any of those ...
34
votes
4answers
36k views

How can I open a text file with TextWrangler from the Terminal (command line)?

Often when I work in the Terminal (the command line) I need to edit some text files. I prefer to edit text files using TextWrangler. How can I open a text file with TextWrangler from the Terminal? I ...
4
votes
2answers
1k views

How can i have makefile/shell script call /Applications/application.app?

OS Mac OS X 10.6.6 emacs 23.2.1 I'm currently trying to install magit on carbon emacs using their proposed make solution. I'm an almost complete makefile newby so I might be on the complete wrong ...
15
votes
2answers
7k views

How to I go from .flac to .mp3 using LAME & FLAC using the Terminal alone?

This is my first question, so please go easy on me. 'Tis a pleasure to be here. Hopefully somebody can help me out. For a long time I've been using a relative clunky technique which involves Audacity ...
9
votes
4answers
4k views

How to jump to a location using mouse on iTerm/terminal?

I work on a terminal most of the time. Is there an application / plugin over iTerm or any other terminal like application using which I can control the cursor location of my terminal using a mouse ? ...
2
votes
2answers
2k views

How do I undo overwriting my /usr/local/bin folder?

I think i overwrote my /usr/local/bin folder - any way to undo this? I was installing MacVim and did the following command: sudo mv mvim /usr/local/bin Now instead of copying mvim into my ...
2
votes
2answers
1k views

How to get MacVim to autoload ~/.vim/syntax

This might be something quirky about MacVim, so I'll ask here. I put a syntax file in ~/.vim/syntax, but it doesn't load. I have syntax on in my .vimrc. When I open the editor, :scriptnames doesn't ...
7
votes
1answer
5k views

Move to Start of Line in Terminal.app

Is there a quick key combo that will allow me after typing some stuff in the OSX terminal to move back to the beginning of that line? I have tried different things, and was wondering if there is a ...
4
votes
2answers
16k views

How do I convert a suitcase font?

I have a font set - Type: Font Suitcase I am sure I have used a terminal command to convert it to a TTF or OTF. I don't really want to pay for software to do so. What is the best way of converting ...
3
votes
2answers
2k views

What control character do I send to the terminal to make it delete a full word at a time?

I recently discovered that sending \033[5D and \033[5C sends the character to move a full word at a time, making mac os x terminal almost as awesome as the default ubuntu and debian terminals. So ...
3
votes
2answers
1k views

What are the differences between /usr/bin/login and /usr/bin/bash?

Terminal.app has a setting to select with shell it uses, and the default setting is "Default login shell (/usr/bin/login)". What are the differences between /usr/bin/login and /usr/bin/bash?
2
votes
3answers
411 views

Is there any way to see what OS X is doing when it's booting up when no chime is played? [duplicate]

Possible Duplicate: How can I see the system status during boot? I have had the hard drive in my iMac replaced and now I'm trying to restore it from my TimeMachine back up. I thought the ...
4
votes
3answers
410 views

Terminal window as its own app

During my work day as a software developer, I frequently have multiple Terminal windows open, each dedicated to a specific purpose and directory. I switch between them on a regular basis. I'd like to ...
7
votes
3answers
9k views

Change Terminal.app's Default Shell to BASH

How can I change Terminal.app's default shell to BASH? For some reason, my friend's Mac (10.6.6) defaults to using TCSH instead of BASH. The obvious remedy is to choose /bin/bash as the command to ...
10
votes
1answer
13k views

Bash or Zsh, what's the difference, why use one or the other?

So, the question pretty much says it all. I'm on Snow Leopard, and I do a lot of web development, particularly in Rails 3 which makes heavy use of the console. I've seen some notable bloggers etc. ...
5
votes
1answer
324 views

How can I open a new customized (color, font, etc.) Terminal window from the command line?

I'd like to open a new Terminal window in Terminal.app. I'd also like to be able to customize this window (color, text, etc.), based on one of my pre-defined defaults, or based on something else not ...
2
votes
2answers
477 views

How can I match the text color and background color in Terminal?

I use emacs/org-mode which uses color for hiding some of the headlines as is shown here. This works well with Aquamcas, but when I run emacs in text mode, I still see the stars in the headline as I ...
3
votes
2answers
2k views

Why is Wine X11 not creating a window on my Mac?

I have the wine software on my mac and I have a little problem here: I try running my windows executable and I get this error in the console: Application tried to create a window, but no driver ...
3
votes
2answers
4k views

How to make iPhoto library back into bundle

I recently recovered from a disk failure and while most of my files are ok, I'm having trouble with my iPhoto library. While it appears that the data fro the iPhoto library is intact in the recovered ...
1
vote
1answer
1k views

Mac OS X Terminal [Use option as meta key] overrides backslash in spanish keyboard

I already posted this question in stackoverflow: http://stackoverflow.com/questions/4811282/mac-os-x-terminal-use-option-as-meta-key-overrides-backslash-in-spanish-keyboar but I was informed there ...
12
votes
7answers
8k views

Is there any multiple terminal emulator for Mac OS?

I love the command line and I would like to see an app like Terminator (for Linux) in my MacOs: It seems there are ports of that app for Mac available using Fink or Ports. But I found it's a hell ...
6
votes
1answer
8k views

What command combo at terminal will output a list of directories with human-readable sizes?

I'd like to open Terminal.app and enter a command like: my-macbook-pro:~ my-username$ ls -lh Instead of seeing the size of the folders in bytes that are in my current working directory, I'd like to ...
2
votes
3answers
592 views

Editing iPhoto-specific metadata

Perpetua:2011-01-16 ashley$ mdls IMAG0107.jpg ... kMDItemComment = "Cat with is tongue out." So, here's my question. xattr can be used to modify some ...
10
votes
4answers
13k views

How do split panes in Terminal work?

I tried to open a split pane to run another command but instead it displays the same in both panes and I can only interact with one of them. I thought it would split the view so I could use the two ...
2
votes
2answers
6k 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
2k 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 ...
12
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
4k 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
190 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 $"
16
votes
4answers
19k 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
746 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
542 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 ...
77
votes
16answers
68k 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 ...
18
votes
4answers
4k 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
309 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
13
votes
3answers
7k 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 ...
8
votes
3answers
3k 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 ...
5
votes
2answers
2k views

ctrl-o behavior in Terminal.app

I often use the ⌃+O shortcut in bash (from "Learning the bash Shell"): [G]o back to [a command in history] and press ⌃+O instead of ↩. This will execute the command and bring up the next command ...
2
votes
2answers
703 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
3k 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
1k 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 ...