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

3
votes
1answer
916 views

Search through terminal history with up and down keys in OS X Lion

After I upgraded to OS X I am not able to use my ~/.inputrc bindings to search through the shell command history: # these allow you to start typing a command and # use the up/down arrow to auto ...
1
vote
0answers
358 views

After updating oh-my-zsh prompt is weird on startup

I have been using the default installation of oh-my-zsh (robbyrussell theme) without issues. I just did a 'git pull' and now on startup I see a weird prompt. As soon as I press any key the prompt ...
4
votes
2answers
710 views

How do I maximize a window vertically? [duplicate]

Possible Duplicate: What Window Management Options exist for OS X? Is there some keyboard shortcut, mouse gesture, or add-on I can install that will allow me to maximize terminal windows ...
1
vote
1answer
200 views

Automatically change settings of Terminal when in full screen

I often use emacs from a terminal (emacs -nw), and when comparing two files side-by-side (C-x 3) it is often useful to go into full-screen mode. I'm using a 27" screen, so full-screen mode provides a ...
41
votes
5answers
64k views

Can I open files in TextEdit from the Terminal in Mac OS X?

I frequently find that a terminal command to open a file in TextEdit would be very handy. Does such a command exist on Mac OS X?
3
votes
1answer
368 views

Can you please explain how the terminal prompt works?

I've got a question about the prompt in Mac's Terminal. I opened Terminal and was installing GIT. I don't know anything about Unix or how to use Terminal, so please forgive my ignorance. (I know that ...
1
vote
2answers
769 views

How can I change the meta key on OS X Lion's Terminal.app?

Is there any way to use "Option" as the meta key in OS X Lion's Terminal.app? The checkbox that was present in Snow Leopard is nowhere to be found.
3
votes
2answers
2k views

How to clean ._AppleDouble files from unix packages?

Introduction Here's my problem. On occasion, I create the odd deb package using dpkg-deb (e.g., dpkg-deb --build "folder" file.deb). The problem is that any file with an extended attribute, carries ...
2
votes
3answers
807 views

Launch terminal in new window by default

Is it possible to set up Terminal to launch a new window by default? I recently came from running Ubuntu and I normally open hundreds of terminals a day. It's a pain to have to always right-click on ...
5
votes
1answer
270 views

Why is mdfind only returning my most recently accessed files?

I've imported most of a javascript code base via mdimport (using the packaged SourceCode.mdimporter provided by Xcode) and it succeeds. However, mdfind only ever returns to me at most two results, ...
4
votes
2answers
3k views

Firing up Terminal from an Automator Workflow?

I quite often use the python -m SimpleHTTPServer command in the Terminal to fire up a webserver for testing apps. Having just learned the basics of the Automator, I figured this would be a great use ...
9
votes
2answers
4k views

List all defined aliases in Terminal

A friend who owned my current mac before me (I bought it from him) created a lot of alias commands. Is there a way of me being able to list all defined aliases and the command that is associated with ...
7
votes
1answer
477 views

How can I specify delimiters in Terminal for word and character selection before copying and pasting?

I am new to Mac and still struggling to be productive with fewer clicks and keys... When I use Terminal and click on a word, I would like the delimiter to be only space and not other characters like ...
7
votes
1answer
636 views

Show text in large type on the screen via terminal

I can put large text on the center of my screen with certain apps, such as Address Book (click on a phone number and choose "Show in Large Type") or using Quicksilver (type some text and choose the ...
52
votes
7answers
25k views

What is the difference between iTerm2 and Terminal?

I keep hearing that iTerm2 is much better than Terminal. I downloaded iTerm2 today and played around with it, but I couldn't see what is so much better about iTerm2. iTerm2 seemed just like Terminal. ...
2
votes
2answers
235 views

Booting for imaging

Our corp is implementing Macs for the first time. We are using Casper to manage them. Unfortunately our Computing Security folks will not allow a Mac Server with NetBoot on our network, which puts ...
6
votes
1answer
682 views

Adding movie-style sound effects to the Terminal

I want to have movie style sound effects in the terminal. You know, when every keystroke and line emits a cool little beep. (Something like this.) I've used KeyClick, but that's only for keyboard ...
6
votes
1answer
209 views

How to keep the text selection in Terminal.app when typing

In Terminal.app, when I select some text and start typing again, the text selection is gone. I personally find this very annoying. Is there a way to make Terminal.app keep the selection when I type?
3
votes
5answers
4k views

Where is nmblookup in Lion?

I'm trying to call nmblookup in a Terminal on Lion, but it's not available. How can I lookup NMB hostnames from the Terminal now?
13
votes
4answers
1k views

Is there a way to get Terminal on Lion to start up cleanly (without the buffered history)?

How can I prevent Terminal from showing me my old output when it starts? I would like it to always start with a clean window.
0
votes
3answers
1k views

I used to be able to use g++ from the terminal, but now it's missing. I still have XCode installed

I used to be able to use g++ from the terminal to compile c++ programs, but now when I try to use it, I get -bash: g++: command not found General advice on the internet was to install XCode, ...
2
votes
1answer
470 views

Password dialog appears for password-less SSH private key

I installed my SSH private key in ~/.ssh/id_rsa. There is no passphrase associated with the key, however, whenever I connect to an SSH server, a dialog pops up and asks me to enter my password to ...
3
votes
2answers
3k views

How to recover .profile on Mac OS?

I have mis-configured ~/.profile while adding new environment variable. I want to restore my original .profile for my Mac OS, I am not mac expert please help me. None of my shell command is working ...
3
votes
2answers
1k views

How can I use tmutil to figure out which files just got deleted?

I'm on Lion and until ten minutes ago I didn't know that the nifty new tmutil existed. But now I'm a little uncertain with all its options and sub-commands which to use to try and figure out what went ...
2
votes
2answers
1k views

Osascript error

I was messing around with some external libraries, and for some reason when I enter any Osascript command, I now get this error (before it did work): 2011-09-07 19:13:43.306 osascript[1083:707] ...
1
vote
2answers
263 views

How can I re-route Cocoa applications through ssh -X?

Is is possible to re-route Cocoa applications through ssh -X? I like being able to route X applications, but I want to route Cocoa applications too. Any ideas?
17
votes
6answers
5k views

How can I quickly navigate through man pages in the Terminal

Is there any way to quickly scroll through text-heavy output in Terminal such as man pages ? Using the up and down arrows only move the screen one line at a time; is there any way to scroll faster?
1
vote
0answers
208 views

Proxy won't work without telnet

This isn't a problem as such, more an irritant that's begging for a clean solution. At work we have a couple of Macs which I'm trying to get integrated nicely into Active Directory. We enforce all ...
2
votes
2answers
3k views

Emacs Ctrl-x ctrl-s command not working in Terminal.app

I am having issue when connecting to my school's unix remotely via Terminal (SSH) and attempting to edit code in emacs on my Mac. I have a Macbook Pro running Mac OS 10.6. I use the emacs that is ...
4
votes
3answers
762 views

How do I make symbolic links invisible in the Finder?

I use SetFile via the terminal to render files and folders invisible inside Finder windows. This does not appear to work on symbolic links: the symlink destination is made invisible, rather than the ...
11
votes
2answers
4k views

What is the difference between .command, .tool, and .sh file extensions?

I saw a couple of questions about executing command line scripts? I saw that the .command and .tool extensions were mentioned. I have always used .sh. What is the difference between these different ...
6
votes
1answer
2k views

How do I send C-/ (that is, control-slash) to the terminal?

I'm trying to run Emacs in a terminal. I've turned on the "use option as meta" in terminal preferences and so it's about 95% working right. The key sequence ctrl-/ (or in Emacs notation C-/) is ...
1
vote
3answers
720 views

-Bash command not found appearing every time I start terminal

every time I start my terminal, it always says "-bash: .: command not found" twice. Does anyone know how I can get rid of that?
4
votes
3answers
4k views

How do I rename the Downloads folder (in Lion)?

For whatever perverse reasons I wish to rename the Downloads folder to Temp. I would also be happy with a way of making it appear to me, in both the GUI and the CLI, as Temp. I am aware I can do this ...
2
votes
2answers
1k views

How can I mount a drive with Truecrypt through a script based on its UUID?

I keep an external drive on my desk at work that I used as an off-site (ie not at home) backup. Because it could easily get taken I have a partition on it encrypted with TrueCrypt. I've got a script ...
0
votes
1answer
880 views

sudo dscacheutil -flushcache = ?Invalid command [closed]

I'm getting the following response when I try and run dscacheutil -flushcache ?Invalid command
6
votes
3answers
210 views

Moving folder to Trash in Finder is not synchronized with Terminal

I tried to delete a folder which I access via terminal.app. Though the Finder moved the folder to the Trash, I was still able to see the contents and edit the file from terminal. created a textfile ...
1
vote
1answer
758 views

Details of the proxy address which is being used by Mac

Is it possible to get the proxy address that my system is currently using in order to populate HTTP_PROXY variable from command line ? I would like a command so that I could set it in my .bashrc ...
4
votes
4answers
9k views

How can I save SSH Bookmarks in Terminal?

I've recently become infatuated with TotalTerminal and am tempted to switch from iTerm back to Terminal just so I can use it, except that I rely heavily on a half dozen SSH bookmarks in iTerm. Is ...
1
vote
2answers
341 views

Is there a way to search my Samsung SCH-R500 phone through a Terminal window?

I have my Samsung SCH-R500 phone connected to my computer via bluetooth. Though when I go to browse in the 'Bluetooth File Exchange' software, nothing comes up. So, I was wondering if I can navigate ...
6
votes
2answers
2k views

What option should I give the sudo command to have the password asked through a graphical interface?

This problem has ben bugging me for a while now. Every now and then, I need to write a script file that should execute sudo commands. I do not necessarily know in advance that I will run as sudo so I ...
4
votes
1answer
799 views

Using screencapture when remotely logged in to a headless mac via ssh

I'm trying to use screencapture from the terminal, when logged in over ssh, to a mac that has no screen attached. I can screen share to the machine, so I'd like to capture the same display. However ...
4
votes
2answers
524 views

Terminal doesn't show badge - how to enable?

Opposite to another question here I want the badge count to appear. I have the "resume" function enabled in my Lion. Is there another setting that's responsible for the badge? To clarify I run tail ...
4
votes
1answer
14k views

How do I remove a user via single user mode in 10.7?

I occasionally will setup a user's machine that has been in for repair beyond the simple re-install of the OS. For example: install a new hd, install the OS, create a user, install updates and then ...
2
votes
3answers
1k views

How can I send email through a Terminal window?

I'm trying to figure out some basic Terminal commands, so I thought I'd try out 'mail.' I opened a Terminal window and entered the following: mail (my email address) (The Terminal then said ...
4
votes
3answers
13k views

uh oh. -bash: ls: command not found

I installed the most recent mac update to OS X Lion (10.7). After I did that, my terminal won't recognize normal commands. I type 'ls' and get: -bash: ls: command not found I figured I'd try to ...
2
votes
1answer
133 views

Problem with “Open With” menu

I ran this command in Terminal, which supposedly clears all duplicate applications from the "Open With…" menu and now many of my files are just showing up as blank images (.zip files, .dmg files, ...
0
votes
2answers
1k views

Lion Terminal remembers sudo password after quitting

I've been using Lion since its release, and I noticed today, for the first time, that Terminal did not prompt me for a password when I typed in a sudo command, if I close and reopen Terminal within ...
4
votes
3answers
817 views

How do I delete a locked, invisible file in the Trash?

On an external disk (that contains a clone), the /.Trashes/501/Users/myusername/Desktop folder contains (within some subfolders) a locked invisible file that I cannot delete. The whole folder starting ...
0
votes
5answers
4k views

How do I get Terminal to remember previous commands after closing window in SL 10.6.8?

Any way to enable scrollbacks after you quit the window? Even if the app itself is still running, closing the window and opening a new one doesn't work. I am SURE it used to work on my old Mac, but I ...