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

2
votes
1answer
763 views

How do I make a bash script so that I can drag its input on top of the icon?

I need to make a bash script to that I can drag a .rar file on top of it and then the script will receive the pathname of that file as argument 1 ($1). I have made the bash script, but how do I make ...
0
votes
2answers
112 views

How to build a simple app that turns text to m4a files

I'm learning Chinese and want a way to quickly generate and save words and phrases to m4a files. I've managed to do pretty much what I want in terminal, but I can't seem to figure out how to make an ...
5
votes
2answers
974 views

Is it possible to get the full suite of unix options for the command line tools on OS X?

I follow Unix Tool Tip on Twitter and it is interesting that many of the tips that are posted are not available on OS X. For example: cp - u will only copy files that don't exist, or are newer ...
0
votes
1answer
46 views

Cursor does not go begining of the line

Hello I am trying to go begining of the line. neither left arrow key or ctrl + a lets me do it. everytime it keeps couple letters on the right. however its a visual bug my cursor is actually in the ...
5
votes
1answer
3k views

For iTerm2, how do I make the working directory appear in the window title?

I recently switched to iTerm2 from the default Terminal app and have a usability issue. On Terminal, the working directory you are in shows up on the title bar along with the process and pixel ...
0
votes
3answers
8k views

bash: brew: command not found [closed]

I am new to mac and was following a video and typed export PATH="$HOME/opt/git/bin:$PATH" I believe this messed up my path and I am not able to install MySQL now. When I tried to install homebrew I ...
3
votes
1answer
688 views

How to launch pdf viewer from the terminal

I'm working using LaTeX, since I compile the document in the terminal, it would be much easier for me to open it in pdf viewer directly from the terminal. I'm using OS X 10.8.2 in Polish, so I'm not ...
0
votes
2answers
495 views

Auto open 4 terminal sessions and SSH them to a given host

I'm doing Rails development on a MacBook via a VirtualBox setup that's somewhat similar to Vagrant. My inconvenience is that I like to have at least 3 terminal tabs connected to the VM via SSH (one ...
0
votes
1answer
233 views

Why does shasum generate non-standard hashes?

As far as I can tell, the shasum that ships with os x doesn't generate the hashes that it's supposed to. $ echo "" | /usr/bin/shasum adc83b19e793491b1c6ea0fd8b46cd9f32e592fc ?- When I look up empty ...
0
votes
1answer
250 views

How do I disable a specific wifi network through terminal?

Is there a way to disable a specific wifi network in Terminal? I'd like to disable my home wifi connection for reasons outlined here: Reclaim Your Life After Work by Disabling Internet Access for ...
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 ...
0
votes
1answer
231 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 ...
4
votes
2answers
445 views

Change the default action to open executable files in the editor instead of Terminal

When double clicking an executable file (without a file extension) in Finder, it opens in Terminal by default. I can change that to any other application for this single file, but I cannot change the ...
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 ...
7
votes
3answers
2k views

Can Finder and the “open” command treat files with .sh or other typical extensions just like .command files?

I am looking for a way to inject some more extensions into the OS X launch services database systematically so that when clicked, they execute in the terminal app just like .command files do by ...
0
votes
1answer
648 views

How can I access a remote machine via SSH from behind a proxy?

I’m trying to connect to a Linux machine via SSH. The problem is that my Mac is in a different network, behind a proxy that routes HTTP and HTTPS through port 80. How can I access the Linux machine ...
1
vote
1answer
3k views

Force relaunch of Finder from terminal into background

For some reason, Finder is no longer running and will not relaunch using conventional methods. I can, however, get it running with the following command in the Terminal: prompt$ open -g ...
2
votes
2answers
368 views

How do i autorun .command files from a USB drive when I plug it in?

I've made two .command files, "lock" and "unlock". The first hides hidden files with: defaults write com.apple.Finder AppleShowAllFiles TRUE, then refreshes finder with killall Finder. The second does ...
2
votes
2answers
218 views

Alternative to “luit” which is available via homebrew

I have a few legacy commands which I need to run in the terminal. Unfortunately they only work with ISO-8859-1 encoding being used. For now I manually switch the terminal encoding, but that bugs me. ...
1
vote
1answer
164 views

Where are login options stored?

How can I read Login options from terminal (Automatic login, Display login windows as, Network Account Server etc.)?
0
votes
2answers
209 views

(find: *.png: No such file or directory) terminal

I am trying to do some batch processing in terminal with texturePacker. The creator of texturePacker said that this is the way that you batch convert a directory of .pngs to .pvr.ccz. find ...
1
vote
1answer
524 views

mail and mailx fail to send emails to gmail

Quite frequently I have to send the outputs of my work on terminal (e.g. when compiling code) to my colleagues via email. I was wondering if it is possible to pipe (|) the output of a terminal command ...
4
votes
1answer
373 views

How do I find where an environmental variable got set?

I installed a program to try it out, and decided I didn't like it so I moved the app to the trash. Today, in my shell, I noticed that there are a couple of PROGRAMNAME_BLAHBLAH environmental ...
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 ...
0
votes
1answer
1k views

How to get “Subl” to work in my terminal?

Whenever I enter "subl" in the command line of iTerm it tells me that the command is not found. I have seen many message boards pertaining to this and nothing seems to work. I have tried entering "ln ...
0
votes
1answer
493 views

Dim screen beyond lowest brightness from terminal [duplicate]

Anyone know of a way to dim a mac's screen beyond the lowest brightness setting through the terminal?
0
votes
1answer
477 views

How to Reset Full-Screen Terminal.app Preferences to Factory Defaults

On an iMac running Mac OS X version 10.7.5 I have accidentally resized Terminal.app to full-screen (272 x 76) and am unable to resize Terminal.app to a smaller size. How do I resize Terminal.app to ...
2
votes
1answer
533 views

How to change fonts picked by Terminal.app to display languages other than English?

This is definitely and advanced topic and possibly needs a hack that I am willing to do. I edit Arabic files quite a lot. Arabic characters displayed by Terminal.app are not playing nice at all. To ...
1
vote
1answer
2k views

how to execute mkdir in /home/ directory

I want to create a directory 'administrator' in my /home/ directory but it won't allow me as it alway returns the error Operation not supported. Any ideas? Roberts-MacBook-Pro:home robert$ pwd /home ...
1
vote
1answer
2k views

Terminal Tab Title after SSH Session

In Mac OS X (I'm on 10.6.8, though I believe other versions are the same) ssh'ing into a remote machine changes the title of the current tab in Terminal. Annoyingly, when I disconnect from the remote ...
1
vote
1answer
596 views

how do I reset or clear the list of Volumes?

I am running into this problem when I accidentally remove a USB drive without properly ejecting it or similar and then plug it back in. When my drive is plugged back in it will apear normally, for ...
6
votes
1answer
1k views

Terminal: Application Not Responding

A few days ago, Terminal.app suddenly stopped working. Whenever I open it, the little light below the icon in the dock turns on (and stays on), but no window appears. When I right-click the icon, I'm ...
0
votes
0answers
330 views

Where did tab completion go?

Recently, in both Terminal and iTerm, my tab autocompletion has stopped working. About 80% of the time I just get the error sound when I hit TAB. About 20% of the time I get the expected behavior. ...
1
vote
2answers
3k views

How can I import private keys to iSSH app in iPhone?

Suppose a private key in Dropbox/server. I have tried copying it from Dropbox to iPhone's default clipboard and then to iSSH app but there is no area to paste it in iSSH, very unintuitive ...
0
votes
0answers
61 views

Recreate unknown users on crashed mac

About a month back one of our Macs crashed and we had to restore it. The computer had an external drive connected to it and all the data is still there. Though some of the users are "missing". If we ...
2
votes
0answers
188 views

OS X breaks if I apply HFS compression to the whole volume. What do I need to exclude?

OS X breaks if I apply HFS compression to the whole volume. (It won't boot.) What do I need to exclude? I've been able to compress large parts of it, but then I had to restore after I compressed ...
0
votes
3answers
2k views

Change owner for all files owned by x

I copyied files from my MacBook, mainly files from /usr. The one and only user on my computer is called 'Julian' (like on my MacBook). A lot of the copied files are now owned by '501' (id of "Julian" ...
1
vote
2answers
364 views

Check if Network Accounts are avalible

We have a domain running Microsoft Active Directory and in that domain there is a number of Mac computers running Leopard and later. Sometimes the users are met by a red dot at the login screen, ...
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. ...
0
votes
1answer
110 views

How can I bind only Left-Option to Meta/ESC in Terminal?

I need Option for typing some special characters, so I cannot use Terminal.app’s “Use Option as Meta key” setting. But I cannot bear to do without an ESC-emitting Meta key either. Eventually I got ...
1
vote
2answers
535 views

Password problems changing users in Terminal

I'd like to switch between the default user in Terminal and the user 'postgres', created when I installed PostgreSQL 9.2. If I type su postgres, I'm prompted for a password that I don't know and ...
1
vote
1answer
193 views

set remote sharing prefs in terminal

I am admin for department and I want to batch change the "show remote management status in menu bar" so that I don't have to log in to each machine and set it. I have ARD so I can run a terminal ...
4
votes
6answers
6k views

How can someone coming from Windows learn Mac OS X file system and Finder?

I have recently purchased a Macbook Pro and I am very impressed with the machine and OS X. Coming from Windows the one thing I have struggled with is the file system and the Finder application. I ...
2
votes
1answer
635 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 ...
3
votes
2answers
797 views

SSH Key Error, sudo works fine

When I try to ssh (using ssh user@server.com) into my server at home from either the local network or from outside, I get the following error: But if I use sudo ssh user@server.com, it works with no ...
2
votes
3answers
569 views

Titling tabs in Terminal

I'd like to be able to set the titles on my tabs to short, easy-to-remember things, since I often have a few open. You can use Command-I and set the Title that way, but OSX appends the name of the ...
2
votes
0answers
172 views

Can I use the Terminal to find all OpenMeta tags on my system?

I know that there are apps that can do this, so I figure it must be possible: I'd like to compile a list of every OpenMeta tag that I've used on my Mac (OS X 10.8.3). But here's the rub: I'd ideally ...
0
votes
1answer
114 views

Removing current Python version and use other python version

First of all i installed python 2.7 with manual.After i installed python2.6 with macport with referenced this. And after i deleted my Python 2.7 files. The main point is when i write python at ...
1
vote
2answers
506 views

How do I disable DVD player auto start when a DVD is inserted by using Terminal

If anyone can help me with this it would be the best! I have just installed 150 Mac minis in a hotel and I'm using remote desktop management to control them. Now I need to disable DVD player auto ...
0
votes
0answers
170 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 ...