The terminal emulator included in Mac OS X.

learn more… | top users | synonyms

44
votes
2answers
5k views

How can Homebrew print a beer mug in Terminal?

Homebrew has a neat trick of printing out little icons next to its output. Like this: If I copy paste the icon it on its own and hit enter I get the result: -bash: $'?\237\215?': command not found ...
39
votes
6answers
19k views

Mac OS X Terminal: mouse support?

Is there a native option (ie. without installing extra soft/package/plugins) to enable mouse support in the Terminal app? Actually, I'm using a lot vim with the option set mouse=a (activating mouse ...
37
votes
5answers
16k views

Set the title of the terminal window to the current directory

How can I get the Terminal.app in OS X to display the current directory in its window or tab title? I'm using the bash shell.
28
votes
5answers
38k views

Mac OS X keyboard shortcuts for terminal

After googling for some Mac OS X terminal shortcuts, I wanted to find how can I go back characters on a line on the terminal or words or similar. I found ALT + B but it does not work. Do you know ...
24
votes
1answer
2k views

What does Terminal app's “Show Alternate Screen” do? (OS X)

Today, I discovered a menu item called "Show Alternate Screen" in Terminal.app. I am just curious about what it does. It seems to be sharing the same shell process (unlike tabs), since I see output ...
19
votes
1answer
20k views

How to use Terminal to delete all .svn folders recursively?

what command can I type into Terminal so that I can: delete all .svn folders within a folder (and from all subdirectories) but not delete anything else ?
18
votes
2answers
3k views

Replace OS X's shell commands with the linux versions?

The commands available by default in the Terminal in OS X, don't seem to behave like their linux versions. How can I replace all of them with the actual GNU linux commands? For example sed -i ...
15
votes
10answers
16k views

Mac OS X - Could not start Terminal.app - shell has illegal value

I can not run the Terminal.app after rolling back my system from time machine. Mac OS X Version 10.6.2 It displays the following error. "Your are not authorized to run this application" "The ...
15
votes
5answers
16k views

Hostname issue in Mac OS X Lion

I've recently bought myself one of the new mid-2011 Mac Minis with OS X Lion, I'm completely new to Mac OS but I've used linux quite a bit before. The problem I'm having is that at the terminal my ...
15
votes
3answers
9k views

Mousing and Page-Up/Down in Terminal for Mac OS X

Compared to *nix, Terminal.app seems pretty lame. How can I get it to: Send Page-Up/Down to an application, instead of just scrolling the terminal output Mouse around in vim. set mouse=a isn't ...
15
votes
1answer
6k views

Use terminal scrollbar with tmux

I know how to scroll in tmux using the keyboard, but I noticed that it looks like there's a way to use the terminal scrollbar with GNU Screen. Can this be done with tmux?
13
votes
2answers
4k views

Resume Zsh-Terminal (OS X Lion)

OS X Lion has "Resume" feature, i. e. when you reopen an app it restores all windows and their contents. That works for Terminal as well. But if you use Zsh instead of Bash it doesn't restore opened ...
13
votes
3answers
9k views

How can I install 7zip so I can run it from Terminal on OS X

I would like to be able to run 7zip from the command line on Mac. Does anyone have instructions on how to set this up?
13
votes
3answers
3k views

Copy colored output from Mac OS X terminal

I see a nicely colored output in my terminal. The terminal has a "Export Text As" command but it saves a plain-text file without the colors. Same with copy&paste. Do you know a way to save ...
12
votes
2answers
3k views

Can I specify double-click selection delimiters in Terminal.app?

In Mac OS X's Terminal.app, I'd like to set my own selection delimiters such that if I have the text foo.bar.baz and double click bar, only bar is selected. Is this possible and if so how?
11
votes
8answers
9k views

How to get Mac OS X Terminal.app and screen/vim scrolling to play nice?

OSX 10.6.3 Terminal.app Am a pretty dedicated screen user. Terminal.app line buffer and/or scroll does not seem to work for me. That is while in screen anything that goes past the top of the frame ...
11
votes
2answers
13k views

Setting iTerm2 as the default terminal (OSX Lion)

I would like to set iTerm2 instead of terminal.app as my default terminal. Go2Shell for example let you open a terminal to the current directory in Finder. I want to ba able to use iterm2 instad of ...
11
votes
3answers
4k views

Bash on Snow Leopard doesn't obey terminal colours

With the new version of Snow Leopard, OS X upgraded the bash version to GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0). Now, my .bashrc sets the following settings: # Colors export ...
10
votes
2answers
1k views

Mac Terminal/iTerm history cursor problems

So often, I run a command in either Terminal.app or iTerm, press the up arrow to go back to edit it, and the cursor jumps to the line above or somewhere totally in the wrong place. It especially ...
9
votes
1answer
2k views

How do I make OS X set the terminal title back to the original title when coming back from ssh?

Starting on OS X, I ssh into foo (a Linux box). My terminal title changes to foo. I then ssh into bar (another Linux box). My terminal title changes to bar. I log out of bar. My terminal title ...
9
votes
3answers
2k views

Snow Leopard hide scrollbar in terminal?

Is there a way to get rid of the scrollbar in Terminal.app in SN (it worked with earlier versions of OSX, but so far I didn't get it working on 10.6)
8
votes
3answers
8k views

What's the difference between ^C and ^D for UNIX/Mac OS X terminal?

When I try to stop something, I use ^C and sometimes ^D in terminal. What's the difference between the two? Why some program doesn't respond to ^C, but ^D. Why the Terminal.app just quits when I use ...
8
votes
3answers
10k views

Cannot use F10 key in Midnight commander running in OS X's terminal

I connect to my server from Terminal in Mac OS X 10.5. When I run Midnight Commander there I cannot use function keys like F10 to close MC even I cannot use mouse to control MC. Any idea why function ...
8
votes
2answers
5k views

How can I export all my Terminal.app settings from one Mac to another?

I want to set a group of terminal windows, each one with personalized colours, etc. How can I move the whole Terminal.app setting from one computer to another? Where are they stored? Can't see them ...
8
votes
1answer
3k views

enabling colors in the python interactive shell on OS/X

I have just modified my .bash_profile so as to have colors in iTerm and Terminal. Now, I want to enable syntax highlighting for the Python interactive shell, IDLE-style. How to do that?
7
votes
2answers
3k views

How can you customize your terminal bash prompt with smiley faces?

I'm trying to figure out how I can customize my terminal's bash prompt to use smiley faces. What I want (as seen in the example blow) is for the cwd to be separated from the prompt by a \n and show a ...
7
votes
2answers
1k views

name terminal/tabs

Is there a way to name a terminal window or even better give each tab a name. at the moment they just get the underlying process name : for example a tab running elasticsearch gets the name java
7
votes
3answers
14k views

How do I make Vim beautiful (read: Textmate font/color ) on Mac OS X Lion?

I am just starting to make the Textmate to Vim switch. I love it, but it's so ugly. I'm running Mac OS X Lion and needed Ruby support so I am using Vim 7.3 as installed via Homebrew not the Vim Lion ...
7
votes
3answers
3k views

Mouse cursor in Terminal?

I use Mac OS X Terminal.app. But the answer to this would probably apply to any typical UNIX-ish terminal emulator in a graphical environment. Question -- what do I do to: Use my mouse cursor to ...
7
votes
1answer
3k views

Making ls aware of “hidden” file flag

Is it possible to make ls aware of the hidden file flag on Mac OS X? Currently, a simple ls -lO produces: $ ls -lO total 0 drwxr-xr-x@ 84 danielbeck staff - 2856 29 Mai 22:44 Applications ...
6
votes
1answer
1k views

Web page from the terminal

I use Snow Leopard. How I can send a html page to a web browser from Terminal.app? If I am in $HOME dir, with a file myPage.html, can I view this file in a browser right from Terminal.app?
6
votes
4answers
3k views

Manipulate Mac OS X file icons from Automator or command-line

Is there a way to manipulate icons on an Mac OS X file from either Automator or the terminal? In my case, I want to remove custom icons (that is, the same as doing 'Get Info' and Edit->Cut on the ...
6
votes
3answers
6k views

How to kill a zombie process on a mac

How to kill a zombie process or find it's parent process on a Mac using the Terminal?
6
votes
3answers
230 views

How to identify the terminal from a script?

And don't say "$TERM" – it's always xterm. How can a bash script tell what terminal it's running in, specifically whether it's iTerm, Terminal.app, or actually an xterm? I ask because reset does not ...
6
votes
3answers
5k views

Mac OS X Terminal not logging in

I am running Mac OS X version 10.6.3 and when I open the terminal (with terminal.app or iterm) it just hangs on the login process. I've tried restarting, changing the startup command to /bin/bash, and ...
6
votes
4answers
8k views

How to send F9-F12 to curses program running inside Terminal.app?

F9-F12 are used by Mac OS X, and I don't want to get rid of them, I just want to be able to send F9-F12 occasionally to programs inside terminal (mostly F9/F10). Some programs like mc support ...
6
votes
3answers
2k views

Any way to prevent Dropbox from opening the Camera Uploads folder when an iPhone is connected?

When I connect my iPhone to my MacBook Pro, Dropbox always launches its Camera Uploads folder in Finder. Is there any way to turn this off (some command I can run in Terminal, perhaps)? EDIT: To be ...
5
votes
5answers
10k views

How do you get a shell on a Mac?

I have never used a Mac before. I recently went to an Apple store and tried to open a shell to try it out. But, I was not able to open a shell - no shortcut for it, not right-click-menu entry, ...
5
votes
3answers
12k views

Does anyone have a Mac Terminal script to remove hidden files?

My car stereo can play music from USB flash drives, so I asked about copying MP3s from an iTunes playlist. That worked fine, but my stereo wouldn't play the MP3 files. I eventually put the flash ...
5
votes
5answers
3k views

Arrow keys don't work in htop on OS X in Terminal

Not sure when it happened, or what I did (if anything), but my arrow keys don't work in htop anymore to scroll around. They used to though. You should be able to press up and down to scroll up and ...
5
votes
2answers
2k views

Select text from Terminal.app using the keyboard in OS X

I like to copy things from the terminal, but I don't like to have to move to the mouse. How do you select text in Terminal.app using the keyboard? For example, while in Terminal one might like to be ...
5
votes
2answers
1k views

Equivalent of 'clear' command when using tail -f

I am using the tail -f command to follow an error log, and I often want to "clear" the terminal, much in the same way that the clear unix command moves everything above the top of the window. Is there ...
5
votes
2answers
2k views

How to compile Rarcrack for Mac OSX?

I have a rar I desperately need whose password was saved as a file on a site that no longer exists :(. I'm running it on a mac osx 10.5.8 and have never used the terminal before but I figured out ...
5
votes
1answer
153 views

Can I scroll Terminal down when there is nothing to scroll?

When I reach the bottom line, I want to be able to “scroll” down the virtual space so the prompt is at the top again (like in the beginning): Is there any way to do this? This becomes even more ...
5
votes
2answers
4k views

How to get files from Mac OS X desktop to Remote Server?

I typically use an FTP client to get files up to a server. But this time I was given remote access. So I am using Windows Remote Desktop Connection (on a Mac) and I am logged into the server. I see ...
5
votes
3answers
2k views

Can I make Terminal.app open different profiles with shortcut like iTerm?

I've been using iTerm for a while, but I switched back to Terminal.app in Snow Leopard due to the Visor plugin. Most of thing works pretty well after I switched to Terminal.app, except in iTerm, I ...
5
votes
3answers
2k views

Any way to fix screen's mishandling of line wrap? (Maybe only Terminal.app)

I'm having an issue using screen and Terminal.app. If I get a bash prompt at the bottom of the screen and I keep typing until the line wraps to the next line, I see the next line, but I do not see ...
5
votes
2answers
721 views

Capturing remote output locally in Mac Terminal

I want local programmatic access to ssh output in Mac Terminal. First, I tried redirecting the output of each command to a file. The file was perfect, but of course it was on the remote server, and ...
4
votes
4answers
5k views

Spawn a new terminal window (Mac OS X)?

I am often working in a process in the Terminal and I've set some variables and used cd and so forth. Then I'd like to open another Terminal window from there. Is there any way to do this?
4
votes
2answers
4k views

How can I hide or remove the split-pane bar on the right in Mac terminal?

What do I need to do to remove the split pane sidebar on the right from the terminal window? Never used to have it and now I don't know how to get rid of it.