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

4
votes
1answer
636 views

Terminal PS1 and colors

I am used from Linux to have a colored prompt in my shells and also want to implement that in my OS X Terminal.app. The Terminal reacts differently though. If I use my normal PS1 code the right side ...
54
votes
12answers
45k views

How can I open a Terminal window directly from my current Finder location?

I was wondering if there was any was I could right click inside any instance of a "Finder" window such that I have an option that says "Open Terminal Here". It would be really helpful.
1
vote
0answers
400 views

256 colors on Terminal.app [duplicate]

Possible Duplicate: How do I get vim to work at 256 colors in iTerm? I would like to work on vim (with the xoria256 colorscheme) in the default OSX terminal. However, it seems that ...
5
votes
3answers
2k views

open new terminal tab in the same directory with the active tab

In GNOME Terminal of Ubuntu when you open a new tab the new shell will automatically start you in the current working directory of the active tab shell. E.g. if in the active tab shell I am on ...
3
votes
2answers
11k views

finding the remote IP address used by a mounted SMB share

Using Finder, I have mounted an SMB share which resides on my NAS . When I use the mount command, the NAS is listed with the name it advertises (nas-smb). mbp:~ me$ mount /dev/disk0s2 on / (hfs, ...
17
votes
4answers
4k views

How can I empty the trash from the Terminal?

How can I empty the trash from the Terminal?
12
votes
2answers
6k views

How to enter special characters so that Bash/Terminal understands them?

Let's say a folder has a file called Näyttökuva.png (for those who are interested, it is ”screenshot” in Finnish). This is what happens: $ ls Näyttökuva.png $ ls N* Näyttökuva.png $ ls Nä* ls: Nä*: ...
2
votes
3answers
1k views

Check if a process is running, if not execute it again in Terminal

Is there a way to periodically check if a process is running with (probably with Apple script, or some other shell script) and if not then to execute it in Terminal? I have a PHP script that is needs ...
4
votes
1answer
5k views

How can I determine the compile-time options of PHP?

I'm trying to customize my php install, but I'm not that familiar with compiling programs from scratch. How can I tell determine what compile-time options were used for php? Specifically, I'm trying ...
3
votes
1answer
460 views

Synchronise/Merge MP3 collections without duplication or huge copies

I have one drive containing about 90GB of MP3s which is used at home, it serves three Squeezebox players though the Slimserver software running on one of the desktop Macs. I have a separate firewire ...
1
vote
1answer
615 views

I've managed to break my terminal, (iTerm2(b17), ZSH, OSX10.6.6)

I'm migrating to a shiny new laptop (yay) unfortunately I've manually set up my iTerm to match the old machine, but something is not right (not yay). I'm experiencing using xterm-256color doesn't ...
4
votes
5answers
15k views

What's a good terminal manager for OS X?

The Terminal.app application from OS X is quite good but it lack some functionality that I find really important like: ability to setup SSH profiles for connecting to different servers and ability to ...
4
votes
3answers
1k views

Can I change the color of my Mac OS X Terminal window depending on which server I am ssh-ed to?

I'd like to have the background as black for server 'foo' but have the background be say gray or blue for server 'bar'. I am worried I'll run the wrong command on the wrong ec2 instance because all ...
17
votes
12answers
7k views

What orthodox file manager for OS X could I use?

I'm looking for a graphical file manager fro OS X, for console Midnight Commander is ok. I need two panels, function keys operations and preferably FTP and SCP support. Also, it would be great to be ...
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
7k 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
637 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 ...
21
votes
4answers
29k 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
35k 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
409 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
405 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 ...
9
votes
1answer
12k 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
321 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
475 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
3k 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
579 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
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 ...
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 $"