Tagged Questions

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

0
votes
0answers
8 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
1answer
20 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 ...
1
vote
0answers
12 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
37 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
9 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
22 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 ...
0
votes
0answers
6 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
22 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 ...
1
vote
1answer
21 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
19 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
0answers
40 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
1answer
20 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 ...
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 ...
0
votes
0answers
17 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
18 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
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
270 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
0
votes
0answers
19 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
61 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, ...
0
votes
1answer
23 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
1answer
103 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
69 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 ...
0
votes
1answer
26 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
0answers
32 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 ...
2
votes
2answers
358 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
12 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 ...
0
votes
1answer
44 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 ...
1
vote
2answers
83 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?'
1
vote
1answer
95 views

Setting environment variable for sudo in Yosemite

I followed this similar question to set my environment variables in Yosemite: ...
1
vote
2answers
123 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
0answers
27 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 ...
2
votes
1answer
83 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 ...
0
votes
0answers
66 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
33 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 ...
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 ...
1
vote
1answer
32 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
32 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 ...
0
votes
1answer
69 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 ...
2
votes
0answers
29 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 ...
4
votes
1answer
117 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 ...
1
vote
1answer
21 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
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 ...
0
votes
3answers
31 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 ...
0
votes
0answers
16 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 ...
1
vote
3answers
87 views

How to edit the hosts to block IP address?

I know how to block certain website, like if I want to block google I can use this line in the host 0.0.0.0 www.google.com.hk www.google.com.hk But my question is how can I block certain IP ...
0
votes
0answers
11 views

How to talk to UART with screen?

I have an RP6 robot which I connect to my Windows PC / Mac using a USB to serial connector. The robot uses an ATMEGA chip which I can upload programs onto for controlling the robot and reading and ...
0
votes
1answer
39 views

Problem with Terminal after changed permission to /usr/bin

I was trying to install rake and rspec using ruby gems. I changed read permissions on /usr/bin Now my terminal window looks like this: login(388,0x7fff73cd5310) malloc: * error for object ...
-1
votes
0answers
18 views

Mac is hard resetting how do I cancel through recover mode [duplicate]

I accidentally did a hard reset on my mac by doing control+c when my mac was booting up and I typed /sbin/fsck -fy because it supposed to fix my mac so that it gets unstuck of safe boot and then it ...