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
2answers
9k views

Can I create a Desktop Shortcut/Alias to a Folder from the Terminal?

I'd like to create a desktop shortcut to a specific folder, buried deep within ~/Library/. Library is Hidden by default in Lion, and I'd like to keep it that way, for a variety of reasons. Is there a ...
0
votes
3answers
476 views

Unremovable directory

I have a problem with a seemingly unremovable directory/bundle. I moved Spotify.app from /Applications to the Trash and later tried to empty the Trash. The empty trash progress bar shows up but then ...
4
votes
1answer
731 views

SSH, passphrases, keychains, Could not open a connection to your authentication agent

I will be very surprised if anyone has the answer to this. I have googled for a long time but no luck. As an iOS developer who will shortly be welcoming a new team member I want to set up a ...
2
votes
2answers
7k views

ls output does not have color while SSHing to another machine with iTerm2, but does with Terminal

Just as the title says, when I ssh to my work Fedora server with iTerm2 I don't get color ls output. When I ssh to the same server with OS X's default Terminal app, ls color output works just fine. ...
1
vote
4answers
2k views

Executables in /bin and /usr/bin are not found in path

Somehow I can’t execute files in /bin or /usr/bin without providing the full path. This isn’t happening when running from Terminal, but, for example, iTerm can’t run bash (only /bin/bash), OnyX ...
1
vote
4answers
22k views

Where do I find my user folder in the OS X folder hierarchy?

In Terminal, how do I go from Macintosh HD to places such as johnsmith that contains Downloads, Desktop etc. In a Finder window, it seems they are independent of each other. From Macintosh HD, I see ...
0
votes
2answers
955 views

Why does running afconvert result in error -43

I am trying to use afconvert to convert a .mp3 to .m4r. I am entering the following: afconvert -f m4af -d aac -o input.mp3 tone.m4r However, this gives me an error: Error: Couldn't open input file ...
2
votes
2answers
894 views

On OS X Lion 10.7.4 in Terminal.app I cannot type `C-M-@` or `C-M-%`, why?

On my MacBook Pro running OS X Lion 10.7.4, there seems to be a keyboard issue. I first noticed this problem when I tried to use the default keybinding to execute mark-sexp and query-replace-regexp in ...
0
votes
1answer
897 views

Installing TextWrangler command line tools into /usr/bin

I just installed the text wrangler command line tools and they are placed into /usr/local/bin by default. On Lion this directory appears to be a root only directory, and I don't want to have to run ...
7
votes
2answers
2k views

What is the difference between .bash_profile and .bashrc?

To make an alias for the Terminal in OS X, you can either put the aliases in .bash_profile or .bashrc. What is the difference between the two and why would I choose to put aliases in one and not the ...
1
vote
1answer
571 views

How do I make a shortcut command in terminal?

I want to have ll as a shortcut for ls -ll. How can I add it to my Termianl application? I use iTerm as my primary Terminal application. I wish there was a single line command solution for it.
0
votes
3answers
7k views

bash: brew: command not found [closed]

I am new to mac and was following a video and typed export PATH="$HOME/opt/git/bin:$PATH" I believe this messed up my path and I am not able to install MySQL now. When I tried to install homebrew I ...
1
vote
2answers
1k views

iTerm2 terminals close immediately with “argpath=login error=No such file or directory”

Whenever I try to open a new terminal window in iTerm, it closes right away after displaying this: ## exec failed ## argpath=login error=No such file or directory Does anyone know what is causing ...
2
votes
2answers
2k views

How can I use Automator to generate a kerberos ticket using KINIT?

I need to be able to generate a kerberos ticket for my MacBook Pro each time the machine restarts. I can manually run KINIT with my credentials to generate a ticket. What is the best way to automate ...
3
votes
2answers
2k views

How to make bash (Terminal.app) remember history of previous sessions?

In my computer at work, my bash shell remembers history from previous sessions, even if I just opened a new terminal. In my computer at home, this doesn't happen. I have the same OS 10.6.8 in both ...
4
votes
2answers
225 views

Why can't this process terminate?

Just recently I ran into an issue where my network program couldn't bind to a port because it was already in use. I opened the activity monitor and realized it (named "server") was already running ...
2
votes
1answer
504 views

`open http://foo.com` and specify the chrome user which is to be used

Using the open command from terminal I would like to be able to specify the chrome the specific chrome user to open the url with? Local Chrome users are outlined here. Essentially I have a local ...
4
votes
0answers
3k views

How do I remove the hostname from the bash prompt in Terminal? [duplicate]

My prompt in Terminal currently looks like: Dzulhelmis-MacBook-Pro:~ myusername$ I want it to be as short as possible, maybe at least no hostname there. How do I change my bash prompt?
5
votes
1answer
2k views

How can I tell which volume the operating system is on?

I'll admit that I am kind of rolling multiple questions in to one here so please forgive me and try not to knock me for it. I am new to Mac but I'm trying to port one of my Java applications to OS X. ...
2
votes
1answer
633 views

How can you get an app running in Terminal to scroll properly (as on Ubuntu)?

Example: In Terminal, I fire up elinks and browser to a web page. I try to use the trackpad scroll gesture and the page up and page down to scroll up and down the web page that elinks is showing me. ...
2
votes
2answers
1k views

Hostname changes in the terminal when connecting to some wifi networks

When I connect to some wifi networks my computer hostname changes in the terminal - is this normal? Is there a way I can prevent this from happening?
1
vote
1answer
495 views

F9 key with BYOBU

I have installed BYOBU via Brew and all the F keys work except for the F9 key which happens to be the key used to get to the menu. I have worked around this by editing the ~/.byobu/status files ...
9
votes
1answer
3k views

What is the difference between the sudo and su command?

What is the difference between the sudo and su command? Why does OS X handle these different than Linux?
4
votes
3answers
2k views

How to make Mac Terminal restore working directories when restarting

I use the Mac Terminal with a hand full of tabs each assigned to a different working directory. I have configured it to open new windows with the same working directory. Nevertheless, when I am ...
7
votes
4answers
17k views

How do I execute a bash script that requires root privileges?

I have this script lines from my ISP: sudo bash echo "plugin L2TP.ppp">>/etc/ppp/options echo "l2tpnoipsec">>/etc/ppp/options It works if I paste line by line into Terminal. I want to ...
4
votes
5answers
170 views

Learn about basic OS X applications

I have been a Windows user and have recently started using OS X (I have Snow Leopard on my machine). I wanted to learn about the basic applications in OS X (e.g. Terminal) and other commonly or some ...
0
votes
1answer
76 views

Text unselected when clicking to activate Terminal window (OS X Lion)

I've noticed this behavior in Lion's Terminal.app: Let's say I have some text selected in a non-active terminal window. Meaning, another window is active - it could be another terminal window, or ...
3
votes
1answer
806 views

-bash: Applications/mvim: /bin/sh: bad interpreter: Operation not permitted

I am getting a weird error with the mvim script that is supposed to start the MacVim interface. See below for the issue. /bin/sh is just fine, mvim was chmod +x'd, other /bin/sh scripts run fine... ...
15
votes
2answers
10k views

Amending PATH so that /usr/local/bin is ahead of /usr/bin

I'm trying to install brew but get the following warning: Warning: /usr/bin occurs before /usr/local/bin This means that system-provided programs will be used instead of those provided by Homebrew. ...
1
vote
3answers
1k views

Create a file which when opens and writes a line in Terminal

Is there any way to create a file which, when clicked, opens up Terminal and types in and executes a specified line? (eg: say hello world)
1
vote
0answers
217 views

Midnight Commander installed via Ports to support scp

I have installed Midnight Commander via Ports, but I am unable to connect to a remote computer to copy files as: cd #sh:user@server.net I keep getting: "Cannot CHDIR to #sh:user@server.net". ...
0
votes
1answer
470 views

Allow the Terminal.app to pass command key based keystrokes to terminal programs

I want to allow programs running in the terminal the ability to interpret the keyboard short cut Cmd + S I have already Remapped the Terminals' default binding of Cmd + S to Ctrl + S via the ...
2
votes
1answer
1k views

Bind <Cmd-S> in Vim

Is it possible to map to save in vim in a standard terminal? I know how to set it in my vimrc but am not sure if it is possible to pass it from terminal to vim instead of attempting to save the ...
2
votes
2answers
217 views

Where does terminal look for its commands?

I've just installed pypy, and I've made a symlink from /pypy to my pypy installation. How can I turn this into a command, so that I can just type pypy myfile.py instead of having to type /pypy ...
6
votes
3answers
1k views

Open Terminal.app with directory from a given URL?

With the URL <file:///Library/Fonts> (for example in a note in NV) I can open the finder with the given location. Can I do something similar for the terminal? That is, if I write for example ...
22
votes
3answers
9k views

iTerm as a slide-out terminal from the top of the screen

I have installed iTerm2 and was hoping I'd have something like guake (Yes I just switched from Ubuntu). I mapped the hotkey to a button of my choice and it works fine, but I miss the ...
3
votes
1answer
6k views

How to ssh to remote web server without using a password

I'm new to OS X. As per title, I'm having trouble connecting to my web server through SSH. My server accepts keys and we don't use passwords. I've come from windows, and on windows I used PuTTY to ...
2
votes
1answer
122 views

Mercurial command line client not found

I have the latest version of Mercurial installed on a fully patched Lion and the Mercurial client cannot be accessed from the terminal ("command not found"). The command line client is installed in ...
1
vote
0answers
374 views

How to include the failing username on saslauthd failure in a log file in Lion?

How can the verbosity of logging be increased for SASL authentication failures? To be more precise, to include the failing user name in a log file on Mac OS X 10.7 (Lion) Server? Linux hosts have ...
2
votes
3answers
241 views

What tools exist to recover a file I clobbered using cpp in terminal?

I accidentally typed cpp Scriptname.py DestinationDirectory, intending to copy the Python script into the folder. I realized afterward that I should have used cp, but now my Python script is ...
1
vote
1answer
315 views

Switching terminal styles in iTerm 2

Recently I've been trying to become more efficient at the command line, and stumbled upon iTerm 2 a couple days ago. One feature of iTerm 2 is that windows can appear from the top of the screen, so ...
7
votes
2answers
432 views

Is there anyway to have a badge icon appear on the Terminal icon when a command completes?

I currently have an Applescript app that opens Terminal windows and completes commands. I would like a badge icon to appear on the Terminal icon when a command completes. I need this because I often ...
0
votes
1answer
2k views

jDownloader-like command line tool or lightweight GUI App?

I use jDownloader which works great, but takes a lot of time to load and surprisingly takes a lot of time also to start and stop downloads. I'd like to have a similar functionality* but with a ...
1
vote
1answer
234 views

Simple File Transfer Logs

This may be a general Unix question rather than a OS X question. I want to log general file transfers on OS X, whether it be from and to the same system or to another system, but to keep it simple ...
8
votes
2answers
9k views

How to control Bluetooth wireless radio from the command line?

This question is almost the same as my previous question, but with one major difference; I want to turn on/off Bluetooth from the command line (bash or similar), NOT from AppleScript - the answers for ...
1
vote
2answers
236 views

Change Snow Leopard Login Wallpaper w/ Terminal

I know this is possible as I did it once before. How do you set the login background wallpaper to something else using terminal?
0
votes
1answer
50 views

cmd + [num] doesn't change screen to go to app in fullscreen mode

Consider the situation where I have two spaces screens. From the second screen I open a terminal and make it fullscreen. By doing so I expected cmd+3 to take me to the terminal app, but it doesn't ...
1
vote
5answers
4k views

How do I fix Terminal.app when my shell has been set to an illegal value?

Today I was mucking about trying to uninstall macports when I noticed an error being thrown up whenever I used sudo. I killed Terminal and tried to restart it which failed with the error message ...
5
votes
1answer
4k views

How to control AirPort wireless radio from the command line?

I want to know how to control (specifically turn off) the networking (specifically AirPort - I want to turn off the radio) from the command line (specifically from bash in Terminal.app, being run by ...
7
votes
1answer
606 views

Access Airport signal data

I want to be able to write the current list of Wifi networks in airport, and their respective strengths, to a file. I would like to use some sort of bash script to do this, but I am unsure how to ...