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).
3
votes
2answers
5k views
Console reports “sandboxd deny mach-lookup” … Should I modify system.sb?
I'm getting two errors in the console at the same time TimeMachine is running and taking FOREVER to make any progress.
1/4/13 9:41:38.000 PM kernel[0]: Sandbox: sandboxd(5838) deny mach-lookup ...
3
votes
2answers
102 views
Always open a file in a specific program
I'm having an issue with forcing a file of a certain type to always open with a specific program. In this case, it's .indd (Adobe InDesign) files. I have Adobe CS6 installed, and also Adobe InDesign ...
1
vote
2answers
10 views
Is there a way to set an Application Shortcut in the Keyboard Preference Pane via Terminal?
I'd like to have a bootstrap for my custom keyboard shortcuts to use on multiple machines...
5
votes
1answer
208 views
Why is mdfind only returning my most recently accessed files?
I've imported most of a javascript code base via mdimport (using the packaged SourceCode.mdimporter provided by Xcode) and it succeeds. However, mdfind only ever returns to me at most two results, ...
4
votes
1answer
144 views
How to reset $PATH?
I was trying to add something to $PATH and it went totally wrong. I now can't run any commands such as ls. I've looked at this answer and used the following lines:
...
4
votes
1answer
144 views
declare -x messages appear in my terminal. How can I get rid of it?
declare -x Apple_PubSub_Socket_Render="/tmp/launch-qoybJQ/Render"
declare -x Apple_Ubiquity_Message="/tmp/launch-DWchNf/Apple_Ubiquity_Message"
declare -x COMMAND_MODE="unix2003"
declare -x ...
4
votes
1answer
208 views
Any way to write the Terminal scrollback history?
I would like to open a new tab in Terminal with custom scrollback history. The primary use-case is to "fork" an existing tab such that both tabs contain the same scrollback history, but more generally ...
3
votes
1answer
121 views
Changing the range of addresses served to clients connected via Internet Sharing
Macbook Pro Running 10.7.4 attempting to share ethernet connection via Airport(Wi-Fi) and trying to serve 192.168.1.x addresses to connected clients.
I've tried the guidance provided here and the ...
2
votes
1answer
49 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
142 views
Best rsync options to transfer data between two Mac
I am about to move my data from my old iMac to a brand new MacBook Pro. I would like to start over with a fresh install on B and copy just a subset of my data, reinstalling applications from scratch, ...
2
votes
1answer
404 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
35 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
253 views
“DYLD_” terminal error?
So, I've done some searching.. and still haven't found a solution for this. I'm not even sure what has caused it. There are no DYLD_ or LD_ flags being set at all, but I always see this when I open ...
1
vote
1answer
141 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
132 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 ...
1
vote
1answer
150 views
copy song info from mp3 file to aac file from terminal
I am trying to create a script that performs various conversions between formats of audio files. In one particular step, I use afconvert in Terminal to convert an mp3 to aac(mpeg4/m4a), but in this ...
1
vote
1answer
105 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 ...
1
vote
1answer
329 views
Many programs notify me that “grep/sed/uname/… not found”; some run, some don't. My system(?) path is damaged, how do I go about a diagnosing it?
Some manifestations of this problem: macports won't install, MATLAB won't run, BTT works but incessantly spams me with " not found" popups, and emacs shell does not work.
My interactive shell PATH is ...
0
votes
1answer
23 views
Check Remote Management Status via Terminal
I need to be able to SSH into a Mac (Mountain Lion) and check if ARD is running and if so, what are the settings. Basically, I need the equivalent of going to System Preferences -> Sharing -> Remote ...
0
votes
1answer
37 views
How do I disable a specific wifi network through terminal?
Is there a way to disable a specific wifi network in Terminal? I'd like to disable my home wifi connection for reasons outlined here: Reclaim Your Life After Work by Disabling Internet Access for ...
0
votes
1answer
40 views
Is there a package management system for shell scripts on Mac OS?
Is there a package system (think npm, cpan, or even homebrew) that would be suitable for shell scripts?
0
votes
1answer
62 views
SSH request timeout every time
I am trying to access a storage space we have at work via ssh but I get a timeout every single time (Mac OS 10.7.5 - Terminal).
I checked firewalls, settings, even turned off Little Snitch, and port ...
0
votes
1answer
39 views
Weird Output in terminal
I am using the terminal for some debugging and I noticed that it has stopped displaying my user before the path. Now its displaying (null) like so:
(null):mspgcc-examples dean$
Whats changed? As ...
0
votes
1answer
160 views
Python IDLE can't be opened by double-clicking .py files in Finder
I can't open .py files in IDLE by double-clicking them in Finder (IDLE is currently set as the default program for opening such files). Nor can I open those files by right-clicking and selecting ...
0
votes
1answer
50 views
OSX ML Terminal - Switching tabs
I am a terminal junkie and use it all the time...literally. Is there any way to be able to switch between tabs with Command+Number (eg. Command+1 for tab 1).
Yes, I know about iTerm, I'm just ...
0
votes
1answer
92 views
How do I change the gateway of a specific connection using the Mac terminal?
My goal is to be able to change all of the following for a specific device: IP address, netmask, and gateway. So far, I've gathered that I should be able to use ifconfig con0 10.8.0.14 netmask ...
0
votes
1answer
41 views
How to manually determine version control metadata for Finder?
I have a Scripts folder where I keep Automator actions, Applescripts, and shell scripts. Automator scripts are automatically assigned a version of 1.1.1 it seems. When I make revisions to any of these ...
0
votes
1answer
117 views
Permission denied error when opening Terminal
I'm using a clean install of 10.8. I wanted to add a couple of directories to my path. I tried adding them to /etc/paths using
sudo vim /etc/paths
Now when I open a terminal window I see this:
...
0
votes
1answer
60 views
Set Keystroke for Service from Terminal
I created some services to be used in Finder. Now I wanted to create some keystrokes to call these services. That would be easy in the System Settings, however, I would like to add them from the ...
0
votes
1answer
138 views
Programmatically read both per-tab Terminal.app titles
When bringing up the Inspector (⌘I) in Terminal.app to edit the title (⇧⌘I), there are actually two titles that can be entered. The first is known as the Tab Title and affects the terminal window ...
0
votes
1answer
84 views
Individual terminal tabs running emacs become buggy/corrupted over time
I generally work with a terminal window with a half-dozen tabs open, and that window lives for a week or so. Every once in a while, tabs (running emacs) become corrupted or something [every other ...
0
votes
1answer
91 views
Break RAID0 to have separate drives
I have an enclosure Hornettek Dual Bay SATA Case with removable disk trays, and RAID0, RAID1. USB3.0 and eSATA dual bay case with two 2T WD drives. My idea was to set them up as separate drives to ...
0
votes
1answer
190 views
How can I access a remote machine via SSH from behind a proxy?
I’m trying to connect to a Linux machine via SSH. The problem is that my Mac is in a different network, behind a proxy that routes HTTP and HTTPS through port 80.
How can I access the Linux machine ...
0
votes
1answer
63 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 ...
0
votes
1answer
222 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 ...
0
votes
0answers
96 views
“tmutil” claims many files are different, but Time Machine doesn't back them up?
I was trying to use the "tmutil" utility in Terminal to diagnose a Time Machine problem I had. This utility is used to compare two Time Machine snapshots to see what files are different between the ...
0
votes
0answers
389 views
Multiple instances of the Mumble client
I have tried command that I found and it works for second and after that second client closes.
open -na /Applications/Mumble.app
Other command that I tryied with the same resul.
...
0
votes
0answers
267 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??
0
votes
0answers
275 views
Bad CPU in Executable Trying to Install Ruby
I'm running Mountain Lion, and I'm trying to install Ruby; however, I get "bad CPU in executable" error. Not sure how to fix this . . . ideas? Sorry for the bad formatting - "code" doesn't really ...
0
votes
0answers
632 views
How to enable iCloud Notes behind a firewall?
I got a problem at work were our firewall blocks the iCloud / Notes sync.
How can I SSH tunnel iCloud traffic through my Linux server?
0
votes
0answers
192 views
Mac OS X Lion xterm service behaves differently between Automator and keyboard shortcut
I created the following "Run Shell Script" service in Automator under Mac OS X Lion 10.7.4:
export DISPLAY=:0
/usr/X11/bin/xterm -title "Kevin's Xterm" -sb -sl 500000 -geometry 150x25 &
and ...
0
votes
0answers
1k views
Installation of Wine via MacPorts not working with 10.8 and XCode 4.4
I had installed wine on my computer with then 10.7.4. It worked perfectly. Then I updated to 10.8 and wine did not work, so I uninstalled wine and macports. It gave me an error that winetricks (I ...
0
votes
0answers
278 views
How can I play a sound from the command line running as sudo?
While typing afplay danger.mp3 in the Terminal will play the .mp3, doing sudo afplay danger.mp3 or sudo su and then afplay danger.mp3 does not.
Any idea why is this? How can I use the afplay command ...
0
votes
0answers
213 views
ifconfig - get IPs of connected USB devices
In Ubuntu, ifconfig lists all the USB devices with the header "usb0, usb1, ..etc"
I need to know the IP addresses of all the connected USB devices. It would be really helpful if on Mac it displayed ...
0
votes
0answers
250 views
How to make the display go to sleep mode when Lion's Terminal.app is in full-screen mode?
I've noticed that when I'm running a full-screen Terminal.app in Lion, the display does not go to sleep. This left me with a nasty case of burn-in over the weekend with a magenta message box from an ...
0
votes
0answers
251 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 ...
0
votes
0answers
65 views
why does less seem to think my terminal has more lines than it does?
Don't know if this is really an OS X question, but:
less seems to insist that my terminal (whether I'm using the builtin Terminal or iTerm2) has more lines than are actually displayed, and so the top ...
0
votes
0answers
224 views
How can I make my Terminal login as my mac account and now bootcamp partition?
I recently installed windows 7 on a partition using bootcamp and all went well. Now i am trying to use terminal on my original mac partition on OSX but the command line comes up as:
myusername-Win7:~ ...
0
votes
0answers
271 views
PERL is frozen in Mac OS X Lion
I've upgraded to Mac OS X Lion. After that, I've updated MacPorts to the newest version (2.0.1) and updated Perl as the following:
[Khang-Le-Nguyens-MacBook-Pro:~] khanglenguyen% perl -V
Summary of ...
-2
votes
0answers
27 views
Find command acts weird
I don't know if there is something wrong with my current find commandline app. Whenever I run it, the terminal is closed.
I have no idea, it's just weird.