2
votes
0answers
26 views

How do I run this command in verbose output mode?

I want to update my OS X Mavericks USB key and would like to be able to see what my mac is doing after I enter the following command. sudo /Applications/Install\ OS\ X\ ...
0
votes
0answers
10 views

Rsync'd Files Are Hidden Through Finder, Visible Through Terminal

I have an hard drive from an previous MacBook that I need transferred to a NAS device. I used sudo rsync -r --progress /Volumes/oldDrive /Volumes/NASdrive to copy the files to the NAS drive. I need ...
1
vote
1answer
26 views

Why are the hidden files/directories seen in Terminal color settings?

When I tried to set my Terminal color by importing a color scheme stored in ~/Dropbox/.personal/myColor.Terminal, it didn't display the hidden directories, including ~/Dropbox/.personal (and other ...
0
votes
0answers
12 views

Ensure that the user is signed in after a reboot via Terminal.app

In the User settings I have Automatically Sign In as: . However, when I reboot the machine via SSH in the Terminal.app the machine reboots, but does not sign in the specified user and is stuck at the ...
1
vote
1answer
34 views

How to create a VPN connection via terminal?

I have a macbook pro with mavericks running. I am looking for a way to connect to a VPN network in terminal. The reason why I want to do this is that I want to write a small program in Python which ...
1
vote
3answers
176 views

How do I undo “export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile”

I was trying to install homebrew, which wasn't working. It told me to do echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile. However this wasn't having any affect, and I thought maybe it ...
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 ...
0
votes
1answer
20 views

user-name@dest-host for MACbookpro

I have a directory at a unix machine which I want to copy to my macbook. I login to unix machine using a VPN connection and then try to copy the directory using the following standard command scp ...
0
votes
1answer
64 views

Is it OK to run -sudo purge, frequently? [duplicate]

I'm on Mavericks 10.9.2, 24GB's RAM, and my usage constantly teters on 23.95 GB in use very frequently. From what I can tell, the largest running process is 'kernel_task', and even then it's less ...
4
votes
2answers
86 views

Correcting Pronunciation Errors in 'Say' Command in Terminal

I'm having difficulty correcting the pronunciation in the 'say' command, using 10.9. I tried to add new pronunciations through: System Preferences > Dictation and Speech > Open Accessibility ...
2
votes
1answer
45 views

Weird OS X Terminal Bug: Cursor won't go back to end of line after backtracking

I have an interesting problem: when I type something in the terminal as follows: ~ me$ hello<cursor> and backtrack: ~ me$ he<cursor>llo and then try to return to the end to continue ...
1
vote
2answers
200 views

Alfred: How to get Alfred to run a terminal command?

I often need to run multiple copies of an app, like VLC. For this I use the terminal and run a command similar to: open -n /Applications/VLC.app How can I create a shortcut with Alfred to run this ...
3
votes
1answer
42 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 ...
-1
votes
0answers
14 views

Iterm2 text navigation shortkeys

I'm using iterm2 in mavericks and I have special error. I have setupped few hotkeys like: option+leftarrow/rightarrow => go one word backward/forward Those work just fine In the os x default ...
3
votes
4answers
356 views

Run sudo From Non-Admin Account

Okay, so I'm gearing up to get a new machine so I'm looking at how I can organise things better. Now, currently I use an admin account as my main login account, but I know that that's probably not ...
1
vote
1answer
92 views

How to automount SSHFS volumes with FUSE OS X on Mavericks

Iv'e managed to get my ssh volumes mounted with SSHFS via the command line but would really like is to have them auto mount on login. So far, I've set up a launchAgent to run a shell script that ...
1
vote
1answer
43 views

How can I use an app after installing it via `brew pull`?

Because of a reinstall of the OS and a not perfectly migration of my data I had to reinstall a few things. Under these things were homebrew and truecrypt. brew doctor doesn't show any problems now. ...
0
votes
1answer
26 views

How can I stop the shell command `mate` from opening Textmate 1.x instead of Textmate2?

I've installed mate in the preferences pane in TextMate2. It says "Shell support installed." I added the string export EDITOR="/usr/local/bin/mate -w" to ~/.bashrc as instructed. However, when I use ...
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 ...
0
votes
1answer
51 views

close all the instances of google chrome except first

I can close google chrome with following bash command: kill -9 $(ps -x | grep "Google Chrome" | awk "{print $1}") It closes all instances of google chrome. But I need command that close all the ...
0
votes
1answer
49 views

how to use terminal to remove item from dock

Hi I have a shell script in my login item , which runs whenever i log in to my system . It does work completely but once it exits the terminal , it leaves the terminal shortcut on my dock and I don't ...
1
vote
1answer
21 views

Equivalent of Ubuntu’s write-mime-multipart?

I would like to generate a multipart mime-encoded document for use as user data on EC2 instances. On Ubuntu, one is supposed to use write-mime-multipart to do this, as per these instructions. Does ...
0
votes
2answers
204 views

Is there an equivalent utility to Linux's tracepath for OS X?

I'm attempting to determine the path MTU from my Mac to various sites, and can't find a built-in utility to accomplish this. In Linux, I would use a utility like tracepath, but I"m wondering if there ...
3
votes
1answer
46 views

Terminal not displaying colors for directory listings

I don't know why my bash session doesn't show colors. I have tried Terminal as well as iTerm. I have tried: ls -G Setting export CLICOLOR=1 and export LSCOLORS=GxFxCxDxBxegedabagaced Using ...
2
votes
0answers
105 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
1answer
38 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 ...
0
votes
0answers
165 views

hdiutil returns error when creating Ubuntu USB stick

I am following an online tutorial for creating an Ubuntu USB stick on OSX but I'm stuck in step 3: Convert the .iso file to .img using the convert option of hdiutil (e.g. hdiutil convert -format ...
1
vote
1answer
127 views

Mavericks - VPN command line

I see a lot of third party apps that offer the ability to turn your Mac into a VPN server. It seems the VPN server functionality is built into OS X from what I've read but you need OS X server to get ...
2
votes
1answer
32 views

String of variable has a space - how do I escape spaces?

I'm working on an applescript that pulls old Time Machine backups and places them into a new folder. But if the old computer name has a space in it, that causes an issue in the do shell script ...
1
vote
1answer
38 views

How to enter password automatically in .command

So my .command file looks like this ssh someuser@someip.com When I run just this it prompts me for the password, how do I make terminal enter the password instead of me having to type it in? I ...
1
vote
2answers
70 views

how to set mac desktop background as working terminal

I would like to set my background to a working Terminal window even when I minimize all applications. I would like to be able to write commands on desktop but I don't know if it is even possible. I ...
1
vote
1answer
48 views

odd behavior of pgrep in bash script

I have a script to kill a process tree that works fine in linux but I am experiencing some odd behaviour on osx. It actually works fine with my unit tests and also when trying to run it manually on ...
0
votes
2answers
119 views

Why Does a Shell Script Trapping SIGTERM Work When Run Manually, But Not When Run via launchd?

Okay, quite simply I have a shell script that needs to wait for something to happen, but it has a lock-file and some child-processes that I need to ensure are tidied up if the script is interrupted. ...
4
votes
4answers
337 views

How to edit the /etc/hosts file?

When I open the file with TextEdit (I don't want (truly, I am not able) to use vim), it is seen as "locked", even if I modify the permissions of the file via the "Get Info" window. How can I modify ...
0
votes
2answers
148 views

How to use “open in terminal”, “always on the top” and “two windows side by side” on mac?

The first. I'm a Linux user. I just bought my new Macbook. and yeah, trackpad on a Macbook and another UX features quite useful and quick but i still need some features from Linux that i think it also ...
0
votes
1answer
36 views

OS X - How to have starting applications (optionally) not take the focus?

Is there any way to have starting application not take the focus? Is there a setting so new windows do not pop over what we are currently working on? (Perhaps an option to have them pop under, or ...
3
votes
4answers
98 views

AppleScript: Press Enter Every X minutes If Terminal is Open and Application Has Been Idle for X Minutes

I am new to AppleScript and am attempting to use it. If I am using Terminal and if I have not pressed a key for x minutes I want my Mac to press the return key. It is to repeat this process every y ...
1
vote
1answer
60 views

ssh-add every time I want to use SSH to login to my remote server

I have SSH keys installed on OSX Mavericks installed at ~/.ssh/ Everytime I want to SSH to a server from Terminal, I need to do the following: eval `ssh-agent -s` ssh-add ~/.ssh/example_rsa If I ...
3
votes
2answers
79 views

Add Static ARP Entry at Boot

I'm new to Mac OS X. On Linux I'd: append to /etc/rc.local arp -i eth0 -s 192.168.1.1 00:00:00:00:00:00 I've figured out how to do it in Terminal: sudo arp -s 192.168.1.1 00:00:00:00:00:00 But ...
0
votes
0answers
38 views

Terminal freezes because of corrupt file

I wanted to edit the httpd.conf from apache2. I wanted to uncomment the php5 load line so it gets included. I started the terminal and used sudo nano /etc/apache2/httpd.conf to edit the file and ...
0
votes
0answers
63 views

Binding Escape Sequences to Terminal Keys Produces Characters, Not Actions

I was using an iMac from 2009. I had upgraded it regularly, going up to (and including) Mavericks. When I first got that iMac, I fixed the keys in Terminal so Home and End would move the cursor to ...
1
vote
1answer
141 views

Opening new Terminal.app window/tab with a certain profile from command-line or AppleScript?

When I login to my Mac, I want to automatically open a new Terminal.app window with a certain profile, say Monitor, that has a startup command and several appearance settings. I thought it would be ...
1
vote
1answer
51 views

Why does my path not get saved even after editing ~/.bashrc? [duplicate]

I've added maven to my path, but it doesn't seem to be persisting to the path beyond the lifetime of the terminal application. I've modified my ~/.bashrc, but it still isn't storing the modified ...
1
vote
1answer
50 views

How to open shell scripts in editor when double clicking on them

I'm trying to migrate to OS X. One thing what I find really strange / dangerous that by double clicking on shell scripts, I launch them in Terminal. I would like to change this behaviour to open them ...
1
vote
1answer
30 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 ...
0
votes
1answer
126 views

Automator: Change to selected directory and run shell script

I'm trying to create a context menu command via Automator service. The context menu command will run a shell script to create some default documents in the given directory. I wrote out the shell ...
1
vote
1answer
63 views

Vim like terminal

I recently discovered terminal's feature, you can set the keys emacs or vi style I prefer the second. so if you do set -o vi You can use k j l h keys to navigate on the command line. And you can ...
2
votes
1answer
41 views

Is there a tool to save a snapshot terminal session for later recovery, like a virtual machine?

I work on multiple projects with multiple type of servers required, and when I switch project I shut down any of the applications and start the ones I need at that moment from the terminal. I ...
0
votes
1answer
447 views

Can't start Octave 3.8.0 in GUI mode

I installed Octave 3.8.0 using homebrew. The Octave official FAQ says I can use --force-gui option to start octave with the GUI. But when I use octave --force-gui command in the terminal, nothing ...
0
votes
3answers
82 views

Applescript - Unable to find resource when inside application

I have a regular Applescript application bundle that executes an applescript file when it's run. I'm trying to run a shell file that is located at "/Contents/Resources/Data/df.sh", however with the ...