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

0
votes
1answer
2k views

Git: command not found during Git installation (Mac OSX 10.6)

I am trying to install Git on my Mac (OSX 10.6) following the official Git tutorial. I had no problem until I had to set my username and my email. Every time I tried I got "-bash: git: command not ...
4
votes
1answer
7k views

Is it possible to view passwords through Terminal?

Does anyone know how to view passwords in Terminal? Maybe by accessing the Keychain data or something? I want to be able to view passwords in Terminal with just a series of commands.
2
votes
4answers
163 views

Cursor navigation in Terminal

I quite often find myself needing to move the cursor to the beginning or the end of the line. Is there a keyboard shortcut or other magic trick to move the cursor apart from the arrow keys.
0
votes
7answers
434 views

Is there a utility that allows to open a terminal window with a shortcut?

I often use the Terminal application, especially to commit code to a Git repository, and I don't want to have the window always open. Is there a utility that allows to open a terminal window using a ...
5
votes
3answers
2k views

Opening a terminal window to a specific directory from a bash script

How can I write a bash script in Mac OS X that opens a Terminal window in a specific directory? I'd assume something like: open /Applications/Utilities/Terminal.app But that does nothing (maybe ...
22
votes
8answers
11k views

Can home and end keys be mapped when using Terminal?

The home and end keys on a MacBook Pro can be emulated with fn + left arrow or fn + right arrow. Or when certain settings are changed, with the Command (Apple) key instead of fn. None of these ...
48
votes
9answers
88k views

Why doesn't .bashrc run automatically?

I put some alias commands in my .bashrc file, so that they might be loaded everytime I open a new Terminal window. Yet this doesn't happen. I have to select run script: in the ...
1
vote
2answers
1k views

How to open a new terminal window when using VIM

does someone know how to open a new terminal window when opening a new text with VIM. I would like to have an autarchic window which can be resized and closed while the other windows will stay as and ...
2
votes
2answers
2k views

Why won't terminal let me ssh in to my lan server when Windows/Putty works fine?

I have a development server on my LAN with a static IP address. My DD-WRT flashed router assigns the domain 'server.local' to the static IP of the server. Everything worked fine with my setup. I could ...
1
vote
2answers
292 views

Creating a wget OSX Service

I want to create a service to copy the URL and subsequently download it via wget. How would I go about creating an OSX service to wget arbitrary urls from a browser or system wide. I believe it'd be ...
1
vote
3answers
872 views

Trigger 'Gather Windows' programmatically (or other quick way)

I'm trying to make myself a little script that I can run on the fly that gathers all my open windows onto the main display. I think a good starting place would be to be able to trigger Gather Windows ...
2
votes
1answer
186 views

Porting Linux shell scripts

The command shell$ ls . -R works on Linux but not on OS X. This is because OS X command line options have to come before the arguments,and not just anywhere as in Linux. In particular, this ...
4
votes
4answers
1k views

Listing the terminal commands available for Mac OS

I would like to make more use of the terminal. Is there a command I can use that could list for me all the available command of the Mac OS? I am using Snow Leopard.
6
votes
3answers
8k views

How can I add a path to the PATH environment variable?

I want to add a path to the PATH environment variable? I have tried with export PATH=/mypath:$PATH and it works. But the next time I start the Terminal, my new path is not int the PATH environment ...
6
votes
1answer
2k views

Is there a way to force Mac OS X to close all the applications when restarting?

I sometimes shut down my Mac, and I cannot wait it shuts down because I am urgently requested to do something in another office that would require some hours. In some cases, an application that opens ...
13
votes
3answers
8k views

How can I “say” to another Mac?

I have two Macs in our house (iMac and MacBook Pro). I would like to use the say command-line utility to type something on my MPB and have it speak on the iMac, rather like an intercom system. Plus, ...
81
votes
24answers
80k views

OS X Terminal “must have” utilities

I've just read with pleasure, and learned a lot from these questions : OS X Terminal Tips and Tricks OS X Hidden features and nice tips & tricks OS X Applications you can't live without But I ...
0
votes
1answer
123 views

Any way to make multiple files stop hiding their extension?

How can I make multiple files show their extension at once? Any finder setting and/or terminal command would be nice.
4
votes
1answer
917 views

SSH sessions hang after VPN reconnect

I am a new user to OS X (MacBook Air, 10.6.7) migrating from Ubuntu and extremely happy with it. I use terminator running on X11 for my terminal program, and I'm using SSH: OpenSSH_5.8p1, OpenSSL ...
9
votes
2answers
9k views

Reset your PATH variable

I stuffed up (basically wiped) my PATH variable. Is there any way to reset it to the default? I look at How do I reset the $PATH variable on Mac OS X?, but I find it very confusing. As far as I ...
2
votes
1answer
2k views

Finder freezes when deleting files across a network

I have my MacBook 5,2 hooked up to an Ubuntu 10.10 'server' via ethernet. I've installed netatalk (AFP fileserver) and avahi-daemon (Bonjour for Linux) on the server. I've disallowed Spotlight from ...
1
vote
0answers
104 views

Changing your path variable [duplicate]

Possible Duplicate: Adding gedit to my PATH I'm very new to OSX. I installed Ruby with HomeBrew, and the rubygems installer said that I should add a certain path ...
4
votes
1answer
628 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 ...
47
votes
12answers
40k 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
396 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
10k 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
3answers
4k views

How can I empty the trash from the Terminal?

How can I empty the trash from the Terminal?
12
votes
2answers
5k 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
456 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
604 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
13k 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
6k 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
592 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 ...
20
votes
4answers
27k 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 (http://lincgeek.org/bashpodder/) 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 ...
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 ...
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 ...
33
votes
4answers
32k 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
6k 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
3k 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
962 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 ...
6
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 ...