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
2answers
274 views

Where is the official Apple documentation for the Terminal App? I need a list of escape sequences

Terminal.app does not implement all xterm sequences. I need to get the complete list of what it does implement. Is it available anywhere?
2
votes
2answers
2k 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 ...
0
votes
1answer
47 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
2answers
575 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
251 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
265 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 ...
0
votes
2answers
2k views

Solarized theme for Terminal

I've installed the Solarized theme for Terminal.app and imported it. But my Terminal is all gray, I don't get color highlighting on anything. Not even running Python terminal generates any color. How ...
10
votes
3answers
2k views

Disable line wrapping for output in the Terminal

I often read outputs in the terminal that get wrapped as they are too long. Since there is no way that I can modify the printed output, I need to let the Terminal allow for horizontal scrolling. Is ...
2
votes
2answers
178 views

Mac Won't Remember Hostname in Terminal After Reboot, gives 'unknown…'

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
232 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
901 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
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

look up a word in Dictionary.app in Terminal

Is there a bash or applescript to look up a word in /Applications/Dictionary.app from a Terminal window ? open -a /Applications/Dictionary.app/ --args word ignores --args, says "type a word to look ...
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
389 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 ...
0
votes
2answers
213 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
557 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 ...
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 ...
1
vote
2answers
2k views

“Home” and “End” HotKeys in Vim INSERT Mode with MacBook Pro

I am pretty new to Vim and to Mac, I have a MacBook Pro with Retina Display running OS X 10.8.3, which does NOT have native Home, End, PageUp and PageDown keys. I know the Fn + arrow keys can work in ...
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 ...
6
votes
2answers
1k views

Are Bash, Bourne, and Korn shells compiled into one binary in OSX?

On OSX 10.8, if you compare the binaries for bash, sh, and ksh, a few different shell options, they are the same size. If you take it further and cmp the binaries, there seems to be only a ...
0
votes
1answer
529 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
3answers
212 views

Is there a package management system for shell scripts on Mac OS?

Is there a package system (think npm, cpan, or even homebrew) that would be suitable for shell scripts?
2
votes
3answers
737 views

Sync apps preferences between multiple Macs

I tend to keep all my stuff in Dropbox. Now that I bought a second Mac, I thought that keeping also my applications preferences in Dropbox would have been a good idea. I managed to sync some of the ...
0
votes
1answer
499 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
574 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 ...
2
votes
3answers
181 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 ...
1
vote
1answer
635 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 ...
1
vote
1answer
2k views

Terminal shows hostname from old machine, not new machine

Right now I have a Mac Mini. I migrated macbook pro data from a time machine, but I didn't do it from the beginning of my startup. I used the migration assistance to migrate the data. However, I'm ...
5
votes
1answer
212 views

Weird line wrapping in terminal with a colored prompt

I have reason to think I've got improper escaping in my bash prompt (I get weird random line wrapping in Terminal). Can anyone point it out? It looks OK to me... export PS1="\033[0;35m\u\033[00m on ...
6
votes
1answer
2k 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
369 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 ...
5
votes
1answer
2k views

Best rsync options to transfer data between two Mac

I am about to move my data from my old iMac to a brand new MacBook Pro. I would like to start over with a fresh install on B and copy just a subset of my data, reinstalling applications from scratch, ...
3
votes
3answers
4k views

How do I edit Mac OS X terminal history?

How do I edit my bash history in Mac OS X? I entered a password in that window by mistake and do not want to remove my whole history.
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
198 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 ...
1
vote
2answers
386 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, ...
0
votes
1answer
112 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
562 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
201 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 ...
15
votes
2answers
15k views

what are the split terminal commands

I stumbled across the command-d hot key which splits the terminal into 2 panes. But I cant find documentation anywhere on how to close the new pane or even switch the focus to it so I can use it. ...
8
votes
3answers
2k views

How to add folder to Spotlight “do not index”?

Is there any way to programmatically add a folder to Spotlight's "Privacy" tab? Either through Terminal or Applescript? Often I want to click on an item in Spotlight results in Finder, and have that ...
1
vote
1answer
182 views

Where are login options stored?

How can I read Login options from terminal (Automatic login, Display login windows as, Network Account Server etc.)?
2
votes
1answer
662 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 ...
2
votes
0answers
175 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 ...
2
votes
1answer
8k views

SSH request timeout every time

I am trying to access a storage space we have at work via ssh but I get a timeout every single time (Mac OS 10.7.5 - Terminal). I checked firewalls, settings, even turned off Little Snitch, and port ...
0
votes
1answer
118 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 ...