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

1
vote
0answers
49 views

Unknown Error -22 When Trying to Copy Files from Time Machine

Somehow I've managed to accumulate a bunch of files in Time Machine that don't seem to be capable of being copied out of Time Machine, citing "Unknown Error -22", like-so: sudo cp ...
1
vote
0answers
94 views

Terminal Command to Check Available USB Ports

I recently took a trip and was utilizing a USB GPS Device push coordinates to a file. In the middle of the day the device decided to stop working. We were never able to get it back working again ...
1
vote
0answers
35 views

To have inkscape's terminal scripts in terminal like in Linux

I am trying to write this makefile in OSX. I have installed Inkscape but it does not have the script that allows you run commands in terminal like this inkscape $(SOURCE).svg -w $(WIDTH) ...
1
vote
0answers
20 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
121 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
125 views

Printing to a Windows printer from the command line (smbclient -c “print”)

I am trying to print to a Windows printer server requiring authentication from the command line. An option is to use kinit to get a Kerberos ticket (and it works). On a Linux machine I also managed ...
1
vote
0answers
96 views

Switching network location under Mavericks without password

When using Lion I could issue this command at the terminal to change network locations(which I got from this site, thank you): networksetup -switchtolocation "Proxy" I've recently upgraded to ...
1
vote
0answers
71 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
60 views

set default browser (all users) from CL?

Is it possible to set the default web browser for the computer (i.e. for all users) from the command line? If I understand correctly, individual users' browser preferences are stored in ...
1
vote
0answers
100 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
36 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
37 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
86 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
76 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
85 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
298 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
28 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
24 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
290 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
50 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
46 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
74 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
120 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
872 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
2k 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
1k 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
239 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
256 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
410 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
219 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
420 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 ...
1
vote
0answers
93 views

My hostname is now out of sync

My hostname got out of sync with what it is set to in System Preferences - Sharing. From what I've read this is most likely related to a router having the ability to update my hostname. Anyhow, I've ...
1
vote
0answers
243 views

Signals sent to command-line programs when exiting terminal.app

When using tmux, if I CMD-W, or otherwise quite out of terminal, my tmux session persists, as it should. However, it still lists itself as "attached", whereas on other platforms, (e.g. Ubuntu) when ...
1
vote
0answers
414 views

After updating oh-my-zsh prompt is weird on startup

I have been using the default installation of oh-my-zsh (robbyrussell theme) without issues. I just did a 'git pull' and now on startup I see a weird prompt. As soon as I press any key the prompt ...
1
vote
0answers
226 views

Proxy won't work without telnet

This isn't a problem as such, more an irritant that's begging for a clean solution. At work we have a couple of Macs which I'm trying to get integrated nicely into Active Directory. We enforce all ...
0
votes
0answers
13 views

No java installations was detected, although I have Java

$ java -version java version "1.6.0_65" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609) Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode) $ which java /usr/bin/java ...
0
votes
0answers
62 views

Yosemite blue grey Screen O Death

I have a late model 2011 MacBook Pro, and I upgraded to Yosemite two weeks ago. Yesterday I was working in After Effects on some pretty big movie files when the laptop screen just went black. When ...
0
votes
0answers
15 views

Batch command line “convert” tool corrupting first file in folder

-convert txt * -output * I am batch converting some RTFs to TXTs. For some reason, the first (only the first and always the first) file in the directory does not convert AND gets corrupted by the ...
0
votes
0answers
28 views

How to mouse copy a very long line in vim terminal OS X

I want to copy with mouse one line from one vim terminal to another vim terminal. This line is huge and has a hidden character (I presume at the beginning) that I do not want to copy. In other ...
0
votes
0answers
16 views

Need help fixing bus error in Eclipse Java? possible Pathway problem

Whats up folks, i have posted this question on other forums but got no reply, just note before you read, my terminology is not the greatest, im only studying IT this year, so my knowledge be still a ...
0
votes
0answers
27 views

Path Finder 7: Using Terminal at bottom - not able to place @ sign

I am having troubles to place the normal @ (at) sign in the terminal in path finder. I do have German keyboard Layout, which means the @ sign is "option/alt + L". Simply nothing happens. Did someone ...
0
votes
0answers
9 views

How can I get TexLive to install?

I just bought my third Mac, this one with OS 10.9.5. My previous one was stolen, but I had backed it up with Time Machine. When I started this one up, I connected the backup drive from the old ...
0
votes
0answers
108 views

Terminal.app magically changing color values

Terminal.app does some very odd color shifting that makes it impossible to match colors consistently, and I'm wondering if there is any way to disable it or better control it. The "magic" is what ...
0
votes
0answers
13 views

Uninstall CheckPoint VPN Script Prompting For Password

When running the uninstaller sh script in the CheckPoint VPN package from terminal I get prompted for the usual authentication window. But the authentication window does not have focus so when I type ...
0
votes
0answers
22 views

Damaged preference file in /bin/sh

Today in Drive Genius 3, I ran the “Verify Preferences” function in Repair. It yielded this strange result: /bin/sh: xargs: command not found The only option Drive Genius gives is to remove the ...
0
votes
0answers
44 views

opencv cmake not building

I've been trying to build OpenCV in a mac (Yosemite 10.10) using cmake-gui and the compilers gcc,g++ and gfortran given by MacPorts. I HAVE to use those compilers. I configured WITH_OPENCL to be OFF ...
0
votes
0answers
33 views

Terminal paste unreliable

I'm trying to paste text into Terminal (v2.5 build 343, I'm running Yosemite), and it seems to consistently omit characters. For example if I copy the following text to the pasteboard: ...
0
votes
0answers
31 views

Network drive showing minus sign for one folder, but Terminal shows everything in it

I've got a small home media server setup on a Raspberry Pi. It has had one 1 TB USB (ext3) drive plugged into it for a while now, which has worked perfectly over the network on my Macbook Pro ...
0
votes
0answers
92 views

How do I use the defaults command with App Groups?

In OS X Yosemite it's possible to have preferences that are shared between multiple apps that are in the same App Group. On the development side of things it's as simple as setting up the App Group ...