0
votes
0answers
9 views

Mac Terminal - Color Co-ordinated

I would like to create a couple of short cuts on my iMac which ssh on to my dev box and on to my prod box. I would like my dev connection to use the settings something similar to home-brew (green text ...
0
votes
1answer
27 views

Terminal command for infinite execution of application

I tried almost every keyword on Google and still didn't came up with an answer. So hopefully one of you knows. What is the terminal command keep a application running after it fails or stopped ...
5
votes
1answer
351 views

How can I perform a second grep on the files returned from a previous grep?

I often find myself searching through a bunch of code using grep in order to pin down what I'm looking for. Sometimes I get a list of files a little longer than I hoped. At this point I want to ...
1
vote
0answers
29 views

See if Mac OS X has enabled hyperthreading?

There is a way of disabling hyperthreading on Mac OS X: How to disable HyperThreading on Mac OS X Lion? Is there a Terminal command of seeing whether Mac OS X has hyperthreading enabled?
1
vote
2answers
31 views

Choose which binary is default binary on Mac OS X Mavericks

I have installed the latest SVN 1.8 via homebrew on my Mac. However now If I run svn --version I get back that I have 1.7. Next thinng I run which -a svn which then shows me I have it twice: ...
0
votes
2answers
36 views

Unable to scp from remote to local Mac

I have gone over SU and SO posts looking for a way to get this to work, but I'm about to put up my hands and stick with a GUI. I want to scp a ZIP file from a remote server to my local machine. I can ...
0
votes
0answers
18 views

OS X Terminal Tab Name Current Directory Causes Duplicate Name in Title Bar

In OS X (10.9.3) I'm setting PROMPT_COMMAND to set the terminal tab name to the current directory such as function set_tab_title { printf "\e]0;${PWD##*/}\a" } PROMPT_COMMAND="set_tab_title; ...
1
vote
0answers
11 views

OS X / Finder - Right Click “New Folder with Selection” - how to Increase the Animation Effect Speed?

I'm using Finder on OS X 10.9x. The effect that pulls all the selected items into a new folder from the right click "new folder with selection" is really nice, but way too slow for me. Anyone know a ...
0
votes
3answers
413 views

How to set colors in OS X (Mavericks) terminal?

I want to set the color's palette of my terminal in order to use properly the Solarized colorscheme for Vim (http://ethanschoonover.com/solarized). I understand that i've to modify my .bash_profile ...
0
votes
0answers
23 views

Additional password for hosts file on mac

Is it possible to set up an additional password for changing the hosts file on mac? When i use the command: sudo nano /private/etc/hosts I have to use the admin password to enter the hosts file. ...
0
votes
1answer
82 views

Mac OSX: Terminal command to replicate activity monitor network data?

I've been googling around for a while now to try and find a terminal command which can output total kb/s IN and OUT for wifi (en0). The command cannot use sudo, so lsof is out. I've tried using ...
0
votes
0answers
17 views

Segmentation Failure 11 in Single-User Mode

I booted up my Mac in Single User Mode (by holding down Command-S while it boots) so then I have access to a terminal that is logged in as root. But when I run passwd to try to change root's password, ...
0
votes
1answer
119 views

Tilde (~) in Mac OSX terminal pathway

I am new to the Mac OSX environment, and was programming in C using the terminal. To change the current directory, I used the command cd .. to go one level up. However, this had a weird effect on the ...
0
votes
1answer
92 views

ant command to start a new terminal and execute command on mac

I am trying to open a new terminal window in mac and execute a node command via ant <exec osfamily="unix" dir="${dir}" executable="open" failonerror="true"> <env ...
0
votes
1answer
22 views

Mac OS X set terminal name that persists after SSHing somewhere else

I try advice like this that recommends adding the following to your .profile: function tabname { printf "\e]1;$1\a" } So you can type tabname brokenbox to name your tab. The problem is as soon ...
0
votes
1answer
33 views

Cancelling shutdown -h command on Mac

I usually use the command sudo shutdown -h +60 from the Terminal on my Mac. Although I'd like sometime to cancel the scheduled shutdown or postpone it. Is there a command to do so? If yes, how?
0
votes
0answers
38 views

How to open a local file with a query string appended to it in the default browser?

I want to do something like this from a shell script: $ open 'foo.html?foo=bar' Sadly that fails, as it looks for a file named foo.html?foo=bar instead of foo.html before opening the browser: The ...
0
votes
1answer
27 views

How to export current network configuration that I have on my System Preferences on mac os x?

I want to export all my configuration on my services on System Preferences and change all of them by export and importing all at ones. How to export and import all services and configuration for each ...
0
votes
2answers
131 views

How to inactivate network service by terminal on mac os x?

I google but found nothing helpful. the above link was useful when I wanted to create service of any other configuration commands on terminal but I found nothing about how to inactive a service by ...
1
vote
1answer
42 views

Terminal command to include currently logged on user

I am trying to write a script that makes our network (active directory) users local administrator on their macs. I have the script that will do this: dseditgroup -o edit -n /Local/Default -a ...
1
vote
1answer
112 views

Mac OS 10.5.8 Terminal won't start: “Process completed” instead of command line

I'm on a MacBook Pro with Mac OS 10.5.8. A few days ago I installed two versions of Python on my Mac (2.7.6 and 3.4.0; I first installed the latter but it didn't seem to work, so I installed the ...
0
votes
2answers
136 views

home/end in INSERT mode in vi on a Mac

On a Mac I can go to the start and end of an line in vi, when not in INSERT mode: ^ (start of line) $ (end of line) This is for example explained here: How do I do “end” , “home”, “page up” and ...
0
votes
1answer
36 views

Commandline arguments in Mac OSX

In linux I can do something like this: rm test.txt -f On Mac however, I get the following error: rm test -f rm: -f: No such file or directory Is there a way to fix this?
2
votes
1answer
195 views

How do I rename the computer name/root in Mac OSX

I'm new to Mac. I would like to rename the computer name/root title that shows up when I open the terminal. Usually it's like computername:~ xxx$ Any and all help is appreciated!
1
vote
2answers
69 views

Batch output md5 with corresponding file name to text file

I'm trying to output to a text file a md5 checksum of each file in a folder in this specific format: checksumhash1 *NameOfFile1.ext checksumhash2 *NameOfFile2.ext checksumhash3 *NameOfFile3.ext ...
0
votes
0answers
189 views

Kernel Panic removing sleepenabler kext through terminal

I have been struggling for hours now. I just cant find a way to find and delete the sleep enabler kext file. I am a noob with the terminal in the installation dvd, cant get to the folders where I need ...
0
votes
1answer
49 views

Map key to clear mac terminal

I have a bad habit of hitting cmd+k in Mac Terminal to clear the screen (and losing my history). I'm wondering if there is a way to map the command-k combo to run /usr/bin/clear when I press it. There ...
1
vote
1answer
44 views

Launch and pass scripted commands to a Terminal script

I've got a.command, a script that waits for user entry (like typing something and then hitting return) It loops forever-ish. For example, it tells the user if their entry is a leap year, or its a ...
1
vote
2answers
254 views

Mac Terminal showing bash instead of my username

This makes it hard to know what directory I am in. I installed a version of python for school and now it says -bash-3.2$ instead of MyMacbook: ~$. I'm sure this is really simple, but I know nothing ...
1
vote
2answers
1k views

How to make a shortcut that starts a new terminal window on mac os x 10.9.1 mavericks

I'd like to have a keyboard shortcut to open a new terminal from wherever I am. A default shell in my default home directory would be great. I've been trying for a while to make this happen, but no ...
0
votes
0answers
359 views

Libcurl not usable on mac os x

I'm running the configure command to install a particular software package, but it fails when it reaches it's libcurl requirement. This is the output it gives: checking for the version of ...
0
votes
1answer
179 views

Mac OSX Lion 10.7.5. Is there any way to permanently disconnect from a server?

Every time I open terminal on my Macbook Pro, I get the IP address of a server I once ssh'd into. I allowed someone to use my computer to access his server and now it seems like there's some permanent ...
0
votes
2answers
28 views

Difference between quoted path and non-quoted one as command argument in Mac Terminal

For example, what is the difference between the following two commands: sudo ln -s "/Library/Frameworks/Python.framework/Versions/3.3/bin/python3.3" /usr/local/bin/python3 sudo ln -s ...
0
votes
1answer
112 views

How to remove file in terminal with ampersand in name?

I tried different escaping possibilities and still could not remove file with spaces and ampersand in name. [23:36 @ ~] $ rm /Volumes/Storage/Music/pop/Nicole\ Kidman\ \&\ Ewan\ Mcgregor\ -\ ...
0
votes
1answer
315 views

Unable to write to NFS share, Finder hanging

I've a issue with an nfs share : this is my setup : /etc/exports : /home/delaland/sharetest 111.111.111.111(rw,all_squash,anonuid=1000,anongid=100,sync,insecure,no_subtree_check) all needed ...
0
votes
0answers
44 views

Is it possible to “reconnect” firewire via terminal on OS X?

I have a Presonus Firestudio Mobile recording interface connected via firewire on my iMac running Mavericks. When the iMac goes to sleep, the Firestudio for some reason loses its connection with the ...
0
votes
0answers
65 views

Why is my ssh output hanging until I kit a key

I'm suddenly seeing strange behavior in all of my ssh sessions. The output often freezes mid-stream until I hit a key. It's not on page boundaries, or any byte boundaries that I can see. It manifests ...
1
vote
3answers
83 views

Show thumbnails in Mac terminal?

Some time ago I've googled nice screenshot of Mac terminal How it can be possible? Special terminal application or special settings of ls?
1
vote
1answer
426 views

Mac OSX Mavericks - ZSH can't 'source ~/.zshrc', too many open files

I can't source any changes to my .zshrc (or my .bash_profile for that matter), because I get this error when I try: /Users/ME/.zshrc:source:100: too many open files: /Users/ME/.zshrc I've tried ...
5
votes
1answer
252 views

Open new Finder tab when using 'open .' in the Terminal

In the Terminal I use open . to open the current directory using Finder. Open folders in new tabs settings is set in the Finder, yet it opens a new window every time. By the end of a project/day I ...
0
votes
1answer
149 views

Using Terminal to copy Aperture files from external hard drive to Mac

I'm a novice Mac user who inherited photo equipment from my photographer Dad. He used Aperture to manage his thousands of photos. I tried copying a 20 gB file to my computer but it's failed each time. ...
0
votes
1answer
811 views

Mac Terminal keyboard shortcuts for Page Up/Page Down

I had a mac-newbie friend ask me about scrolling to the top and bottom of the window in Terminal. Also, paging up and paging down. I gave him a satisfactory answer (basically hold down the fn key ...
1
vote
1answer
274 views

How can I use terminal to ping a computer every 60 secs continuously, if no ping response sound an alarm

How can I use terminal to ping a computer every 60 secs continuously, if no ping response then ping every 1 sec, if still no response after 5 one second pings then sound an alarm and continue pinging ...
1
vote
3answers
386 views

Mac Terminal Continuously Running a Command?

I'm trying to run the following command continuously: osascript -e 'tell application "System Events" to set visible of every application process to false' Is there some sort of command with the ...
2
votes
3answers
99 views

How to sort a file with string lines by the number of a specific symbol in the line?

Say I have a large plaintext file with a string on every line. The string only consists of alphabetical characters, except for underscores _, which divide the strings in syllables. I want to sort ...
0
votes
0answers
145 views

Terminal error at login on a mac

I know I should have not been messing around with terminal if I don't know what I'm doing, but I did and now everytime I log on to my mac, this pops open. It corrupted my Dota 2 game file and I don't ...
0
votes
0answers
92 views

OS X terminal displays question mark over directory icon

When I load a new instance of the terminal, the window's title bar displays a question mark over the current folder directory icon. Notably, this doesn't happen when the wi-fi is turned off. Is the ...
0
votes
1answer
190 views

Fixing truncated *zip with Terminal, keep getting stuck

I have a *zip containing a lot of pictures from the past year, and it compressed incorrectly and is missing its end statement. I've been using "zip -FF" in Terminal, but it keeps getting stuck on a ...
0
votes
1answer
156 views

kill command working despite error

after running this command kill -9 <PID> for ./sc_serv. I am getting this output below: -bash: kill: for: arguments must be process or job IDs -bash: kill: ./sc_serv: arguments must be process ...
1
vote
1answer
138 views

Terminal: Deleting everything except for .nef or .jpgs

I am using Mountain Lion on a Mac. I want to delete all the files in a directory which do NOT end with .psd, .jpg, or .nef using Terminal. How would I do this? Thanks in advance!