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
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
5k 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
226 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
442 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
1answer
116 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
607 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
237 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 ...
16
votes
2answers
18k 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
204 views

Where are login options stored?

How can I read Login options from terminal (Automatic login, Display login windows as, Network Account Server etc.)?
3
votes
1answer
729 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
180 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 ...
3
votes
1answer
10k 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
127 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 ...
4
votes
1answer
449 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 ...
0
votes
0answers
180 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 ...
2
votes
1answer
36 views

How do I get the terminals in terminal.app to go to the right directory after restart with tcsh?

The terminal.app keeps the tabs after a restart and it even shows the content of the buffers. But all open tabs are at the home directory rather than the working directory they were in at shutdown. I ...
0
votes
1answer
53 views

Weird Output in terminal

I am using the terminal for some debugging and I noticed that it has stopped displaying my user before the path. Now its displaying (null) like so: (null):mspgcc-examples dean$ Whats changed? As ...
0
votes
1answer
167 views

uptime: /dev/ttys003: No such file or directory

When I use the uptime command on OS X, this error is printed: $ uptime uptime: /dev/ttys003: No such file or directory 20:57 up 36 days, 22:10, 3 users, load averages: 1.77 1.37 1.75 By running ...
1
vote
1answer
160 views

>console login - changing the screen size

so when I log into the terminal from my login screen (by typing >console as username), I get logged in to the terminal. However, when I try to use vim or anything useful, it only takes up around 1/4 ...
2
votes
1answer
168 views

moving the downloads folder inside another folder (10.8.2)

i was hoping to utilize this trick How to move the Downloads folder (in Mountain Lion) to another disc to move my Downloads folder inside a directory called "disktop zi5" which is inside the directory ...
2
votes
1answer
93 views

How to implement this script on a Mac

I just read Matt Might's blog post on eliminating filler and "weasels" from my writing, and I am wondering how I would implement this on Latex to run and check my document? I know I should use ...
1
vote
1answer
405 views

Alt-. and vertical bar (pipe) on terminal

On linux consoles I always use Alt + . to get the last argument of the previous command in history. for example if I had ls /tmp/test as last command, and if I type rm Alt - this will result ...
0
votes
1answer
40 views

Equivalent to Alt on terminal [duplicate]

On linux consoles I always use Alt + . to get the last argument of the previous command in history. for example if I had ls /tmp/test as last command, and if I type rm Alt - this will result ...
0
votes
1answer
2k views

How can I get tab completion back?

In terminal, if I try tab completion in a directory e.g. Movies, instead of the movies beginning with S (if I type S followed by tab, I see SetFile, Splitforks and SystemStarter. I suspect I installed ...
0
votes
1answer
674 views

Python IDLE can't be opened by double-clicking .py files in Finder

I can't open .py files in IDLE by double-clicking them in Finder (IDLE is currently set as the default program for opening such files). Nor can I open those files by right-clicking and selecting ...
1
vote
1answer
257 views

Terminal font is not smooth

I am new to Mac, and I am finding that the fonts are not smooth. Changing the system defaults (defaults write -g AppleFontSmoothing -int 2, "Use LCD font smoothing" checked) do not improve the fonts. ...
3
votes
1answer
119 views

mac asking password after cd in terminal

Recently my mac has started asking me for a password after I use cd in Terminal.app (haven't tested other term apps). strangely though, if I press ctrl-C when the passowrd is asked, the question goes ...
4
votes
2answers
3k views

Disable password authentication on SSH server on OS X Server 10.8

I want to disable the password authentication of the SSH server on my OS X Server. this should be done in /etc/sshd_config, right? But I’m not sure which setting I should change…
1
vote
4answers
8k views

How can I create a stand alone APP to run a terminal command

I have the requirement to manually run the OSX maintenance scripts in OSX (Lion / Mountain Lion). I would like to create a completely stand alone application that would achieve the following goals: ...
1
vote
0answers
1k views

My MBP (13 inch, MID 2010) will not start up

I have used the internet for the past 2 weeks in search of something that will help me troubleshoot/repair my MBP. It wont boot in Safe Mode using the SHIFT key. Following is everything I have tried ...
1
vote
0answers
290 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. ...
2
votes
2answers
265 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. ...
3
votes
0answers
6k views

How do I force a partition and format on a USB key in OS X Mountain Lion Disk Utility or from CLI diskutil?

I have a brand new Memorex TravelDrive 64GB USB disk which is being troublesome. It's formatted FAT16 on MBR, which is not so nice, and I'd like to put it on HFS+. I've tried to do this through ...
24
votes
2answers
847 views

How did this ominous file end up in my Application Support folder?

Deleting this file will break the whole internets, for the sake of our children don't do it!. The above quotation is the content of a text file called STR8369805638PUB6932583035105 that I found ...
1
vote
2answers
4k views

Ruby 2.0.0 fails to install because of openssl

I can't install ruby from source, on configuration (./configure) it states Ignore OpenSSL broken by Apple. Please use another openssl. (e.g. using `configure --with-openssl-dir=/path/to/openssl') ...
0
votes
1answer
866 views

Load .bash_profile automatically on Terminal.app startup?

I have seen various questions that ask something similar. They suggest changing .bash_profile to .profile. However this doesn't work either. I have aliases setup up in .bash_profile. I would like ...
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 ...
7
votes
1answer
5k views

Create a termnial command to open file with Chrome

I want to create command in terminal that would allow me to use chrome index.html and have the the given file open in Google Chrome. How can I get this working?
1
vote
2answers
790 views

Use Cmd as Ctrl key in vim

How can I input commands such as <Ctrl-W> and <Ctrl-]> in vim using Cmd instead of Ctrl? The reason why I want to do it is because it's more comfortable. When I need to switch to a ...
3
votes
1answer
183 views

Mac Terminal support for multiple fonts

I was trying to get emacs minimap to work on the terminal - http://www.emacswiki.org/emacs/MiniMap However, the font is the same size as the rest of the screen, which makes it pretty useless. It ...
2
votes
1answer
44 views

macos x terminal cursor is 1 posisiton righter then it should be

When I start terminal the cursor position is 1 position righter then it should be and there is a gap between last symbol and the cursor. How can I fix it?
2
votes
2answers
8k views

Terminal returns not found for most commands Mac OSX

I'm really new to Mac OSX and UNIX based systems. I wanted to run a few Windows games on my Mac Mini so I started installing Wine and MacPorts. Having done so, I typed in sudo port install wine and ...
1
vote
1answer
1k views

The Command to enter login items is not working in 10.8

I am entering the login item from the terminal but, this command is not working for me: defaults write ~/Library/Preferences/loginwindow AutoLaunchedApplicationDictionary -array-add ...
1
vote
2answers
236 views

Change ownership of all files, from one owner to another

I changed the shortname of my user account, but it seems to have caused an issue with some files (especially homebrew stuff), which are still owned by the old username. My old short name was cannyboy, ...
4
votes
1answer
2k views

Need more pseudo terminals

I'm running tmux and creating many sessions to various servers. After opening 128, I can no longer open new ones, or open new tabs in Terminal. The error messages is: forkpty: Device not configured ...
3
votes
1answer
1k views

Can you send a message across the network?

There used to be the ability, perhaps before OS X, to send messages accross the local network, which displayed a popup on the receivers machine with the message. Is this still possible? Or is there ...
3
votes
1answer
1k views

Is it possible to download Apple's Command Line Tools for Xcode from the command line?

Background My job gives me temporary MacBook Pros for travel purposes. I get them with a fresh OS install before I leave, and when I return, they blank the hard drive. The trips usually require some ...