1
vote
0answers
58 views

Executing 'killall Finder' in Terminal raises reopening windows popup

I open Terminal, type killall Finder, press enter to execute, then Finder icon bounces and the well known error popup appears: The last time you opened Finder, it unexpectedly quit while reopening ...
0
votes
1answer
67 views

Enable SMB sharing from command line

On OS X 10.8, using terminal commands, I'd like to enable SMB sharing as if I had ticked the following checkbox under System Preferences - Sharing - File Sharing - Options: I've tried the following ...
0
votes
1answer
124 views

sudo: unable to cache user root, already exists

Suddenly started getting this strange error when attempting to run any command via sudo: sudo: unable to cache user root, already exists I've tried different Terminal windows, repairing ...
2
votes
1answer
85 views

Modifying .plist with shell changes .plist order

I wrote a simple shell command and saved it as .command. The shell command is simply: defaults write /Users/Milo/Desktop/MyPlist "My Key" "My Entry". The issue that I'm having is that after running ...
1
vote
0answers
68 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
1answer
101 views

Where is the specific driver for my GPU located

I am trying to run a bitcoin miner (bfgminer), I know this is not efficient but I want to do it anyway. The mac in question is a MacMimi running an Intel HD Graphics 4000 GPU and Intel(R) Core(TM) ...
0
votes
1answer
193 views

Time Machine Backups Gets Stuck With 100% CPU via tmutil

Okay, so I recently decided to try switching my Time Machine backups over to tmutil so that I could gain more control over exactly when they ran, but also so I could run some extra stuff before and ...
3
votes
1answer
4k views

How do I disable text antialias (font smoothing) in Terminal and globally for all apps?

I'd like to disable every kind of text anti-aliasing and font smoothing globally in OS X. With OS X 10.8 on a mid-2013 MacBook Air 13", I've tried quite a few options: the Turn off text smoothing ...
7
votes
3answers
532 views

copy last command in terminal

I can see last command in terminal by pressing up arrow as in following example: I typed cd /: Makss-Mac:~ maks$ cd / ... pressed enter, command cd / executed and now I can press up arrow and see ...
1
vote
2answers
130 views

Is it possible to remove all installed terminal applications and extensions back to native without doing a clean OSX install?

Basically I would like to know if it is possible to remove all php, apache, homebrew, mac ports etc. installs back to native without doing a clean install of the OS? If not is the best way to go ...
1
vote
1answer
380 views

mvim (MacVim 7.4) opening new windows rather than tabs (Mac OS X 10.8.5)

I am using the above and editing new files using mvim <filename>. The first time after I installed mvim in the /usr/local/bin directory it seemed to open files in new tabs by default, this ...
1
vote
1answer
294 views

Terminal commands for “Application Windows” and “Show Desktop” in Mountain Lion

The title pretty much says it all. I need to know the terminal commands for "Application Windows" and "Show Desktop" in Mountain Lion so I can make aliases on the dock with Automator. I don't like hot ...
1
vote
1answer
91 views

no key repeat in Xquartz (x11)

I don't think I've used x11 since switching to Mountain Lion (and thus Xquartz). I recently tried to use it and my key repeat isn't working. When I press a key, it inserts the corresponding ...
1
vote
1answer
48 views

“open -t” vs. “open -ef”

the Command: syslog | tail | open -ef works perfectly on my osx 10.8.5 and opens the required lines from syslog in textEdit, however when I run syslog | tail | open -t which should open the same ...
1
vote
4answers
3k views

How can I create custom right click context menu items in Mountain Lion? (“New File”, “Open Terminal Here”, etc.)?

I've been a native windows'er up until this year and have finally made the jump to OSX. I've found my workflow (web developer) has increased substantially and I love the general performance and ...
6
votes
1answer
1k views

VIM in Terminal using Solarized Theme

I am trying to use the Solarized color scheme with VIM in Terminal on Mac OS X 10.8.5 Mountain Lion. However, the colors look washed out. They are lighter/paler than they should be. In MacVIM, the ...
4
votes
1answer
156 views

Terminal CMD + SHIFT + Left/Right Brace No Longer Works

I'm using Terminal and don't know if this has been an issue after upgrading to Mountain Lion, or whether I made a configuration change that had a side effect that I didn't realize. When I use the CMD ...
2
votes
1answer
559 views

OS X Terminal: “backward delete word” works only with C-M-h

Followup on Mac OS X Terminal: Map option+delete to “backward delete word”. The Use option key as meta key option is checked, but the deleting word backwards works only with ^-⌥-H (i.e. one has to ...
0
votes
1answer
407 views

Odd problems with vim over ssh to remote linux machine

I'm having some strange issues working with vim editing files in an ssh session on a remote linux (Ubuntu 13.04 ) server. On the client side, I'm on a mac running OS 10.8.4 (late 2012 mac mini). I've ...
1
vote
2answers
237 views

How can I terminate the running sudo command that always reopens?

When i open a new window in terminal i get this: ! I was trying to install MacPorts approximately a year ago and that did not go well. Since i don't use terminal very often I just left it that ...
5
votes
1answer
4k views

Solarized and Terminal in OS X 10.8.4 Mountain Lion

I am trying to install the Solarized color scheme for my terminal on 10.8.4 Mountain Lion. I downloaded the .terminal files from https://github.com/tomislav/osx-terminal.app-colors-solarized and ...
4
votes
3answers
973 views

When Terminal forks process, current app loses focus

While I'm running some program in Terminal (or iTerm2), when the program forks the process, the OS X desktop switches focus from the current application to the forked process. When this happens, the ...
0
votes
1answer
259 views

Where is my ./configure file in OSX 10.8.4 (Mountain Lion)?

I'm setting up Cap'n Pro on my Mac and the install instructions ask me to type the following in terminal: ./configure CXX=$HOME/clang-3.2/bin/clang++ I look in my user folder i.e. ~/./configure but ...
1
vote
2answers
531 views

How can I import a .terminal file using the command line?

I'm writing a (Bash) script to automate setting up my Mac environment and would like to do this, except using the command line only. I'd also like to make that theme the default. I have a .terminal ...
0
votes
2answers
6k views

MySQL not working on mountain lion

I'm using mountain lion, I have installed MySQL. GUI It shows MySQL is running, but when I type mysql --version It gives error "mysql: command not found"
0
votes
1answer
180 views

Help me reset the terminal after sudo command mistake

I recently installed a cracked version of a program and it instructed me to block outgoing connections by following the instructions below. Step 1 Click the "Go" menu, select "Utilities," and then ...
0
votes
1answer
48 views

Terminal app no longer automatically recognizes functions in my ~/.profile any more

I made some function in my ~/.profile to automate things like SSH connections. They were working fine until recently. Now I need to "run" the ~/.profile by doing . .profile each time I open Terminal ...
0
votes
1answer
114 views

Clicking on folder in iTerm2 opens in web browser instead of Finder

I have iTerm2 v1.0.0.2 and I am correctly able to open folders in my home directory if command-click on them. However I am not able to open folders on my Desktop or Documents if I command-click them, ...
4
votes
3answers
678 views

terminal command say produces error

The "say" command in OSX Terminal works fine for me and I use it now end then. However, since last week it produces the following error message on my Mac Mini (Late 2012, 10.8.4): $ say test > ...
8
votes
6answers
669 views

Where can I find a comprehensive and detailed technical software manual for OS X?

Are there books written for OS X (particularly the most current version) like the hundreds of thousands written for Unix? I'd like to know about the command-line utilities and the locations of system ...
1
vote
2answers
1k views

Changing the $HOME environment variable in terminal on mac 10.8

To be clear im not looking for a workaround that will execute a change directory command on startup. I want to alter the $HOME env var so that tilde commands work and so that entering a 'cd' command ...
2
votes
1answer
442 views

OS X Mountain Lion Terminal and tabs take ages to load

When I open a new Terminal tab I have to wait at least 10-20 seconds before I can work with it, I have followed previous suggestions here: How do I speed up new Terminal tab loading time? But so far ...
0
votes
2answers
89 views

Terminal has gone weird after screen sharing

I used screen sharing on my Macbook Pro to remote control my friend's iMac. Unfortunately, now my Terminal now says: kellys-iphone-2:~ James$ Why is it now saying this all of a sudden? Where has ...
2
votes
1answer
317 views

preventing ssh command from opening xquartz on every session

Whenever I use ssh, after I type the password, xQuartz pop ups in the dock and terminal window looses focus. This happens even if there's no an X session. Why? How to prevent this behavior?
2
votes
3answers
3k views

Change file association in terminal?

Is there a method for associating file types with applications via terminal? I thought ~/Library/Preferences/com.apple.launchservices.plist might do it, and I also have seen: Why is a command line ...
0
votes
3answers
10k views

How can i reset my Terminal?

just some time ago i installed the OS X Server app on my mac and since this day it always appears server as the chosen directory in my terminal. But because i dont really like the Server application ...
2
votes
2answers
1k 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 ...
1
vote
2answers
130 views

Mac Won't Remember Hostname in Terminal After Reboot

I'm trying to set my hostname for my mac. Currently it's unknown002374e31ebd. I've tried setting it with sudo hostname -s Steve-Mac Which will work for all future terminal sessions. However, if ...
0
votes
1answer
227 views

Can an Open Directory (10.8) user's home directory be changed from the terminal?

I'd like to use SFTP/SSH for users (students and faculty) to manage their web content. The default home directory is "/Users//". I'd like to point them to something like "/Users//web" to block access ...
1
vote
0answers
733 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
1answer
3k views

Disable Screen sharing via the command line in mountain lion

I want to be able to enable and disable screen sharing from the command line rather than through System Preferences. This is on 10.8.3 To enable screen sharing, I find I only need to change a ...
2
votes
2answers
147 views

Terminal: Is there a way to be notified of activity when tailing an error log

I often ssh into a machine and tail -f it's php error log. My ideal situation would be to leave this terminal window open in the background, but when there's activity from the tail command, have the ...
2
votes
1answer
526 views

autossh not behaving as expected

I am trying to use autossh, like so: autossh -f -i id_rsa -D 8080 user@myserver.com However, on both an PPC Tiger eMac and a Mountain Lion MacBook Pro, I just get presented with the argument and ...
0
votes
0answers
154 views

OSX Removing file under a “.vol”

I have a file I want to remove that's stored inside a ".vol" 501   9984 Corel Painter 1  16 /.vol/16777218/29979256/nTitles Product Licenses IV I received this by running sudo opensnoop -n Corel ...
3
votes
0answers
5k 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 ...
0
votes
1answer
632 views

Load .bash_profile automatically on Terminal.app startup?

I have seen various questions that ask something similar. They suggest changing .bash_profile to .profile. However this doesn't work either. I have aliases setup up in .bash_profile. I would like ...
1
vote
1answer
1k views

The Command to enter login items is not working in 10.8

I am entering the login item from the terminal but, this command is not working for me: defaults write ~/Library/Preferences/loginwindow AutoLaunchedApplicationDictionary -array-add ...
9
votes
3answers
16k views

What steps are needed to create a new user from the command line on Mountain Lion?

What commands (or script) can create a fully functional user account on Mountain Lion, running only from the command line via terminal or ssh. It looks like an existing pair of answers might work, ...
3
votes
2answers
1k views

I want to remove an entry in my $PATH

I'm running OS 10.8. When I echo $PATH my terminal outputs ...
0
votes
1answer
45 views

Terminal not logged in properly

I'm having a bit of an odd issue with my terminal. I'm used to the prompt being Joosts-Macbook:~ Joost$ or something of that nature, but all of a sudden it displays a number I don't recognise: ...