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
1answer
203 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
32 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
2answers
206 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
31 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
75 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
64 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
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 ...
1
vote
3answers
129 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
20 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
56 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
1answer
137 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
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 ...
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 ...
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 ...
3
votes
1answer
241 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? ...
0
votes
1answer
108 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 ...
2
votes
2answers
264 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 ...
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
45 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 ...
0
votes
1answer
43 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
27 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 ...
0
votes
1answer
62 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 ...
2
votes
2answers
78 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
2answers
389 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 > ...
0
votes
2answers
93 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
311 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 ...
4
votes
2answers
356 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
2answers
93 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 ...
1
vote
2answers
352 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 ...
1
vote
1answer
62 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
95 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 ...
1
vote
2answers
111 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 ...
0
votes
0answers
74 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 ...
0
votes
1answer
112 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 ...
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 ...
2
votes
2answers
647 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 ...
1
vote
1answer
27 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 ...
0
votes
1answer
296 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 ...
0
votes
0answers
153 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
1answer
52 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
2answers
135 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/] ...
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. ...
1
vote
1answer
587 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
116 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 ...
1
vote
0answers
69 views

Aggressize standard stream buffering in latest Command Line Tools (6.1)

I just upgraded my "Command Line Tools" via App Store.app's update process to Version 6.1. It seemed to install just fine, but a lot of commonly used command line tools now have much more aggressive ...
0
votes
1answer
115 views

Commands not found in Terminal except echo

In my terminal basic commands are not found like: mds-macbook-pro:~ ZILLURRAHMAN$ ls -bash: ls: command not found mds-macbook-pro:~ ZILLURRAHMAN$ env -bash: env: command not found mds-macbook-pro:~ ...
1
vote
0answers
39 views

Any way to reboot a iDevice that is connected to a USB port via terminal (Mac terminal)?

So, I am making a program to reboot iDevices (if there power buttons are broken), is there any way to induce the iDevice to reboot via the Mac shell? Take you'r time.
4
votes
1answer
945 views

Terminal flashes on empty backspace with Yosemite

Since using the Yosemite, I've had the annoying problem of my current Terminal window flashing when backspacing on an empty line. I know on previous versions of OS X this flashing was not default, and ...