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
0answers
223 views

Printer Deploy with and custom preset profiles to Mac OS X workstations

How would I go about deploying a network printer (Sharp MX-2600N) to Mac OS X machines that would include a custom printer preset profile (Embedded Printer User Authentication Code)? Ideal Method of ...
3
votes
0answers
38 views

Set a custom dock icon for an application instance via Terminal

I'm frequently opening multiple instances of applications, especially Emacs, since I may be working on different projects on the same time, and I find this the best way to manage this (yes, I know ...
3
votes
0answers
56 views

Can the default permissions on /dev/disk* be changed?

Is it possibile to change default permissions /dev/disk*? In Linux this is done in the udev configuration files; which is the equivalent on OS X? I'd like to give group write permissions so members ...
3
votes
0answers
641 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
0answers
22 views

Graphical man pages viewer in Terminal.app

There is a feature in terminal to view man-page of selected string in external window with ⌃⌘? shortcut. But it has a priority to display preinstalled man pages. So for example I've installed gnu ...
2
votes
0answers
114 views

enabling/disabling internet sharing with terminal in mac osx 10.9.2

Very much on the line of already existing questions, but not having enough reputation to comment by following existing threads, I can only ask my own, at the risk of duplicating may be, certainly ...
2
votes
0answers
93 views

Uninstalling Genieo broke my system

Update below, the rest is more or less background information. After discovering a Genieo install, I vaguely recalled it being, well, not trustworthy. After a quick search I knew I wanted to ...
2
votes
0answers
36 views

Why is Terminal.app corrupting my tcsh history?

I've had an ongoing problem that appears to be specific to OS X and Terminal.app: periodically, I get garbage in my tcsh history that looks like this: ^[[1m^[[4mcomputername:~/Code/emacs-source ( ...
2
votes
0answers
53 views

xcodebuild firing after every terminal command

After every terminal command, the prompt becomes unresponsive for 2-3 seconds. During this time xcodebuild seems to be running: Where would this hook be that's causing the xcodebuild to be fired? I ...
2
votes
0answers
52 views

“l/” in shell creates a whitespace

Whenever I type l/ in terminal on OS X (Mavericks), it replaces it with a blank space. I can't seem to find any relevant problems or fixes on Google and I have no idea why this happens. For example, ...
2
votes
0answers
50 views

Activity Monitor confusion

I have two java programs that run forever until I terminate the process, I start both at once using a script.... Cobrakai$more startCapture nohup startCaptureA.sh & nohup startCaptureB.sh & ...
2
votes
0answers
46 views

How to prevent OS X's 'screen' command from resizing the terminal upon entry?

I usually run my terminal sessions in 132 character wide mode in iTerm. However, when I start the 'screen' command, it re-sizes the terminal back to 80 characters. Is there a way to prevent this?
2
votes
0answers
179 views

How to enable Three Finger Drag from command line

I'm trying to write a shell script that will automatically set the trackpad to use the three-finger-drag option that you can find in the system preferences. I've tried a number of different things, ...
2
votes
0answers
55 views

Command+Tab misbehaving for apps on multiple monitors

I tend to keep a few Terminal windows open in one monitor, and another Terminal window and Chrome open in another monitor. When I'm using a single monitor, pressing ⌘⇥ remembers which Terminal window ...
2
votes
0answers
77 views

Terminal configuration lost after booting up

On OS X 10.8.3, my Terminal.app is configured with my .bashrc file. In my .bash_profile I have: source .bashrc It works great, except when I let some Terminal windows opened and shut down the Mac. ...
2
votes
0answers
142 views

OS X breaks if I apply HFS compression to the whole volume. What do I need to exclude?

OS X breaks if I apply HFS compression to the whole volume. (It won't boot.) What do I need to exclude? I've been able to compress large parts of it, but then I had to restore after I compressed ...
2
votes
0answers
153 views

Can I use the Terminal to find all OpenMeta tags on my system?

I know that there are apps that can do this, so I figure it must be possible: I'd like to compile a list of every OpenMeta tag that I've used on my Mac (OS X 10.8.3). But here's the rub: I'd ideally ...
2
votes
0answers
3k views

How do I force a partition and format on a USB key in OS X Mountain Lion Disk Utility or from CLI diskutil?

I have a brand new Memorex TravelDrive 64GB USB disk which is being troublesome. It's formatted FAT16 on MBR, which is not so nice, and I'd like to put it on HFS+. I've tried to do this through ...
2
votes
0answers
132 views

mdfind query on kMDItemFSTypeCode can't find some type codes

I just upgraded to a new MacBook with Lion, and having discovered that some of my old apps can't come with, I'm scouring my files for certain types that will need to be converted to future-proof ...
2
votes
0answers
213 views

Multi node cluster setup with home network for parallelized computing using e.g. hadoop, MPI or Rmpi

currently I am reading more and more about multi-core processing (threading) and parallel computing. So I was curious about how to use my 4-core processor to calculate parallelized algorithms using ...
2
votes
0answers
433 views

Why does my Terminal window close automatically?

I need to use my Terminal window on a MacBook Air but it closes about 10 seconds after I open it. Is there a setting or is it possible another program is causing it to close? If I type quickly I can ...
1
vote
0answers
10 views

XQuartz is not starting from within tmux

I'm using the standard apple terminal with zsh as my default shell. In my ~/.zprofile (equivalent of .profile) I have the following line: [[ $TERM != "screen" ]] && exec tmux This ...
1
vote
0answers
18 views

Clever way to create image of entire terminal log?

I would like a way to execute one command, to take a "screenshot" of the entire terminal log (including lines of text that are not visible without scrolling) Possibly an application that has this ...
1
vote
0answers
15 views

openAL Terminal ends with Error: Couldn't open input file (-43)

I've followed the tutorial of openAL sound on the iPhone. While trying to make input file, I'm getting the error which looks like Error: Couldn't open input file (-43) Here is what I've done so ...
1
vote
0answers
26 views

How to switch from Spotlight to Alfred via Terminal?

I installed Alfred through homebrew-cask. I want to disable Spotlight and let Alfred be opened with Cmd+S. The first Terminal-based solution I tried was unloading Spotlight with sudo launchctl unload ...
1
vote
0answers
34 views

Detecting that an external display is plugged in or unplugged on a laptop via bash

Is there a way via bash to detect that an external display has been plugged in or unplugged via bash? I know that I can create a crontab command that fires a script that uses the system_profiler ...
1
vote
0answers
40 views

Terminal wraps at 80 chars even if window is wider

Problem description If I increase the width of a Terminal version 2.3 (309) window, and then use less (or some command invoking less, like man) in that window, I often get garbled output, since the ...
1
vote
0answers
23 views

Can't use Alt+N in Terminal

I installed Zsh the other day but didn't like it so I promptly removed it. Since doing so however I'm no longer able to type alt+n to get a ~ character, whilst it works everywhere else. Yes, I know I ...
1
vote
0answers
24 views

How to manually start a service without having a controlling terminal?

I maintain an application that runs as a background service, started either on boot as a StartupItem or manually from the command line. I want to know how to launch it manually without having a ...
1
vote
0answers
36 views

Adjusting Brightness, or executing any keypress, on remote computer via ssh

What are the options to target specific keys on a remote computer and execute the equivalent of virtually pressing them from the terminal via ssh (what would normally be a user pressing them)? ...
1
vote
0answers
36 views

Correct Way to Check if Spotlight Has Indexed a Folder's Contents

Okay, so I've written a script that uses mdfind to more quickly match files, however, I need to find the best way to check whether a target directory is indexed or not, so I can fall back to using ...
1
vote
0answers
56 views

Battery value in terminal different to battery value in menu bar

My MacBook Pro Retina is currently reporting 100% battery in the menu bar, however if I run the following command in terminal; ioreg -l -w0 |grep Capacity The following is returned; | | ...
1
vote
0answers
129 views

Building netgen on Mac OS 10.9 - problem with tcl and tk

I am a very beginner in building from source on Mac. (It's my first request here...) I am trying to build netgen and ngsolve. Mac OS 10.9, Xcode 5.0.2, macports version 2.2.1 After installing tcl ...
1
vote
0answers
41 views

How can I revoke an applications access to keychain passwords from the command-line?

Applications can be granted permanent unprompted access to passwords. You can add and revoke these privileges using the Keychain Access utility. (See this answer) I'd like to be able to revoke from ...
1
vote
0answers
19 views

Terminal app Tabs, how to position next to current tab instead of at the end

I use Cmd-T all the time to open new tabs, and it's set to use the same directory. However, it positions the new tab as the last / far right tab in the window, instead of next to the current tab that ...
1
vote
0answers
23 views

In iterm I can't put directly some characters like ~ or "

When I try to put characters like " or ~ in iterm it gets underscores and waits for next one to be finally put, how I can stop it?
1
vote
0answers
136 views

Where does Transmission store logs for called scripts?

Transmission has an option to run a shell script when a file finishes downloading. I'm wondering where to look for logs for it – it seems like it only executes half of my script but can't figure out ...
1
vote
0answers
45 views

Is there another way apart from screencapture to take a screenshot of a background window?

I'd like to take a screenshot of a background window given its title. I know this can be made with screencapture -l idwindow output but unluckily I can't use this method because I'm on a 10.5.8 ...
1
vote
0answers
42 views

iTerm2 and CLI menus

How do I get iTerm2 to show CLI menus properly? I usually use those menus over ssh.
1
vote
0answers
58 views

Rails Command Fails Because of Space in Path

I tried setting up a Ruby on Rails project on my nice safe volume called "Data RAID". The set up failed with some strange errors that I eventually tracked down to the space in the path name. It works ...
1
vote
0answers
82 views

Sudo works for a whole day and then stops working until a reboot

I currently have admin access to a Macbook Pro running OSX 10.8.4. I have been sudoing at the terminal for the whole day with no restart until sudo stops working. I rebooted the operating system and ...
1
vote
0answers
427 views

FocusFollowsMouse, cut-paste from browser to Terminal in 10.8 (duplicate)

Added: this was discussed in focus-follows-mouse-plus-auto-raise-on-mac-os-x on SO in 2010. In short, accept it, or buy an addon: how-can-i-make-focus-follow-the-mouse-cursor. The sequence: cut ...
1
vote
0answers
1k views

FTP: active vs. passive, command line vs. browser

Here's a weird one for everyone. I'll use AskDifferent because my test bed is on a Mac, but I don't know that the underlying issue is specifically Mac. My Mac is behind a NAT wall. Let's call my ...
1
vote
0answers
801 views

My MBP (13 inch, MID 2010) will not start up

I have used the internet for the past 2 weeks in search of something that will help me troubleshoot/repair my MBP. It wont boot in Safe Mode using the SHIFT key. Following is everything I have tried ...
1
vote
0answers
141 views

Is there a console interface for the Client Monitor on OSX?

I'm writing a bash-script at work for controlling our Mac-computers (OS X Mountain Lion) remotely. Since we use FileWave in our Company we just have to remove an Application and restart the computer. ...
1
vote
0answers
213 views

Resource efficient way to monitor file change and execute shell scripts on change

I know at least three ways to monitor a folder/file for changes and execute a shell script on change. First, use "Folder Actions" of Automator Second, the launchd.plist approach but it seems the ...
1
vote
0answers
324 views

Cannot write to SMB Share with Terminal OS X 10.8

I am trying to copy some files from my local drive to a SMB share I have set up on my home network using Terminal, but I keep getting this error: fchmod failed: Permission denied The share is set ...
1
vote
0answers
204 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". ...
1
vote
0answers
331 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 ...
1
vote
0answers
82 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 ...