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
1answer
365 views

Change Terminal Theme for Developing

I just got an iMac and wanted to change the default terminal to, what i believe, is a theme. I saw it a while ago and i'm not finding it. Screenshot below. You can find a video from Yeoman using ...
1
vote
1answer
572 views

Automator to execute shell script with an input text file, copy it to specific directory

I'm simplifying making a .deb file with Automator. I currently have a shell script that does some simple actions - Ask the user for text input Do some directory parsing Execute a command with the ...
0
votes
2answers
208 views

messed up .bash_profile while configuring PostgreSQL

I am quite new to Terminal use. While installing and activating a local PostgreSQL server on my MacBook Pro (OS 10.6.8) I definitely messed up my .bash_profile (probably by messing around with user / ...
2
votes
1answer
38 views

CLI to copy to clipboard but still output to term ?

I know that piping to pbcopy copies command line outputs to the clipboard. How can I still show the output in the terminal ?
19
votes
2answers
13k views

How can I prevent an SSH session from hanging in OS X Terminal?

When I close my MacBook with an active SSH session in Terminal and then wake it up, the prompt goes unresponsive. In about five minutes it says Write failed: Broken pipe and terminates. This ...
0
votes
2answers
66 views

Remove symbol link

In terminal, I have made a symbol link like following: ln -s ../../../../ jni/prod It symbol links prod directory (which is 4 levels up from current location) to jni/prod . I'd like to emphasize ...
0
votes
1answer
892 views

How to add a script that types in the password for my vps through applescript

I made a script recently and have turned it into an app, it basicly logs me into my vps via ssh but I don't know how to tell it how to type in my password for me, heres the code tell application ...
0
votes
1answer
112 views

install libsoup on macbook pro

I have a shell script from a open source project, when I run it in terminal, I get the following error: ./configure: line 17678: syntax error near unexpected token `soup,' ./configure: line 17678: ` ...
7
votes
2answers
59k views

How do I make the hard drive visible in the Finder?

On OS X Lion I don't see the hard drive in the Finder and I seem to have no permission to create a folder under / from terminal. I know I can do this if I activate the root user, but I need to be ...
0
votes
1answer
2k views

Trying to install CocoaPods using terminal getting command not found

Im trying to install CocoaPods using terminal. In their official website it is written: installing it is as easy as running the following commands in the terminal: $ [sudo] gem install cocoapods $ ...
1
vote
3answers
75 views

Open command doesn't like non escaped characters even between quotes?

Is it me or the open command does only accept escaped characters in parameters ? It tried open "~/Library/Messages/Attachments/87/07/079C263B-0586-48C6-B721-3C6AABAC76DF/Messages ...
3
votes
1answer
2k views

How to fix multiple errors when installing Homebrew on OSX Lion (mainly OSXFUSE and Mono related)

I'm trying to install Homebrew but I'm getting multiple errors when brew doctor is run. I'm a complete noob at this and I've tried uninstalling Homebrew and re-installing, but still not working. ...
4
votes
0answers
3k views

How do I remove the hostname from the bash prompt in Terminal? [duplicate]

My prompt in Terminal currently looks like: Dzulhelmis-MacBook-Pro:~ myusername$ I want it to be as short as possible, maybe at least no hostname there. How do I change my bash prompt?
2
votes
1answer
651 views

Terminal goes slow after install Mavericks OS

After I've update my OS to Mavericks. Terminal goes really slow, I've found out that the problem must be from Xcode. While I remove Xcode from my computer terminal works fine, and after I installed ...
1
vote
1answer
934 views

Mavericks - terminal change default printer paper size

I've been using the following terminal command to set the current default printer paper size to a custom paper size defaults write com.apple.print.PrintingPrefs DefaultPaperID -string 154x216 ...
2
votes
0answers
150 views

Sips not working with pict, qtif and sgi files

The terminal command sips -s format pict /path/to/image.ext --out /path/to/output.pic ouputs Error: Unsupported output format com.apple.pict even though if you do man sips and go down to format, there ...
3
votes
1answer
401 views

All files in Finder show 'Date Modified' with correct days but always the same hour: 19:08

When I open a Finder window, all the file timestamps show the same hour, 19:08. The dates change, but the hour stays constant. This is also the case for time/dates shown in the Console. The Clock on ...
4
votes
1answer
163 views

Are there any improvements in the Mavericks Terminal app? [duplicate]

Most OS X updates have included a few tweaks to the Terminal app. I know that Mavericks has upgraded a lot of command-line tools, but I haven't seen any reports of changes in Terminal.app itself. Has ...
0
votes
1answer
444 views

How to socksify apps in mac os

Is there an analog on mac os for http://linux.die.net/man/1/socksify ? So that i can use it like on linux: socksify mongo ....
6
votes
3answers
387 views

Terminal command to bring up shutdown dialog?

I know how to shutdown a Mac from Terminal, but is there a way to actually bring up the shutdown dialog you get from Apple → Shut Down…?
1
vote
1answer
91 views

Making Hidden Apps Appear Faded Whilst Sitting On The Dock?

Sometimes it can be quite difficult for me to tell which of my apps are hidden on the dock and which are not. Is it possible to make those Apps which I have hidden (either by terminal command or ...
7
votes
2answers
499 views

Multiuser GNU screen sessions

I am attempting to set up multi user screen sessions on Mac OS 10.7.3 and I run into the error Attach attempt with invalid pid(xxx)!. If set it up as follows: Initial configuration of system: Make ...
9
votes
3answers
13k views

How to fix Terminal error DYLD_ environment variables being ignored because main executable (/usr/bin/login) is setuid or setgid?

Any time I open a new terminal window (independent of terminal app), the console stderr displays dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/login) is setuid or ...
4
votes
2answers
18k views

installation stuck in a loop due to damaged HD

Right off the bat I'll admit it was stupid to jump into trying to install a new version of OS X to the only partition without having taken adequate precautions (no backups or recovery disks), but ...
2
votes
1answer
439 views

Terminal output as a screensaver?

I want people to keep an eye on a script running in terminal whilst I'm away from my desk, but I don't trust them access to my machine. Is there a way to show the terminal console as a screensaver, ...
0
votes
1answer
135 views

Add a value to CustomPapers' plist using Terminal

I'm trying to add a printer to CustomPapers' .plist using this terminal command: defaults write com.apple.print.custompapers.plist 165x165 -dict-add ...
0
votes
1answer
2k views

How do I change the gateway of a specific connection using the Mac terminal?

My goal is to be able to change all of the following for a specific device: IP address, netmask, and gateway. So far, I've gathered that I should be able to use ifconfig con0 10.8.0.14 netmask ...
1
vote
1answer
686 views

terminal starts with `no such file or directory` message

I removed Enthought Canopy from my Mac and now when I start terminal there's this warning message says -bash: /Users/myname/Library/Enthought/Canopy_64bit/User/bin/activate: No such file or ...
1
vote
0answers
355 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 ...
2
votes
2answers
184 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
190 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 ...
2
votes
2answers
2k views

curl command can't be found, OSX utilities have been replaced by GNU coreutils… how to start from scratch?

I recently installed homebrew and I was having a hard time because I could not install it as curl command couldn't be found, someone pointed me to use wget and that worked to install homebrew but now ...
7
votes
2answers
2k views

How can I merge two similar-but-not identical folders?

I have a folder (which is filled with many many sub-folders and files) which is on a FireWire drive [source] which I am trying to move to a USB drive [destination]. I am trying to move all of the ...
1
vote
1answer
572 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
644 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 ...
7
votes
1answer
3k views

Transparent Background in Terminal?

On Ubuntu, I can change the terminal background to be semi-transparent. I've seen other people do this in OSX, but I don't see the setting anywhere. Is there some way to make this happen?
2
votes
1answer
300 views

How can I systemwide check if a keyboard shortcut is in use or has been registered?

How can I query OS X to know if an application has registered a shortcut? I could inspect every app I have or that is running at least with KeyCue and go through the Keyboard Shortcuts section of ...
2
votes
3answers
11k views

Can't change folder permissions

I'm running Mountain Lion and I have a folder in ~/sites that has a red icon on the folder and I can't open it because 'access is denied'. What I've tried: Get Info > unlock with admin password, ...
2
votes
2answers
2k views

What is the real working method of making a bootable usb drive?

Always when I need to make a bootable usb drive on a mac I struggle, I end up switching to windows because none of the below works for me, I'm using MacBook Pro: running sudo dd if=Debian.is ...
0
votes
1answer
654 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 ...
7
votes
2answers
412 views

How can I process/read checkmarks on a paper form?

I would like to process a large number of scanned paper forms (GUI or command line). I am only interested in reading (custom) checkboxes. The form looks like this: every line has 6 circle-shaped ...
4
votes
1answer
452 views

Can an alias be added to the dock via the command line?

I found this article but it handles the GUI solution. I would like to automate the setup of a new machine, and do that I've created Dropbox shares of a number of my common configurations. (I could ...
2
votes
2answers
618 views

How to recover from “chown -R $USER /usr/”?

I ran a 'chown' on everything under /usr to a non root user. Meant to run it for /usr/local/ Now I get the error below on opening terminal login(89809,0x7fff7bac5960) malloc: *** error for object ...
0
votes
1answer
89 views

Error Opening Image File in Terminal

Much like: How do I cat a deleted file which is still open by its inode?. I am using 'Sleuth Kit' command line tool, to gather relevant data from the disk. But I keep on getting: Error opening image ...
1
vote
1answer
53 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
1answer
146 views

Can I map a character to a different key?

I am using a British IBM model M keyboard with Mountain Lion. I have selected the "British - PC" input source and it is working well, except for one key: the pipe. If you consider what is printed on ...
1
vote
3answers
4k views

How To Securely Erase Free Space Using Terminal?

A friend told me that when you delete a file on your Mac in the normal way it actually stays where it is, but it is just no longer usable by your Mac. The addition of more files to your Mac causes ...
3
votes
1answer
105 views

Exporting the filepath of all music files to a text file

I'd love to know the syntax within Terminal to export the filename and path of all my music of various types (I have legacy Windows .wma files too). I'd presumably export those file to a .txt or .xls ...
2
votes
1answer
181 views

Search files across folders and move recursively to new folder

I need a way to search from a base folder, all the folders inside of that one recursively, and find all photos of JPG and PNG that were created before a certain date (01.Feb.2013) and then move them ...
4
votes
3answers
727 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 > ...