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

78
votes
23answers
72k views

OS X Terminal “must have” utilities

I've just read with pleasure, and learned a lot from these questions : OS X Terminal Tips and Tricks OS X Hidden features and nice tips & tricks OS X Applications you can't live without But I ...
18
votes
9answers
2k views

Case-insensitive ls sorting in Mac OSX

How can I make the ls command in Max OS X Lion sort files and directories similar to how Ubuntu Linux does (case-insensitive, directories NOT on top, dot files NOT on top)? Ideally I'd like to do ...
0
votes
2answers
338 views

What does update_terminal_cwd do in the terminal of OS X

I am puzzled by it for quite some while now. In $PROMPT_COMMAND of the bash in OS X, there is a command called update_terminal_cwd. I am sure it's not a bash built in, and most likely only exists in ...
0
votes
0answers
6 views

How can I get TexLive to install?

I just bought my third Mac, this one with OS 10.9.5. My previous one was stolen, but I had backed it up with Time Machine. When I started this one up, I connected the backup drive from the old ...
0
votes
1answer
17 views

Execute Terminal Command fails in BetterTouchTool. Why?

I've installed Ouimeaux to control a Belkin Wemo on OSX, and it's working correctly in Terminal - meaning that the following command in Terminal will toggle my Wemo switch on/off: wemo switch ...
0
votes
2answers
38 views

Percent character breaks Terminal

If I type the % character in the Terminal, it breaks that shell and every new shell I open until reboot: $ seq 10 | parallel -j50% "echo Hi {}" -bash: printf: `"': invalid format character Does ...
2
votes
7answers
2k views

How do I remove crashplan from my Mac

I recently tried out CrashPlan on my Macbook, but I decided not to go through with that. However, now that I'm not going to be using CrashPlan after all, I can't figure out how to remove their app ...
0
votes
1answer
26 views

Escaping variable in script

I'm using script.sh in an OS X Mavericks terminal containing only the following: echo ${1} ls ${1} Now, when I call ./script.sh "/Users/me/some\ directoy\ with\ whitespace/", the echo command ...
0
votes
1answer
28 views

SSH using IPV6 getting error “No Route to Host” On My Mac Machine

I am trying to ssh with ipv6 in my mac machine but I am getting error "No Route to Host". I can it successfully with ipv4. Can anyone guide me please if it require any network setting or else? I am ...
1
vote
0answers
13 views

Terminal 3 failed password attempts

I've got a really funny issue with my Mac at the moment. I was using a sudo command and it rejected my password 3 times (I double checked and the password was correct) but now I can't do anything as ...
0
votes
1answer
57 views

Yosemite 10.10.1 - ssh - no connection (time-out) and strange redirect

I hope I can get some help with a rather strange problem on my late 2013 MacBookPro running Yosemite 10.10.1 Up until 3 days ago, I could ssh into my server without any problems. I then updated to ...
0
votes
0answers
56 views

How to spoof a USB-Ethernet adaptor Mac address in Os X

I've recently bought a usb-ethernet adapter (not apple) and I get internet connection. In my university we have to put an specified mac address but I can not change it. I have tested with sudo ...
0
votes
0answers
10 views

Terminal.app magically changing color values

Terminal.app does some very odd color shifting that makes it impossible to match colors consistently, and I'm wondering if there is any way to disable it or better control it. The "magic" is what ...
0
votes
0answers
7 views

Uninstall CheckPoint VPN Script Prompting For Password

When running the uninstaller sh script in the CheckPoint VPN package from terminal I get prompted for the usual authentication window. But the authentication window does not have focus so when I type ...
0
votes
1answer
26 views

SSH with ipv6 working only if I pass %en0 with my ipv6 address

I am trying to ssh with Mac OS X (10.10.1 Yosemite) terminal using ipv6. If I use command like ssh username@ipv6_address It's not working and I am getting error "No Route to Host". But If I use ...
4
votes
3answers
3k views

How can I download all MP3 files from a web site?

I am wondering if there is any software available in OS X that can download all mp3s or specific type of file from a URL. For e.g. I have a url http://www.parweztv.com/Khan%20Adeeb/SURA-04/ and I want ...
5
votes
4answers
2k views

Is there a way to remotely restart Finder (or wake-up the desktop) from SSH?

Over the last few months I've found my MacBook Pro is getting increasingly unwilling to wake-up if it's gone to sleep of it's own accord - not when I put it to sleep deliberately, but when the machine ...
1
vote
1answer
23 views

Terminal command to change Privilege of “everyone” to “No Access”

I want to change the privilege of a specific folder for the "everyone" group to No Access. I have tried chmod o--- that doesnt seem to work but I am most likely doing it wrong. I know that If I click ...
2
votes
0answers
27 views

Fish shell installation using homebrew - iconv libiconv error

I am trying to install Fish shell using homebrew using command: brew install fish But the installation fails with the following error: ==> ./configure --prefix=/usr/local/Cellar/fish/2.1.1 ...
0
votes
1answer
57 views

OS X Terminal – Open Tab in current directory, troubles with umlauts

I run OS X 10.7.5. I am currently experiencing an issue with Terminal. I have enabled the option to open new tabs in the current working directory. However, this does not work as expected, when the ...
0
votes
0answers
16 views

Damaged preference file in /bin/sh

Today in Drive Genius 3, I ran the “Verify Preferences” function in Repair. It yielded this strange result: /bin/sh: xargs: command not found The only option Drive Genius gives is to remove the ...
1
vote
2answers
166 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
20 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 ...
0
votes
1answer
29 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 ...
4
votes
1answer
1k views

brew cask: howto uninstall an Application

I tried, while I am in /opt/homebrew-cask/Caskroom $ for i in *; do brew cask uninstall $i; done Error: appcleaner is not installed Error: avidemux is not installed Error: eclipse-ide is not ...
0
votes
1answer
18 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
272 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
169 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 ...
0
votes
1answer
1k views

Multiple instances of the Mumble client

I have tried command that I found and it works for second and after that second client closes. open -na /Applications/Mumble.app Other command that I tryied with the same resul. ...
5
votes
2answers
58 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 ...
4
votes
1answer
125 views

How can I get 256 colors on the default Terminal over SSH?

Lots of similar questions, but I can't quite seem to find anything that is an exact match. I am using the default Terminal (in Yosemite) to SSH into a VM. The VM's terminal is set up to use ...
66
votes
7answers
37k 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. ...
11
votes
4answers
3k 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
24 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
20 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
64 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
19 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
5k 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
12k 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
126 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
78 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
13k 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
45 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
27 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
19 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
363 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
46 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
33 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
13 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
29k 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 ...