Questions tagged [terminal.app]

The terminal emulator included in Mac OS X.

Filter by
Sorted by
Tagged with
10 votes
1 answer
29k views

Perl for matching with regular expressions in Terminal?

I'm trying to familiarize myself a little with Perl to use for regular expression searches in Terminal (Mac). Now, I'm not really looking to learn Perl rigourously, just trying to find out how to do ...
Anders Svensson's user avatar
77 votes
7 answers
48k 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.
kareman's user avatar
  • 881
9 votes
4 answers
33k 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 ...
Wuffers's user avatar
  • 19.2k
54 votes
3 answers
25k 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?
Jeff's user avatar
  • 1,787
17 votes
2 answers
9k 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 ...
Simon Perepelitsa's user avatar
12 votes
2 answers
3k 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 ...
Chas. Owens's user avatar
  • 2,512
2 votes
3 answers
4k views

On a Mac, how can I group together commands I want run into a alias?

In my .bash_profile I have created alias to commands that I run often. What if I want to group together multiple commands together, and they should run in serial one after the other. How would I do ...
user27449's user avatar
  • 6,920
462 votes
14 answers
379k views

Mac OS X equivalent of the Ubuntu "tree" command

Is there an equivalent to the Ubuntu tree command for Mac OS X?
Misha Moroshko's user avatar
262 votes
4 answers
315k 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?
Paul Sheldrake's user avatar
81 votes
9 answers
171k 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 ...
politicus's user avatar
  • 1,007
59 votes
1 answer
60k views

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

What command can I type into the Terminal so that I can delete all .svn folders within a folder (and from all subdirectories) but not delete anything else?
Mikey's user avatar
  • 1,651
53 votes
7 answers
88k views

Using the Terminal keybindings with bash on macOS

I have been trying to learn the keyboard shortcuts for the shell on macOS, but when I tried using ALT+B, it did not work. How do you discover, configure and use keybindings in the shell? Any ...
Open the way's user avatar
  • 8,593
40 votes
1 answer
7k 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 ...
Barum Rho's user avatar
  • 565
13 votes
1 answer
7k 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 ...
Daniel Beck's user avatar
  • 110k
10 votes
5 answers
26k 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 ...
taw's user avatar
  • 1,947
9 votes
4 answers
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)
Nils's user avatar
  • 422
8 votes
3 answers
16k views

Script to create folder with same name as file and move file into folder

I have lots of individual files: /File 01.txt /Picture 02.png Is there a terminal command that would do this so I end up with this: /File 01/File 01.txt /Picture 02/Picture 02.png/ I'm on a Mac on ...
neildeadman's user avatar
7 votes
5 answers
9k 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?
Dan Rosenstark's user avatar
4 votes
1 answer
3k views

How can you turn off alternate screen in OSX's Terminal.app?

altscreen is evil. If you don't know what I'm talking about, see this page for visual demonstration. Problem is, there doesn't seem to be a way to stop it with Terminal.app (under OSX), when you're ...
yacoob's user avatar
  • 183
2 votes
2 answers
468 views

Terminal Problems OS X 10.6.4

I commonly have long terminal commands and whenever I try to use the command history (by pressing the up-arrow) the text formatting becomes all garbled and the cursor appears in the wrong place. At ...
jonnysamps's user avatar
1 vote
3 answers
2k views

How to assign a keyboard shortcut to a specific New Window template in Terminal.app?

I have a template set up in Snow Leopard's Terminal.app to create a new window or tab with my preferred emulation settings for a particular host that I use. I'd like to assign a keyboard shortcut to ...
emmby's user avatar
  • 1,217
85 votes
7 answers
51k 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 ...
avetis.kazarian's user avatar
29 votes
2 answers
11k views

Copy the output of the last command in iTerm2

With the default Terminal.app, one can select the previous command output with Cmd + Shift + A and then copy it with Cmd + C (source). Is there a similar shortcut for iTerm2?
Juuso Ohtonen's user avatar
23 votes
5 answers
14k 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 ...
Nick Retallack's user avatar
17 votes
4 answers
33k 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?
eFrane's user avatar
  • 315
14 votes
10 answers
15k 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 ...
rustychains's user avatar
13 votes
4 answers
14k views

Command line history & tab-completion for sftp in OS X Terminal.app

I use Terminal.app constantly. When connecting via ssh to remote *nix systems, I can continue to use tab to complete command names and arrow-up/down to navigate the command history. However, with sftp ...
chryss's user avatar
  • 378
13 votes
3 answers
7k 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
jassinm's user avatar
  • 233
12 votes
2 answers
6k 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 ...
hekevintran's user avatar
  • 2,717
12 votes
1 answer
9k views

Operation not permitted using Find in macOS Terminal

This is a lead-up to my main question here (Fully uninstall Norton from mac) I get "Operation not permitted" when running "sudo find" in terminal on macOS. I have given terminal ...
Tim's user avatar
  • 131
11 votes
2 answers
9k 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 ...
Josh Smith's user avatar
10 votes
4 answers
40k views

How to have multiple windows in a SSH terminal session?

From Mac OSX I login to a remote server that handles parallel computing jobs. I am not able to install anything on this server as it is administered by the university. I have multiple jobs running and ...
Saaru Lindestøkke's user avatar
6 votes
6 answers
5k 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 ...
Daniel Huckstep's user avatar
6 votes
4 answers
4k views

Mac OS Terminal - keyboard echo breaks after ctrl-c with some applications

The only two applications I've been able to reproduce the issue with are tail and cat. If I tail -f log/development.log or any file for that matter, and press CTRL-C to quit, when I type additional ...
Michael Guterl's user avatar
6 votes
3 answers
5k 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 ...
Patrick's user avatar
  • 1,899
5 votes
1 answer
2k views

Scroll Bar on OS X Lion Terminal won't go away [duplicate]

Possible Duplicate: Snow Leopard hide scrollbar in terminal? I have this scrolling bar on the right side of my terminal because I accidentally split the window and I've merged the windows, quit ...
Jackson's user avatar
  • 53
5 votes
1 answer
1k views

Where is the scrollback location for the mac terminal?

Title says all. (the one when you use the scrollwheel to see the old commands and results) I do not wish to clear it for sure as some data I have lost is within some old scrollback.
agz's user avatar
  • 8,278
3 votes
2 answers
2k views

Where to learn more about OSX terminal app keyboard settings codes?

If you look at the Terminal->Preferences->Settings->Keyboard pane it displays how some keyboard keys and combinations map to shell strings. The list seems really strange to me as it's missing a lot ...
audio.zoom's user avatar
  • 1,743
2 votes
3 answers
417 views

OS X El Capitan 10.11 Terminal 2.6 won't open new tabs with same working directory

I am using the default settings for Terminal, but when I create a new tab my working directory is always set to my home folder instead of the current working directory of the previous tab. Here's an ...
Chase Stubblefield's user avatar
2 votes
1 answer
327 views

How do you install pythonbrew when using the Fish Shell?

I use the Fish shell in Mac OS X and I cannot figure out how to install pythonbrew. Is this possible and if so how? What I think I need to figure out is how to convert the following for my .bashrc to ...
Christopher's user avatar
2 votes
3 answers
6k views

How can I launch a new Terminal in OSX with a specified profile from the command line?

I found the same question and a strong answer on SO: https://stackoverflow.com/q/4404242/147265 I'm looking to launch new terminals from the CLI in a different profile than my default. My current ...
Adam's user avatar
  • 155
2 votes
3 answers
942 views

What escape code do I need in PS* to make sure terminal is back in normal settings on shell prompt?

Sometimes I accidentally cat some binary data; sometimes some ncurses program crash - for plenty of reasons terminal can end up in bad state, requiring manual reset. This is happening too often. Such ...
taw's user avatar
  • 1,947
2 votes
2 answers
3k views

Vim text messed up on remote server

I often work on remote servers. There is one server that seems to get "confused" about the number of available columns (my best guess), but only when working in Vim (not bash). Specifically, when I ...
Mark Ebbert's user avatar
1 vote
2 answers
928 views

iPython in Terminal.app: multi-line editing

I'm using iPython in Terminal.app (on Mac), and when I scrollback to a multi-line block it's really slow moving between lines. Is there a keybinding (or can I configure one) to make it possible to ...
moinudin's user avatar
  • 3,074
1 vote
2 answers
2k views

Open Terminal with predefined tabs

Is there any way to open Terminal with predefined tabs? I have 5 most common paths that I usually use and I want Terminal to open with these paths opened in different Tabs. I guess this should be ...
Ilia Kukharev's user avatar
1 vote
1 answer
1k views

Mac OS X Terminal title incorrectly displaying "Python"

I have my Mac OS X terminal set to display only the active process name. But for some reason when I am at the shell prompt the title displays "Python". But when I type anything at the prompt, it ...
Wuffers's user avatar
  • 19.2k
1 vote
3 answers
223 views

How does Terminal.app detect a change to the terminal parameters?

In an answer to another question, Chris Page said that Terminal can detect when the terminal parameters are in a state that is likely to be for password entry. For example, the terminal may be in ...
fumoboy007's user avatar
1 vote
2 answers
868 views

Is there a way to hide Terminal.app's credentials (prompt text)?

I lose too many columns in my terminal because of the credentials ( Victor-Rodriguess-MacBook-Pro:~ victorrodrigues$ ). Could I shrink this? The only information I see as really needed sometimes for ...
user1088's user avatar
  • 267
0 votes
0 answers
330 views

(Mac terminal) command line advice for extracting thousands of archives

I have literally thousands of archives containing Amiga adf files that I've downloaded and want to unpack them all. Can someone please tell me the command line i need to use in terminal in order to ...
Steve Garratt's user avatar
0 votes
2 answers
488 views

Where can I find the "terminal" program on OS X?

Where can I find this app, and where can I find instructions on how to use it? My OS X is using the Dutch language settings.
user55156's user avatar