The terminal emulator included in Mac OS X.

learn more… | top users | synonyms

6
votes
3answers
600 views

When I paste a command on my bash prompt it is not in history — how can I add it?

When I paste a command to my OS X or Ubuntu bash prompt using CmdV, the command is not in history – even if it is executed. The command is in history only if I type it. How to enable that pasted ...
1
vote
2answers
2k views

Mac: truly detach process from Terminal.app

On Mac OS 10.6.6, I want to make a bash alias or function that will run Google Chrome. Launching Chrome is easy: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome". The problem is how to ...
0
votes
0answers
9 views

mac silent pdf print via terminal

Is there some way to print pdf file on mac via terminal (silent print), using python or some other technologies? Here is example for Windows
1
vote
2answers
278 views

Detecting used terminal application (iTerm2)

Can one detect what terminal application is being used? I want the actual application, not TERM env in the question. I'd like to detect iTerm 2 / Terminal.app so I could set OSX specific keyboard ...
0
votes
0answers
14 views

2013 21.5" El Capitan iMac has loads of extra disks

My second hand 2013 iMac has been running really slowly. I have already done a complete wipe and reinstall, but that didn't help. trying to get to the bottom of this, and suspecting imminent HDD ...
-1
votes
2answers
16 views

How to open Mozilla Developer Edition from terminal

I wish to open Mozilla Firefox Edition app with index.html from terminal in my mac but don't know the command. firefox index.html command doesn't work.
29
votes
4answers
34k views

How to have full directory path always shown in mac terminal (like linux terminal)

In my ubuntu terminal I have always current directory shown completely. Just like this: blabla@blublu:~/music/my_album/classical/beethoven$ But in my Mac (Mac OS X 10.6.5) terminal does not show ...
0
votes
0answers
35 views

Is it safe to cancel hdiutil compact?

A sparse image is a type of disk image file used on Mac OS X that grows in size as the user adds data to the image, taking up only as much disk space as stored in it (quoth Wikipedia). If a sparse ...
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 ...
1
vote
1answer
207 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 ...
-2
votes
2answers
39 views

What's the use of a script that is run after login? [closed]

In several different network computers (school/company/...), I noticed that a script is run in the terminal after logging in with your personal account. Why would a network administrator run a script? ...
9
votes
5answers
16k 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 ...
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 ...
0
votes
1answer
119 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 ...
8
votes
2answers
4k 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
37 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
27 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
36 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
58 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
37 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
80 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
467 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
32 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
28k 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 ...
0
votes
0answers
38 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
103 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
37 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
22 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
12k 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
75 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
197 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
5k 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
413 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
52 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
197 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
58 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
180 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
50 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
147 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
383 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 ...