The terminal emulator included in Mac OS X.

learn more… | top users | synonyms

0
votes
1answer
3k views

MySQL in OS X Terminal.app — how to exit mysql command prompt but continue using the Terminal?

I type mysql and enter the mysql command prompt (denoted ~mysql) (I have ohmyzsh installed also). But I can't seem to do anything within it. No commands work. To exit, I type 'exit', and get [Process ...
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 ...
0
votes
1answer
100 views

OS X terminal eating the shift key

I'm switching from iTerm 2 to the stock OS X 10.8.5 terminal (work policy, iTerm isn't on the approved software list). In my tmux configuration, I've mapped shift-left and shift-right to change ...
7
votes
2answers
3k 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 ...
0
votes
1answer
27 views

Terminal is showing computer name as a weird number?

I have a Macbook Pro and I use the terminal quite often. So as usual, I launched terminal today and I saw: Last login: Sun May 8 13:20:40 on ttys000 172-15-43-17:~ koraytugay$ Until today, I am ...
10
votes
2answers
9k 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 ...
62
votes
7answers
31k 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.
-1
votes
1answer
24 views

Find and move QuickTime files

I have a serious number of QuickTime files in a series of deeply nested folders (by date, by provider) on a connected server. Is there an easy command that will both find the file (I know the exact ...
1
vote
1answer
23 views

can't find zsh history on OSX 10.8.5

When I log into the Terminal app on OSX my default shell is /bin/bash. Entering echo $HISTFILE points me to /Users/monkeybrain/.bash_history and head $(echo $HISTFILE) shows me that the file contains ...
1
vote
1answer
5k 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 ...
0
votes
1answer
21 views

What is the right way to launch tmux in Terminal.app on OS X

I have ... if [ "$TMUX" = "" ]; then tmux; fi ... in my .zshrc which works great for ssh connections. However, I have trouble with Terminal.app. When I type exit, tmux closes, but I am left in an ...
3
votes
1answer
39 views

get url of opened tab with terminal app on OSX

I have a tab open in Google Chrome. Is it possible to get or check it's url from terminal? I am running osx. Page title will also do.
2
votes
3answers
34 views

Is there a way to copy text in htop on Mac OSX?

I wanted to copy all of the process information related to a specific program/software (Adobe in this case, other ones in the future) and so I tried holding Shift as mentioned here: Is there a way to ...
0
votes
1answer
45 views

Mouse-scrolling nano in Terminal.app

In the OS X Terminal, we can use the mouse or trackpad to scroll in programs that use the alternate screen, such as less. This used to be possible in nano as well, both for local sessions as well as ...
0
votes
1answer
459 views

Open, resize and position Terminal App

Dow anyone have a script that opens a new terminal window, resizes it and then positions the window somewhere specific on the desktop?
0
votes
0answers
24 views

Still Lost on Blocking TCP Port Connections form Terminal

I'm still not 100% understanding what to do in Terminal to block certain URLs for specific ports. And I don't want to use Little Snitch. I really want to wrap my head around this. So if someone can ...
8
votes
4answers
27k 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 ...
1
vote
1answer
107 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 in ...
0
votes
0answers
28 views

OS X: `scutil --nc start` does not connect PPPT VPN

From an answer to this question I have tried the following to connect to a PPPT VPN network service: scutil --nc start 'us.justfreevpn.com' I just get this popup and no connection: scutil --nc ...
1
vote
1answer
83 views

Shutdown Windows 7 PC from Mac terminal

How can I shut down a Windows 7 PC remotely from a Macbook Pro, OSX El Capitan? I saw this question, where the most upvoted answer recommends using this command: net rpc shutdown -I <IP of ...
1
vote
1answer
29 views

Keyboard shortcut to scroll Terminal one line at a time

I'm using Terminal on OS X El Capitan. I want to scroll my terminal output by lines (not using page-up or down). I'm pretty sure I used to do this with Cmd-up/Cmd-down, but now that appears to just ...
0
votes
0answers
19 views

open ssh server file automatically with apple script

Hello respected persons , i am trying to build a apple script which first open terminal login in ssh with details and after login it open a python script which is on ssh server automatically . i ...
9
votes
3answers
11k 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?
0
votes
1answer
41 views

Sign into WPA2 network that requires a username from mac terminal?

I am trying to sign into my school's network through terminal. It has WPA2 security, however it requires that I put a username along with a password. Is this possible to do from terminal? Side note: ...
4
votes
6answers
2k views

How can I free files that are in use by quicklook?

I have a couple pictures I was looking through and deleting stuck in my trash (Mac OS X 10.6 latest) and finder tells me they are in use when I try to delete them. I looked around online and found ...
1
vote
2answers
173 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 ...
11
votes
1answer
4k 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 ...
2
votes
1answer
3k views

Save a remote server (ssh) connection including password on Mac Terminal

Can I save an SSH connection similar to the answer to this question but including the password?
0
votes
0answers
252 views

ACT!: Resolution of the dependency failed, type=“Act.UI.ActApplication”,name="

Issue Resolution of the dependency failed, type="Act.UI.ActApplication",name="".Exception message is: the current build operation (build key Build Key{Act.UI.ActApplication,null}) failed: The process ...
1
vote
1answer
51 views

Quit OSX Terminal on Last Window Close

I have my preferences set so that CTRL-D closes my current window, but I'd like the Terminal application to quit if I close my last/only terminal window. iTerm2 can do this. Can Terminal do it?
2
votes
2answers
148 views

Is there an OSX terminal command (el capitan) to disable / hide panes in System Preferences?

been Googling for the better part of an hour now and not too familiar with OSX ways of doing things via command line. If anyone has a great resource site for OSX system commands / switches that would ...
13
votes
10answers
12k 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 ...
0
votes
1answer
57 views

execute Shortcut on terminal mac os x

I have an application on another mac as mine, the software is still open, there are keyboard shortcuts that allow to perform tasks, I would like to execute shortcuts via the terminal from my mac.
3
votes
1answer
136 views

How to display github emoji codes in Mac Terminal?

I want to display emoji codes from http://www.emoji-cheat-sheet.com/ (e.g. :+1: ) inside github commit messages when doing git log. I use Mac Terminal app.
3
votes
1answer
1k views

Terminal.app opens different theme when launching a new shell window

So I set Terminal.app to open up with certain defaults. I like a specific theme (Homebrew) with a default size of 140×50. However if I click the close icon (red X) to close the window and ...
0
votes
1answer
47 views

What key on a Mac corresponds to the @ symbol in Windows in the Mac Terminal

One of my users is using a mac to connect to a Windows remote terminal. When trying to enter email addresses the @ symbol on the mac is typing a " symbol. Which key on the mac will type an @ symbol ...
0
votes
2answers
120 views

Find out all IP addresses of all Computers on Network

I want to list all IP addresses with their Computer's names (if my IP was 197.577.52.4: 197.577.52.4 - Luca's MacBook) through Mac Terminal or Mac Software. I tried many terminal commands, but it ...
4
votes
4answers
3k views

How do I ensure that the Mac OS X Terminal asks me for my private-key’s password every time I SSH?

The only time the Mac OS X Terminal seems to ask for my identity file’s password, is when I restart. I’m fairly paranoid, and this seems insecure; how can I ensure it asks for the password every time ...
1
vote
2answers
1k views

Is it possible to stream windows applications to Linux via VNC?

Is it possible to stream windows applications to Linux via VNC? Need only some apps not a whole desktop.
2
votes
3answers
358 views

How to run Python script in a terminal window by double clicking it?

I am running OSX, and I am making an app that has a Python program in the Resources folder, the Bash script calls the Python script to run when the app is launched. The script is in the MacOS folder ...
22
votes
5answers
6k 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 ...
1
vote
2answers
85 views

Changing the default action when clicking on links in Terminal.app

Previously I've been able to open links just by clicking them on Terminal.app. After updating my OSX, the terminal now gives Quick Look as default option for links. Is there any way to disable Quick ...
9
votes
4answers
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)
6
votes
1answer
15k views

How would I restart Apache using the Terminal in Mac OS X?

This is what I’ve done but I’m really new to terminal: Jeremys-MacBook-Pro-2:~ jeremyoconnor$ apachectl restart This operation requires root.
61
votes
7answers
32k 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 ...
10
votes
5answers
5k 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 ...
4
votes
3answers
5k views

OSX: Possible to use Total Terminal with iTerm2?

As I understand it, Total Terminal is a thin layer on top of Terminal.app that adds some Yakuake-like features. My question is: Is it possible to use Total Terminal with iTerm2 as the "backend" ...
1
vote
1answer
39 views

How can I change the color of only the command I type, and not the output following it?

export PS1='\[\033[1;31m\]\u\[\033[0m\]:\[\033[4;31m\]\W\[\033[0m\] \[\033[0;33m\]\$' This is what my prompt looks like at the moment. However, this paints everything after the $ in yellow too. I ...
37
votes
7answers
59k 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 ...
1
vote
1answer
91 views

Key and cursor glitch in Terminal.app

I am having a problem with Terminal. It is triggered when I do something that involves the Command key, Cmd-C, Cmd-V etc. It causes my keyboard actions to not be recognized until I click somewhere ...