Terminal (or Terminal.app) is the program included in Mac OS X for running applications and issuing commands using the command line interface. These programs are controlled by typing lines of text, rather than using the mouse or keyboard commands in the usual graphical user interface (GUI).

learn more… | top users | synonyms

1
vote
2answers
325 views

My Press and hold accents have been disabled in Yosemite

I just got Yosemite and now my Press and hold accent capability seems to have disappeared with my old software. I tried using /System/Library/Input Methods/PressAndHold.app in Terminal to find Press ...
0
votes
0answers
41 views

opencv cmake not building

I've been trying to build OpenCV in a mac (Yosemite 10.10) using cmake-gui and the compilers gcc,g++ and gfortran given by MacPorts. I HAVE to use those compilers. I configured WITH_OPENCL to be OFF ...
1
vote
1answer
112 views

OpenCV library not installing after using cmake

I use Yosemite 10.10, and I need to build and install the OpenCV library using cmake-gui. I was able to configure and generate the binaries readily. But when I try to 'make' the library using the ...
0
votes
1answer
22 views

In bash, can test -e look for a file with a semi-variable name using *?

I have an if then looking for a certain set of files. They all start with lib, so I could either set an if then up for each one or I was hoping there's a way I can use an asterisk. Here's what I have ...
1
vote
1answer
296 views

Meaning of MAC terminal command prompt

I was wondering if anyone could explain the meaning the command below in mac terminal: dhcp-74-148:~ Noticed it for the first time today and just wondering what it meant. Thanks
2
votes
3answers
173 views

Terminal: Is there a way to be notified of activity when tailing an error log

I often ssh into a machine and tail -f it's php error log. My ideal situation would be to leave this terminal window open in the background, but when there's activity from the tail command, have the ...
5
votes
2answers
67 views

Accent popup in Terminal.app?

I was wondering if anyone has figured out a way to enable the press-and-hold accent popup in Terminal.app, where it does not work out of the box? Does not have to be press-and-hold, but some way to ...
68
votes
7answers
39k views

What is the difference between iTerm2 and Terminal?

I keep hearing that iTerm2 is much better than Terminal. I downloaded iTerm2 today and played around with it, but I couldn't see what is so much better about iTerm2. iTerm2 seemed just like Terminal. ...
12
votes
4answers
4k views

How can I play a midi file from terminal?

I'm looking for a most simple command line app (or an on-board tool on Mavericks I am not aware of) to play a midi file from the terminal. As plain as possible, something like play myfile.mid. ...
0
votes
1answer
30 views

Changing border colors

Border may not be the correct term for what I'm describing but I would like to change the color layout in OS X. That is, when I open a browser or the terminal, the borders are a light gray color. ...
0
votes
0answers
31 views

Terminal paste unreliable

I'm trying to paste text into Terminal (v2.5 build 343, I'm running Yosemite), and it seems to consistently omit characters. For example if I copy the following text to the pasteboard: ...
1
vote
3answers
108 views

Running a .sh file but after new PATH is not visible in shell

I am running a file ./setWLSEnv.sh which has the following output: http://pastebin.com/sSXRZd1s ...
0
votes
1answer
21 views

How can I automate port forwarding?

Is there a way in which I can automate port forwarding on the mac? I want to forward a computer to port 22, and my purpose of doing is so I can ssh from a remote location, making ssh easier. If so, ...
3
votes
1answer
6k views

How do I disable text antialias (font smoothing) in Terminal and globally for all apps?

I'd like to disable every kind of text anti-aliasing and font smoothing globally in OS X. With OS X 10.8 on a mid-2013 MacBook Air 13", I've tried quite a few options: the Turn off text smoothing ...
11
votes
3answers
13k views

Will Terminal show a progress bar when I copy with “cp”?

Is is possible to display a progress bar when copying files in Terminal using cp?
0
votes
1answer
349 views

how to get shell scripts to run at startup on Yosemite

There is a directory in System/Library for startup items I presume: StartupItems I need to have a shell script that will configure ethernet interface at start up, with local network address and ...
1
vote
3answers
225 views

Yosemite does not have ftp sharing option in file sharing preferences?

I have just obtained a Macbook Pro with Yosemite installed and am trying to connect to it from another host on the local network via ftp. The connection is refused. So I get into the preferences in ...
13
votes
2answers
14k views

what are the split terminal commands

I stumbled across the command-d hot key which splits the terminal into 2 panes. But I cant find documentation anywhere on how to close the new pane or even switch the focus to it so I can use it. ...
0
votes
1answer
77 views

How do I make an AppleScript use a Folder in the Contents of a Bundle for an alias on the Desktop?

I'm trying to write an AppleScript to make a temporary alias on the desktop from a folder that resides in the Bundle's Contents:Resources folder and then execute a terminal command that has an ...
0
votes
1answer
35 views

How to have full directory path always shown in mac terminal?

I found answers but they don't work: I added this line in .bash_profile: export PS1='\u@\H:\w$' It outputs: \u@\H:\w$ Instead of: user@host:my/Current/Path/In/This/Terminal/Window$
0
votes
2answers
27 views

“Use Option as Meta key” with ability to type the # symbol

I am using Terminal version 2.5, where I have two requirements: I need to be able to type the <META> key. I need to be able to type the # character. How can I satisfy both of these? By ...
2
votes
2answers
577 views

Terminator for Mac OSX

I'm using Ubuntu on a daily basis, and recently (6 months ago) I bought a Mac, so the first thing I did was installing VMWare and Ubuntu on my MBP. Also I'm a developper and I was a huge fan of ...
0
votes
1answer
69 views

Terminal: command overridden via shell script in /usr/local/bin not executed unless called directly

I've created a shell script wrapping ssh to change my terminal background when connecting to a server following one of the many examples on this site and stackexchange. 11:22 ~ $ echo $PATH ...
2
votes
0answers
77 views

ssh asks for passphrase not keychain password after locking keychain

I'm using Yosemite and store the ssh passphrase in a separate keychain (not the login keychain). This all works fine as long as the keychain is unlocked. When I lock the keychain, I expected ssh to ...
0
votes
1answer
22 views

AppleHighlightColor syntax

I'm changing my highlight color via a command I find in Mathias Bynen's dotfiles like so: defaults write NSGlobalDomain AppleHighlightColor -string "0.764700 0.976500 0.568600" I'd like to change ...
10
votes
4answers
30k views

How can I reset a Mac's password from Single User Mode?

My sister bought a used MacBook about 6 months ago and she has lost her password. Here is the procedure I tried to use to reset the password: Boot into single user mode (press Command-S at power ...
1
vote
2answers
127 views

Font Used in OS X 'Yosemite' Version of Terminal's Icon?

What font is used for the prompt ('>_') in Terminal's icon in OS X 10.10.x 'Yosemite?'
4
votes
2answers
2k views

How can I enable and/or disable OS X's power nap feature from within Terminal?

I can deal with it using some command-line commands such as defaults write … etc, but don’t know what the exact command and argument names to use?
1
vote
1answer
198 views

Setting environment variable for sudo in Yosemite

I followed this similar question to set my environment variables in Yosemite: ...
2
votes
2answers
140 views

Troubleshooting “Unexpected argument” error when running defaults write

Trying to change the default screenshot directory to a specific folder in my google drive, but when I try the following command defaults write com.apple.screencapture location ‘~/Users/tommy\Google ...
0
votes
1answer
273 views

Best Practices for dealing with unbrewed files in a fresh install of homebrew

I accidentally deleted /usr/local/bin which contained brew among other things. I reinstalled homebrew and ran brew prune to get rid of broken symlinks, but when I run brew doctor, I still get the ...
2
votes
1answer
120 views

Can't delete old TimeMachine backup

In terminal, trying to do the following: $ sudo tmutil delete /Volumes/BACKUP/Backups.backupdb/lappy/2014-11-02-005458/ Deleting: /Volumes/BACKUP/Backups.backupdb/lappy/2014-11-02-005458 I get ...
2
votes
2answers
283 views

Unlock Mac from Terminal or Automator

In my attempt to start iPlayer and BBC News every morning, I have scheduled Automator to open a page. It does work, however my Mac stays locked, therefore I need to get out of my bed and enter the ...
7
votes
4answers
304 views

Can I run top as screensaver?

My employer has recently issued me a MacBook Pro to play with. I have a lot of Linux experience, but I was struck by how nice the terminal looks on the Mac in full screen mode, especially when running ...
0
votes
0answers
31 views

Network drive showing minus sign for one folder, but Terminal shows everything in it

I've got a small home media server setup on a Raspberry Pi. It has had one 1 TB USB (ext3) drive plugged into it for a while now, which has worked perfectly over the network on my Macbook Pro ...
0
votes
0answers
89 views

How do I use the defaults command with App Groups?

In OS X Yosemite it's possible to have preferences that are shared between multiple apps that are in the same App Group. On the development side of things it's as simple as setting up the App Group ...
0
votes
1answer
47 views

Setting environment variables for scripts run by launchd?

I have a script that worked in the past, but seems to be having issues now (I believe it's due to Yosemite). What I had done was created an environment variable that was set to "false" and then my ...
11
votes
2answers
15k views

Using terminal to get current fan speed?

I would like to view the current fan speeds of my MacBook and iMac using terminal. I've found that running spindump then cat /tmp/spindump.txt | grep "Fan speed" will show it, but that's very slow and ...
1
vote
1answer
45 views

Fixing a Messed Up $PATH in Yosimite

I had troubles installing node with Homebrew as Homebrew does something weird to the node install that installing Yeoman generators seems to be hindered a bit. My issue, however, is that I think ...
1
vote
1answer
36 views

Missing .Bash Files in ~/

While uninstalling/removing home-brew, node, and yeoman...I noted that I don't have a .bashrc or .bach_profile in my home directory. I only have .bash_history present. Why is this? Is this bad? If ...
5
votes
1answer
1k views

View passwords of all Wi-Fi networks my Mac has connected to in the past

I have connected my Mac to lots of public Wi-Fi networks. I want to know their passwords. What should be the terminal command to list all the Wi-Fi networks whom I connected with in the past with ...
0
votes
1answer
163 views

Terminal command to kick selected users off my network

There are lots of ports in my small office but sometimes I want to kick out people who are accessing internet instead of doing their job. With arp -a i can look for all of the connected users. But how ...
5
votes
4answers
5k views

How to reset $PATH?

I was trying to add something to $PATH and it went totally wrong. I now can't run any commands such as ls. I've looked at this answer and used the following lines: ...
21
votes
8answers
11k views

Can home and end keys be mapped when using Terminal?

The home and end keys on a MacBook Pro can be emulated with fn + left arrow or fn + right arrow. Or when certain settings are changed, with the Command (Apple) key instead of fn. None of these ...
2
votes
0answers
31 views

How to fix “You are not allowed to use ”Application“”

How do I fix this message, I am Admin, Mobile. Even if i login to a root account this message still appears. I have iTerm so if any commands need to be inputted to fix this problem I can still do ...
0
votes
3answers
57 views

calling open from terminal with smb file path and preview as application opens finder instead of preview

I am trying to open a file on an smb share in preview from terminal. The following command opens the containing folder in finder instead of the file in preview. open -a /Applications/Preview.app ...
1
vote
1answer
30 views

Terminal directory delete issue

I don't really know what it is called but it was an issue for me. So here is what I was doing: Created Directory with content and have it open in finder Open a terminal and go to the same ...
0
votes
0answers
18 views

itunesconnect.com redirection using host file

I've been pretty annoyed by this website called itunesconnect.com. It appears the real one as some of you may know is itunesconnect.apple.com. So I go into terminal and go: sudo nano ...
5
votes
1answer
773 views

SSH, passphrases, keychains, Could not open a connection to your authentication agent

I will be very surprised if anyone has the answer to this. I have googled for a long time but no luck. As an iOS developer who will shortly be welcoming a new team member I want to set up a ...
2
votes
2answers
343 views

Keyboard shortcut to change tabs in terminal not working anymore in yosemite

I've set up a custom shortcut for Terminal to change tabs: cmd+option+left/right (the same as in most browsers, for convenience). I did this by going to System Preferences > Keyboard > ...