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

5
votes
1answer
205 views

pbcopy exits code 1, no error message

I'm trying to use pbcopy and pbpaste to copy and paste to the clipboard from a shell. I read the man page to learn the syntax for these programs. However, no matter how I try to invoke pbcopy or ...
0
votes
1answer
50 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 ...
0
votes
0answers
19 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 ...
2
votes
1answer
221 views

Unable to convert dmg to encrypted dmg on Yosemite

When I try to convert a regular (internet downloaded) dmg file to an encrypted dmg (256-bit AES) using Disk Utility on Yosemite it gives me this error message: How do I get this to work on Yosemite? ...
1
vote
1answer
26 views

Terminal: I press “@” or “#” and terminal write “?”

I have this problem only on the terminal. When I would like to write these symbol, for example "@" or "#" the Terminal write this "?" and a do a sound bell. screenshot: I don't understand why. ...
2
votes
2answers
591 views

Terminal switch tabs not working Yosemite

I had added keyboard shortcuts and those were working pretty fine on OSX Mavericks but not working in Yosemite. On pressing shortcut for switching tab terminal just flashes. Check screen shot of my ...
2
votes
2answers
267 views

Bash Terminal keeps showing “No such file or directory” at startup

-bash: /Users/MarksMac/Library/Enthought/Canopy_64bit/User/bin/activate: No such file or directory Basically, how do i remove the above error? I am using a mac 10.9.1 I have tried looking up ...
0
votes
1answer
122 views

Mac stuck in safe boot

I accidentally did a hard reset on my mac by doing contorl+c when my mac was booting up. I typed /sbin/fsck -fy because it was supposed to fix my Mac so that it is no longer stuck in safe boot. It ...
2
votes
1answer
34 views

How to rename formula installed via Homebrew?

I installed gcc with homebrew: $ brew install gcc I can see the result: $ brew list ant gcc go libyaml postgresql tmux autoconf gdb isl mpfr python ...
2
votes
1answer
46 views

What's the terminal command to see how network shares are connected?

I would like to see how certain volume shares are connected to my Mac. I'm on a Windows network and need to know if shares are connected over smb2 or cifs or afp protocol... etc... Do I need to ...
2
votes
2answers
225 views

Process completed immediately after opening Terminal

After I open Terminal in OS X: Last login: Tue Oct 28 10:29:21 on ttys000 login(14773,0x7fff7572f300) malloc: * error for object 0x7fd4bb715110: pointer being freed was not allocated * set a ...
1
vote
1answer
23 views

How do I replace a symlink with the actual file?

I want to remove the symlink and instead insert the file it links to, if possible all with one command so I can have it as an "External Tool" in phpStorm.
0
votes
0answers
38 views

Turn off or adjust Dictation popup in Mac

In Mavericks, whenever I used Dictation, the little popup window would adjust to the left side of the text in Word, Pages, etc. However, since upgrading to Yosemite, this has been "fixed" and adjusts ...
0
votes
1answer
589 views

Python IDLE can't be opened by double-clicking .py files in Finder

I can't open .py files in IDLE by double-clicking them in Finder (IDLE is currently set as the default program for opening such files). Nor can I open those files by right-clicking and selecting ...
0
votes
3answers
91 views

List of all dates+times when I used my MacBook?

I need a list of the periods of times I used my MacBook throughout the last 30 days. It would be sufficient to have a list of all lid-open and lid-close datetimes (because I close the lid whenever I ...
3
votes
1answer
133 views

Changing terminal colors for normal files when ls -G or within .bash_profile

So I followed this thread (Changing terminal color) and got all of the colors working for directories and such, except however, for normal files such as a Gemfile or .txt files or .java files or .rb ...
0
votes
1answer
106 views

/bin/sh don't read .profile after update to mac os x 10.10

I have updated my mac os x to 10.10 and got a lot of problems with program compilations. It looks like that default /bin/sh are not reading .profile anymore. So, all scripts, which are dependent from ...
0
votes
2answers
752 views

Can't exec “glibtoolize”: No such file or directory

I have a shell script autogen.sh, I run it under my project directory in terminal: ./autogen.sh I get error: Can't exec "glibtoolize": No such file or directory at ...
0
votes
0answers
20 views

Possible to disable window size hints in Terminal.app?

When you resize your terminal and it 'snaps' to the height/width of a single character. Is there a way disable this? Or perhaps another terminal emulator offers this functionality?
0
votes
0answers
44 views

Problem with PATH after installing MySQL

I'm looking for help concerning a problem with my Terminal. After some researches on differents websites, forums, I'm not the first one in that case, but all the solutions I've tried sofar did not ...
4
votes
2answers
340 views

How to always show window controls in Yosemite full screen apps?

The default behavior in Yosemite for apps with combined window title/toolbar in full screen mode is, that the window controls (signal lights) slide in from the left when the mouse the mouse pointer ...
0
votes
1answer
40 views

Getting unknown command error when trying to run a bash script

I recently had to re-install 10.9.5 (default install) and am now finding that bash scripts that run perfectly from the command line (~/Me...) no longer work using crontab. I use crontab to invoke ...
1
vote
0answers
25 views

Change Managed, Mobile Account Password through script?

Wondering if anyone has worked with something similar before - we have a number of Mac laptops connected to an Active Directory server, and on first login users create a Managed, Mobile account. When ...
5
votes
2answers
424 views

Terminal not displaying colors for directory listings

I don't know why my bash session doesn't show colors. I have tried Terminal as well as iTerm. I have tried: ls -G Setting export CLICOLOR=1 and export LSCOLORS=GxFxCxDxBxegedabagaced Using ...
2
votes
2answers
73 views

Auto-Update Script

I'm trying to get the Macs at my workplace all updating at a specific time. To do so, I'm running a bash script from a spare Macbook running OS X Server. I have one minor and one big issue with my ...
2
votes
1answer
117 views

How to open Emacs like in Linux Terminal

I just got a Macbook (my first one!) and want to know how to configure Emacs to run in the same way it runs in Linux. That is, if I type "emacs foo.c &" in the Terminal, I want to either open ...
0
votes
1answer
56 views

Terminal commands not found:

Short explanation. After I've created .bash_profile file and added the line export PATH=/PATH/TO/YOUR/sbt/bin:$PATH into it, my terminal stopped working properly. Could you please help me to fix the ...
10
votes
3answers
2k views

Disable line wrapping for output in the Terminal

I often read outputs in the terminal that get wrapped as they are too long. Since there is no way that I can modify the printed output, I need to let the Terminal allow for horizontal scrolling. Is ...
1
vote
2answers
94 views

Terminal command to move a number of files containing brackets to another folder or trash

Last night I consolidated a music collection into one place and each song is separated by an Artist folder and the track. The problem is that there are a high number of duplicates within these ...
2
votes
2answers
1k views

brew bundle reporting “Error: unknown command: bundle”

I'm completely puzzled by this one. I have refactored my install scripts to use the new brew bundle feature. However, I'm getting "Error: unknown command: bundle" $ which brew /usr/local/bin/brew $ ...
2
votes
2answers
166 views

Mac Won't Remember Hostname in Terminal After Reboot, gives 'unknown…'

I'm trying to set my hostname for my mac. Currently it's unknown002374e31ebd. I've tried setting it with sudo hostname -s Steve-Mac Which will work for all future terminal sessions. However, if ...
0
votes
2answers
89 views

How to add icons to iTerm2?

I've been looking into making my terminal more visually expressive. So far I've found , and learnt how to import themes and customize color schemes, but I was wondering how people get these cool icons ...
0
votes
2answers
91 views

Mac Terminal view is Screen Sharing is Enabled

Is there a way to use Terminal to check to see if Screen Sharing/Remote Desktop is enabled? Or is there a file which will have a YES/NO of it? The one catch; it must work without sudo or admin ...
0
votes
1answer
283 views

Shell environment variables not available in GUI apps even if app launched via Command Line

It is expected that shell environment variables won't be available in GUI apps launched via Spotlight or Finder.app. But until Mavericks - I could launch an app via Command line such as: open -a ...
1
vote
3answers
16k views

How Do I Use 'cp' to Overwrite Files?

Using a shell script or Terminal, how do I overwrite files that may or may not be present. I looked at man page for cp, it said use the -f argument to force overwrite. But, it does nothing. $ cp -f ...
1
vote
1answer
58 views

How to use OS X's terminal to ping an IP using the latency as a stopping condition for a loop?

What I'd like to do is to ping an IP while the latency is above an specific value. I think an example will help: Let's suppose I have the following result to the "ping *IP here*" command: PING *IP ...
2
votes
1answer
89 views

changes to .bash_profile causing Terminal shell to not load but keep looping with PATH settings

I was trying to make some changes with PATH (mostly add a new PATH) to my .bash_profile and the last line entered was source .bash_profile. After I saved and restarted the Terminal app, instead of ...
0
votes
0answers
71 views

A shell script to open files as root in an IDE?

What I'm trying to do: open multiple system (Apache and PHP config) files to edit in my IDE of choice (Coda). The files are owned by the system, so root permissions are needed to edit them. sudo ...
1
vote
1answer
51 views

How to parse output from a command in OS X Automator?

I have the following code in Automator but it fails to load the variable with the output from the command. for f in "$@" do output = hdiutil verify "$f" echo "$output" done I want to parse ...
1
vote
0answers
41 views

SSH Public key access - my password is being stored somewhere?

I've just created a Public/Private key to access my server via SSH, this has all worked fine but I added a passphrase to the key when it was created. The first time I logged in via terminal and ...
1
vote
1answer
26 views

difference between tty[p,r,s][N] and pts

$ ps -ef | grep tty | grep root | grep "-sh" root 25185 25184 0 Oct 14 ttyp4 0:00 -sh root 22998 22997 0 Oct 14 ttyp2 0:00 -sh root 25379 25378 0 Oct 13 ttyp0 0:00 -sh root 1709 ...
1
vote
1answer
110 views

iterm - what's the key-combo to switch panes?

I've learned how to split my terminal windows with apple-d and apple-shift-d. Its very useful. How do I then switch between the two panes (see below) using the keyboard? I know I can use the mouse ...
0
votes
1answer
183 views

New mac - installed tmux but can't use mouse in for pane switching

I have the required setw / setg setting for mouse in my .tmux.conf but they aren't working. I've done tmux source-file .tmux.conf I can use tmux and split windows with my remapped keys and other ...
0
votes
0answers
138 views

Is there a way to clean up possibly invalid disks that only show up on Mac OS Recovery through ‘diskutil list’ in Terminal? Does Recovery use them?

Hopefully that question is clear enough, and hopefully this is just me being silly. When I boot into the Recovery Partition, go into Terminal, and run 'diskutil list', I get quite a few tiny and ...
1
vote
0answers
31 views

How do I Launch an Applescript with a Hotkey Without Automator?

I'm running Yosemite and looking to launch Terminal with a keypress in any application. One solution was creating a Service in Automator that launched terminal and assigning a key to it in System ...
1
vote
2answers
129 views

Using RVM and installing rspec gem for Ruby

I think I installed rvm correctly. When I type in rvm -v it outputs rvm 1.25.33 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/] ...
2
votes
2answers
547 views

hdiutil: compact failed – Function not implemented

When compacting a sparse image with the hdiutil compact command, it fails with the message hdiutil: compact failed – Function not implemented.
1
vote
1answer
555 views

Error while trying to open new Emacs.app after upgrade to Yosemite

After upgrade to Yosemite I get this when trying to launch new Emacs app from command-line. I've spent yesterday trying to figure out what's the problem, so today I decided to ask here. ➜ ~ open -n ...
1
vote
1answer
115 views

How to programmatically get the path to the wallpaper on the active desktop?

I'm trying to get the path to the wallpaper in the active desktop. However, I'm having trouble reliably getting this. The following sources indicate that ~/Library/Application ...
2
votes
1answer
44 views

Change user name

I had to change the admin user name of a new Macbook because his sons name kept showing up, Home Folder etc, So I used, 'sudo mv /Users/oldusername /Users/newusername' and Advanced Options in User ...