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

2
votes
1answer
334 views

Homebrew: Easy way to add 'gnubin' to path for multiple packages?

I would like to use Homebrew to install GNU versions of several utilities, and use the GNU versions by default with their usual names. From the output of brew install gnu-tar and by reading How to ...
2
votes
1answer
114 views

Make terminal transparent to show wallpaper

The opacity option of the Gnome terminal in Ubuntu had a neat behavior, which showed the desktop wallpaper instead of the other windows behind it. Has anyone been able to make Mac Terminal, or an ...
2
votes
1answer
513 views

How to change fonts picked by Terminal.app to display languages other than English?

This is definitely and advanced topic and possibly needs a hack that I am willing to do. I edit Arabic files quite a lot. Arabic characters displayed by Terminal.app are not playing nice at all. To ...
2
votes
1answer
190 views

How to make red distinguishable from grey in Terminal profile “Pro”

The default for Terminal.app profile Pro is a black background with ANSI colors. Since the background is black the preferred color setting for Vim is background=dark. In this combination red text ...
2
votes
1answer
509 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 ...
1
vote
1answer
54 views

How to use OS X's terminal to ping an IP using the latency as a stopping condition for a loop?

What I'd like to do is to ping an IP while the latency is above an specific value. I think an example will help: Let's suppose I have the following result to the "ping *IP here*" command: PING *IP ...
1
vote
1answer
38 views

How to parse output from a command in OS X Automator?

I have the following code in Automator but it fails to load the variable with the output from the command. for f in "$@" do output = hdiutil verify "$f" echo "$output" done I want to parse ...
1
vote
1answer
23 views

Terminal: I press “@” or “#” and terminal write “?”

I have this problem only on the terminal. When I would like to write these symbol, for example "@" or "#" the Terminal write this "?" and a do a sound bell. screenshot: I don't understand why. ...
1
vote
1answer
93 views

How to sign in Messages app in Mac Mavericks from terminal

Is it possible to sign in Message app from terminal ? When I search for it, I only see on how to send imessage from terminal. Thus, how can I do that ?
1
vote
1answer
27 views

Concatenating date and cycle count to file on startup

I have the following code from here to find the cycle count of the battery on my computer: system_profiler SPPowerDataType | grep "Cycle Count" | awk '{print $3}' I will enclose it in a simple app ...
1
vote
1answer
70 views

Switching between proxy and no-proxy config in .bash_profile

I have configured proxy settings (on mavericks) within $HOME/.bash_profile (purpose: to make npm, rvm, git use the corporate proxy) and the configs are as follows: git config --global http.proxy ...
1
vote
1answer
59 views

Change default ssh:// behavior

Currently, the protocol handler ssh:// opens the link in a new Terminal.app window. I'd like to default it so it opens it in a new tab instead. How can I change this behavior? Backstory: I use Alfred ...
1
vote
1answer
118 views

Disable line wrapping and horizontal scrolling for output in iTerm

I want to disable the interactive line wrapping that iterm does in my terminal application. I can run $ python -c 'print "\x1b[?7l"' to disable line wrapping on output, so long lines like $ ...
1
vote
1answer
198 views

Enable right click Magic Mouse in Terminal

I am trying to enable the right click on a Magic Mouse connected to an iMac running 10.6.8, but due to parental controls, I am unable to gain access to the Mouse System Preferences. I know you can ...
1
vote
1answer
64 views

How to disable middle click paste Mavericks Terminal?

I have looked all over the Net and can't find a way to disable middle-click paste in the Terminal application in Mavericks? I want it scroll but not paste. Anybody know how to fix this? I'd sure ...
1
vote
1answer
74 views

Using the builtin dialog under OSX to unlock an SSH key

OSX has a builtin passphrase dialog for ssh-agent, so that on the first use of a key, it'll get cached. The problem is -- I can't find a way to spawn that dialog by just adding ssh-add. ssh-add will ...
1
vote
1answer
153 views

Error Installing Jekyll on Mac

I'm trying to install Jekyll, a simple, blog-aware, static site generator. When I attempted to run the terminal command gem install jekyll, I got this error: I then tried to update my RubyGems, ...
1
vote
1answer
38 views

Resource is busy, but lsof doesn't think so

Occasionally, I get file (typically after they are edited by Microsoft Word) that I can not delete: > rm -rf foo.docx rm: M_AI_SO.docx: Resource busy However, lsof doesn't report anything, even ...
1
vote
1answer
26 views

How to change default LC_TYPE?

My OS X (Mavericks) seems to be setting LC_CTYPE environmental variable to UTF-8 by default. How can I change the default? I need LC_CTYPE to be en_US.UTF-8. There's a catch: I don't want to ...
1
vote
1answer
49 views

How do I tell AppleScript to read the contents of the “Network” Finder window?

I'd like to be able to get the contents of Finder's "Network" folder (Menubar-->Go-->Network). The folder contents here is different than /Network or /net. The overall goal is to grep the names in ...
1
vote
1answer
110 views

Why are my Terminal.app colors different from iTerm?

I have set the ANSI colors of both terminals to be the same (see 1st screenshot), but the colors for Terminal.app are really bright, and almost unreadable, and not like the colors I set at all. It's ...
1
vote
1answer
96 views

How to create an applescript for multiple dd terminal commands in sequence (for multiple USB Drives duplication)

I need to create an apple script to perform DD Commands in sequence, to replicate the same .img file to multiple USB flash drives The context: the computer is connected to a powered USB hub with 7 ...
1
vote
1answer
253 views

In Mavericks, is it possible to use Enhanced Dictation from the command line?

A use case is: I have a recording in AIFF or MP3 format, and I'd like a text version of it as Enhanced Dictation would have recognized it if I had spoken it myself.
1
vote
1answer
72 views

Splitting LexisNexis text file

For my research I have a number of text (txt or doc) files. These have a large quantity of newspaper clippings in them. I'd like to split these text files. Each clipping starts with document X ...
1
vote
1answer
131 views

Can I map a character to a different key?

I am using a British IBM model M keyboard with Mountain Lion. I have selected the "British - PC" input source and it is working well, except for one key: the pipe. If you consider what is printed on ...
1
vote
1answer
79 views

Are there any Terminal commands that would be interesting for a young child?

I am beginning to teach my 4-year-old daughter that she can do more on a computer than watch cartoons on Netflix. I want her to know that she can type things on the keyboard and make the computer do ...
1
vote
1answer
128 views

How to export files from hard drive in Snow Leopard CD?

I have a macbook 5,1 that won't startup. I'm going to reinstall Snow Leopard with the CD, but is there a way to export some of the files that are in it? I can't seem to gain access to them through the ...
1
vote
1answer
180 views

set remote sharing prefs in terminal

I am admin for department and I want to batch change the "show remote management status in menu bar" so that I don't have to log in to each machine and set it. I have ARD so I can run a terminal ...
1
vote
1answer
242 views

Open Terminal App Without Opening A Window

Is it possible to change the default settings in the Terminal App (OS X 10.7.5) such that when the app is launched, no windows are opened by default? As a shot in the dark, I tried closing all ...
1
vote
1answer
710 views

“Missing Quartz Composition” displayed on TotalTerminal

I started using TotalTermianl on Mountain Lion. But the background have Missing Quartz Composition error. I have found some people had the same as mine here Do anyone know how to fix it??
1
vote
1answer
260 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 ...
0
votes
1answer
13 views

Specifying network device used by software (or port) (in Terminal)

Is it possible to specify which network device should be used when running something in the Terminal? Like $ rails [only communicate through deviceA] Not just app, but instance specific, so ...
0
votes
1answer
18 views

Execute Terminal Command fails in BetterTouchTool. Why?

I've installed Ouimeaux to control a Belkin Wemo on OSX, and it's working correctly in Terminal - meaning that the following command in Terminal will toggle my Wemo switch on/off: wemo switch ...
0
votes
1answer
38 views

SSH using IPV6 getting error “No Route to Host” On My Mac Machine

I am trying to ssh with ipv6 in my mac machine but I am getting error "No Route to Host". I can it successfully with ipv4. Can anyone guide me please if it require any network setting or else? I am ...
0
votes
1answer
19 views

How can I automate port forwarding?

Is there a way in which I can automate port forwarding on the mac? I want to forward a computer to port 22, and my purpose of doing is so I can ssh from a remote location, making ssh easier. If so, ...
0
votes
1answer
27 views

Changing border colors

Border may not be the correct term for what I'm describing but I would like to change the color layout in OS X. That is, when I open a browser or the terminal, the borders are a light gray color. ...
0
votes
1answer
140 views

how to get shell scripts to run at startup on Yosemite

There is a directory in System/Library for startup items I presume: StartupItems I need to have a shell script that will configure ethernet interface at start up, with local network address and ...
0
votes
1answer
28 views

How to have full directory path always shown in mac terminal?

I found answers but they don't work: I added this line in .bash_profile: export PS1='\u@\H:\w$' It outputs: \u@\H:\w$ Instead of: user@host:my/Current/Path/In/This/Terminal/Window$
0
votes
1answer
15 views

AppleHighlightColor syntax

I'm changing my highlight color via a command I find in Mathias Bynen's dotfiles like so: defaults write NSGlobalDomain AppleHighlightColor -string "0.764700 0.976500 0.568600" I'd like to change ...
0
votes
1answer
48 views

How do I make an AppleScript use a Folder in the Contents of a Bundle for an alias on the Desktop?

I'm trying to write an AppleScript to make a temporary alias on the desktop from a folder that resides in the Bundle's Contents:Resources folder and then execute a terminal command that has an ...
0
votes
1answer
35 views

Setting environment variables for scripts run by launchd?

I have a script that worked in the past, but seems to be having issues now (I believe it's due to Yosemite). What I had done was created an environment variable that was set to "false" and then my ...
0
votes
1answer
47 views

Terminal: command overridden via shell script in /usr/local/bin not executed unless called directly

I've created a shell script wrapping ssh to change my terminal background when connecting to a server following one of the many examples on this site and stackexchange. 11:22 ~ $ echo $PATH ...
0
votes
1answer
40 views

Problem with Terminal after changed permission to /usr/bin

I was trying to install rake and rspec using ruby gems. I changed read permissions on /usr/bin Now my terminal window looks like this: login(388,0x7fff73cd5310) malloc: * error for object ...
0
votes
1answer
65 views

Mac stuck in safe boot

I accidentally did a hard reset on my mac by doing contorl+c when my mac was booting up. I typed /sbin/fsck -fy because it was supposed to fix my Mac so that it is no longer stuck in safe boot. It ...
0
votes
1answer
85 views

/bin/sh don't read .profile after update to mac os x 10.10

I have updated my mac os x to 10.10 and got a lot of problems with program compilations. It looks like that default /bin/sh are not reading .profile anymore. So, all scripts, which are dependent from ...
0
votes
1answer
34 views

Getting unknown command error when trying to run a bash script

I recently had to re-install 10.9.5 (default install) and am now finding that bash scripts that run perfectly from the command line (~/Me...) no longer work using crontab. I use crontab to invoke ...
0
votes
1answer
63 views

OS X Terminal – Open Tab in current directory, troubles with umlauts

I run OS X 10.7.5. I am currently experiencing an issue with Terminal. I have enabled the option to open new tabs in the current working directory. However, this does not work as expected, when the ...
0
votes
1answer
168 views

Best Practices for dealing with unbrewed files in a fresh install of homebrew

I accidentally deleted /usr/local/bin which contained brew among other things. I reinstalled homebrew and ran brew prune to get rid of broken symlinks, but when I run brew doctor, I still get the ...
0
votes
1answer
49 views

Why my brew does not work?

I installed brew before, but it does not work now. When I run brew, it give me the error -bash: brew: command not found So I tried to reinstall using the code ruby -e "$(curl -fsSL ...
0
votes
1answer
102 views

Disk Utility Showing 0 Bytes on USB

I have a 32GB USB. I recently used dd to write a Linux image to the USB. Somewhere during dd my Macbook froze. When I plugged it back into the laptop after rebooting it wouldn't show. I left it 20 ...