Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions about the Terminal application or its terminal emulation should use this tag. Use **command-line** for questions about shells or command-line programs that do not specifically involve Terminal.
199
votes
Accepted
How can I open a Terminal window directly from my current Finder location?
As of Mac OS X Lion 10.7, Terminal provides Services for opening a new terminal window or tab at the selected folder in Finder. … Look for "New Terminal at Folder" and "New Terminal Tab at Folder". You can also assign them shortcut keys. …
94
votes
Accepted
How do I reset the scrollback in the terminal via a shell command?
Terminal supports an extension of the ED (Erase in Display) escape sequence to erase the scroll-back. It is also supported by xterm. … If you put this in a shell script that you don’t know for certain will only ever be run with Terminal, you should check that $TERM_PROGRAM is Apple_Terminal before sending it.) …
86
votes
Accepted
Can a Terminal window be resized with a Terminal command?
Terminal supports escape sequences for manipulating windows, including the size and position, layering, and minimizing. Dimensions can be expressed in pixels or characters. … Emulators
Some terminal emulators ignore these control sequences by default and require configuration to enable them. …
28
votes
Accepted
Where does $LANG variable gets set in Mac OS X?
A temporary solution is to drag English to the top of the list of languages, then open Terminal, then move Lithuanian back to the top. Then only Terminal will be in English. … However, it will reset to Lithuanian if you Quit and restart Terminal. …
25
votes
Accepted
How can I save SSH Bookmarks in Terminal?
Choose one to create a new terminal and run the associated command. … You can even tell Terminal to open a particular window group each time Terminal starts in:
Terminal > Preferences > Startup
Improvements in Mac OS X Lion 10.7
In Mac OS X Lion 10.7 this gets simpler …
22
votes
Accepted
Why does the folder icon in my Terminal have a question mark overlaid?
If you’re using bash (the default shell on macOS), by default it sends a control sequence to the terminal at each prompt to tell Terminal the current working directory. … To fix this, update the environment variable with:
HOSTNAME=$(hostname)
Another scenario is where you quit Terminal, change network configurations, then open Terminal with Resume enabled. …
20
votes
How can I "say" to another Mac?
On the target machine, enable:
System Preferences > Sharing > Remote Apple Events
Then from your machine run the following script (in AppleScript Editor, or via osascript in Terminal):
tell application … You can do this from the command-line in Terminal with:
osascript -e 'tell application "Finder" of machine "eppc://machine-name.local" to say "Hello"'
How to Display a Message on a Remote Machine
You …
17
votes
Does OS X's terminal app support mouse?
As of OS X El Capitan 10.11, Terminal supports Mouse Reporting. You configure application programs to enable it. For example, in Vim use set mouse=a. … Terminal supports reporting three mouse buttons and a scroll-wheel, along with Shift, Meta, and Control modifiers. …
15
votes
Accepted
How to make Mac Terminal restore working directories when restarting
Terminal automatically restores the working directory if you’re using the default shell, bash. … If you’re using zsh, see my answer to Resume Zsh-Terminal (OS X Lion), in which I include the appropriate code for zsh. …
14
votes
Accepted
Is there any way to have a badge appear on the Terminal icon in the Dock when a command comp...
As of Mac OS X 10.7 Lion, Terminal has exactly this feature. … terminal
(If there is only one tab in the window, choose View > Show Tab Bar to see the tab, which also displays other status information.) …
14
votes
Accepted
How to turn off the Terminal's "Allow mouse reporting"?
The View > Allow Mouse Reporting menu item does not enable the terminal Mouse Reporting behavior, it merely controls whether Mouse Reporting is allowed. … This gives the user a means to temporarily bypass Mouse Reporting when it has been enabled by application programs, to interact with the terminal view for short periods of time. …
11
votes
Accepted
iTerm2/Terminal full screen
terminal application programs make the window an even multiple of that size (then add the window title, some margin around the sides, etc.), so there will never be a partial row or column visible. … Not that these aren’t solvable, but there are a number of dynamic behaviors to consider, and terminal applications typically keep things simple. …
11
votes
How to configure Terminal to be "Putty-like" when it comes to copy-paste with mouse?
As of OS X 10.8, selecting text in a terminal copies the text to a pasteboard and Paste Selection pastes the contents of this pasteboard (akin to X11’s PRIMARY). … You can of course drag to other terminal windows (or other applications), but you can also just drag a few pixels and then release to Paste into the current terminal. …
10
votes
Can I make my Mac OS X Terminal color items according to syntax, like the Ubuntu terminal?
As of Mac OS X Lion 10.7, Terminal allows you to customize the sixteen ANSI colors and also supports the 256-color palette. …
10
votes
Why is there a left bracket before my bash prompt?
The new Marks feature in El Capitan 10.11 Terminal adds structure to the terminal contents by marking prompt lines and other interesting content, enabling operations like navigating, selecting, Copying …