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
1answer
13 views

No commands installed from pip work in Terminal

I've been learning python and tried to install pep8, restviewer and other command line apps but when i try to run them, it shows a command not found error. -bash: restview: command not found I've ...
0
votes
1answer
16 views

How to get current user SID in Mac OS X

For my application purpose, I want to get the user information from Active Directory. Especially I want to get current user SID and user account domain SID. Can anyone tell me some way to get this ...
0
votes
0answers
33 views

.bash_profile is not working unless sourcing it manually

I got a new machine (yosemite osx), and I am trying to set it up. I have created .bash_profile, but unfortunately it doesn't work. Even if I log back in or restart the machine, and open terminal ...
0
votes
0answers
9 views

Force Mac OS X to Register USB devices

I'm using an HDMI CEC adapter connected via USB to my Mac Mini (Machine model Macmini6,2). Often when the Mini is rebooted it fails to register the adapter. Unplugging and replugging the USB cable to ...
1
vote
0answers
22 views

“Unable to unmount volume for repair” message from reformatted SSD (and empty) in “Option/ALT startup”

I am trying to reformat a Samsung 512GB Pro with bootable USB, and I have manage to get through the prep for the USB so i`m in no need there. But after the "Option/ALT startup" i click on the USB to ...
1
vote
1answer
28 views

How can I “Open an app from an unidentified developer” without using the GUI

Basically, I used the native Safari.app web browser to download a third party application and I want to run / open it from the comfort of my bash shell / Terminal.app CLI; despite the following error ...
2
votes
1answer
18 views

How do I open a new Terminal window ssh'ed to another machine from the command line?

From the command line I'd like to open a new Terminal window that is already SSH'ing to a host. From the command line, I can open a new Terminal window very easily: open -a Terminal or open -a ...
0
votes
0answers
15 views

`LSOpenURLsWithRole() failed with error -10810..` :~ root#

Okay, so I turn on my laptop, sign in to my regular user account and proceed to open/run a Java-based, HTTP-proxying application called burp via Terminal.app. It executes normally but refuses to bind ...
2
votes
4answers
260 views

How to remove or hide Apple applications from my app folder?

I've got a lot of Apple applications on my Macbook which I never use (Photos Facetime, iBooks, iMovie, iTunes, etc.). They just clutter up my application folder and I want to get rid of them. This ...
2
votes
1answer
33 views

How do I change Mission Control shortcuts from the command line?

I have been trying to figure this out for a long time. I have a pretty typical Mac OS provisioning script: https://gist.github.com/ryanpcmcquen/b2e608311f286a4ab3e1 I would like to change the ...
1
vote
1answer
41 views

OS X Server leaves some unwanted open ports after removal

I am currently running OS X Version 10.9.5 (Mavericks). In the past I installed OS X server and had to sign some certificates so that users could authenticate with the VPN function (which is what I ...
0
votes
2answers
36 views

What is the netstat command for particular port if that's connected or not? [on hold]

Need to know what is the exact netstat command to find out if a port is connected with any network or it's open through OS X Terminal. I want info on a particular port, such as port number 80, so the ...
2
votes
1answer
45 views

How to start Firefox web browser from terminal in private mode?

Simply put, how do I open the Firefox directly from Mac OS X Terminal in private mode?
0
votes
0answers
23 views

Mount external HDD readOnly option

I have the following problem: I used the optical bay to use a HDD in my mid 2010 13" Macbook Pro in addition to my SSD. It was working just fine until a few days ago, when it started to get "slower". ...
0
votes
1answer
38 views

applescript will not stop running

I have an applescript that utilizes a named pipe and pipes data over to it. I have my script passing said data in a while loop, which is working, but I find that I am unable to stop the script ...
2
votes
2answers
127 views

Should the pgrep command be available in OS X 10.7.5

I posted this question on stackexchange and was told in no uncertain terms that my system was broken because pgrep did not exist in /usr/bin This has me worried, my system is stable and I am sure I ...
1
vote
0answers
14 views

Using Dictation with MacVim or Terminal

I'm trying to use Dictation on Mac 10.10.5 to enter text into MacVim (or into Terminal). It works for the most part, but for whatever reason, those programs won't let Dictation add a space after each ...
0
votes
2answers
21 views

Adding Gradle to PATH

I am trying to add Gradle to my PATH. I have used the command export PATH=/myUsername/Applications/gradle-2.6/bin:$PATH but when I type gradle I get an error "command not found." So I went to ...
1
vote
2answers
26 views

Can I replace characters in AppleScript?

I'm working on an AppleScript to mount our Active Directory Home Shares and I've come up with the following part that looks at the logged in users "SMBHome:" and it gives me the users home share but ...
1
vote
1answer
10 views

Trying to replace volume sound in OS X to what was present before. Encountering permissions problems even as root. Help?

I'm trying to get the old volume feedback noise on my MacBook. I have a copy of the sound file but the system is refusing to let me replace it, even as root. I found this article that also explained ...
1
vote
1answer
17 views

install: illegal option — D

In linux the command install has these options (among others): (from the man page) -d, --directory treat all arguments as directory names; create all components of the specified directories ...
0
votes
1answer
51 views

How can I create a custom behavior for a URL scheme?

I would like a specific URL scheme, magnet:, to run a command in Terminal. For example: magnet:?xt=urn:bKKH Would execute: myCommand "magnet:?xt=urn:bKKH"
0
votes
0answers
21 views

Protect changes to plain text file written by standard user's execution of bash script

I have written a simple bash script that I want to use as a time clock for employees (work-studies) in my computer lab. The script works great. 1. Each work-study has two icons (two separate bash ...
1
vote
1answer
27 views

Disk utility unable to change partition type

I'm trying to copy a .img disk image to a microSD. However, when I try to move the contents of the image I downloaded to the microSD, I get this: Same result when copying via Terminal. ...
0
votes
0answers
18 views

ffmpeg - how to merge two h264 videos, using one of them as alpha?

I need to merge two 264 videos: one of the two is a normal rgb video, and the other is a greyscale video that I would use as luma matte to make a final prores clip with alpha. Is it possible doing it ...
0
votes
1answer
24 views

Finder is showing many files which I have deleted

I have an Xcode project which I just deleted so I could rewrite it. (I used rm and rmdir) Here's the problem: Though ls says that the folder is clean, Finder says it's still, there, and, what's more ...
1
vote
0answers
14 views

Using osacript to access Finder from crontab (or from non-interactive session)

I have a script that generates a dmg file from my application bundle. This is generated every night from our subversion repository. If would be interesting to set up things like the DMG's window ...
0
votes
0answers
16 views

Open Emacs with separate instance in mac os x yosemite

I am on Yosemite 10.10.5. I would like to open emacs from spotlight or from the Terminal as separate instances so that when I close one emacs window the others don't close either. Similar questions ...
0
votes
1answer
18 views

Add bottom margin or scroll past last line in Mac OS Terminal

If I have a full terminal history then the cursor will line up at the very bottom of the window. I generally prefer working more toward the middle of the page. Especially since I usually keep the ...
4
votes
2answers
143 views

Prevent Finder to launch on boot

I do not need Finder because I use Ranger in CLI and I manually quit it (I added the quit option) each time I boot (mainly not to have it in the way when I use to switch applications with cmd + tab). ...
0
votes
0answers
35 views

What will “rm -rf /” actually do?

I know that this is a very dangerous command, but what does it actually do. In other words, to what extend does it delete the hard drive. Does it delete only the user data? Or does it delete root OS ...
2
votes
1answer
13 views

Terminal app slows switching of desktops/Spaces

I noticed some time ago that when switching from one space (workspace/desktop) to another this animation is slowed if a terminal app is running on one of them. Funny thing I found out by experiment, ...
1
vote
1answer
12 views

Time machine creating files and directories at random places

I'm gonna keep this short and simple. I have a ~/.vim folder and ~/dotfiles/.vim folder (the ~/dotfiles/.vim was copied to ~/.vim). Yesterday I noticed that I had several files with weird permissions ...
0
votes
1answer
34 views

What does these extended attributes mean and where are they documented?

For some reason a directory I had (Vundle.vim) got randomly copied to another directory (got copied from ~/.vim to ~/dotfiles/.vim with strange permissions and what looks like no contents. Anyways, ...
1
vote
1answer
28 views

Terminal Command to display a single line from a text file in OS X

I want to display at a specific line, e.g. line 4, from a text file in Terminal (I need this for character counts, using wc). I'm sure this is a simple problem but read -e 1 filename doesn't do it. ...
6
votes
1answer
611 views

Terminal becomes unresponsive when a “sudo” password prompt is displayed

When asked to type my password to run a sudo command, the USB keyboard goes unresponsive and I cannot type in the password or anything else. I can hit return three times to bounce out on three failed ...
1
vote
1answer
49 views

Mac crashes when using Terminal app

I'm having trouble with my MacBook Pro. Specifically, it always crashes when I try to open the Terminal app. I get the following report: Anonymous UUID: 071752AC-395C-0603-2111-894859AA762E ...
0
votes
1answer
33 views

Terminal: grep command usage with '[' character as target, not function

Im using the grep command In a simple script, the problem however Is that the string which the grep command Is searching for includes a square bracket character: [. After some research, i have found ...
2
votes
0answers
28 views

terminal aborts when process finishes running with non-zero return value

My terminal is aborting when it encounters CTRL-Z: Last login: Thu Aug 13 11:13:51 on ttys000 mymac:~ snowch$ sleep 10 ^Z [1]+ Stopped sleep 10 [Process completed] Sometimes I ...
0
votes
0answers
8 views

Set Terminal.app preferences so CL and stdout are different colours

I see a lot of screen shots of Terminal and bash windows where the promote line and the user input is one colour (say white) and the other lines returned from commands entered are a different colour, ...
1
vote
0answers
29 views

Applescript exits with error when run via launchd

I have an applescript running beautifully in Script Editor as well as from an osascript command at the Terminal. The script talks to the Reminders.app in order to pass iCloud reminder entries to a few ...
1
vote
1answer
39 views

Can't install Python Modules

I'm running OSX 10.8.5 with python 2.7.10. When I run the following pip install pyodbc I get the following error message. Error Message: Command ...
2
votes
1answer
26 views

How do I move the cursor past the end of the line in Insert mode when using vi-style line editing on bash?

In all that follows, the ^ indicates the position of the cursor. I'm using bash on Terminal on OS X Yosemite and I'd like to use vi-style line editing: prompt$ set -o vi ^ By ...
0
votes
2answers
37 views

Suspended (tty output) when launching editors like vim, vi, emacs, or nano

I've been using Oh-My-ZSH for a few weeks now and it's been a great experience. Just today, though, terminal started acting strangely. When I try to run an interactive terminal editor like vim, vi, ...
1
vote
1answer
38 views

Why is there a left bracket before my bash prompt?

I've notice that after I execute commands, a left bracket character will appear before the previous line. It seems to be partially dependent on what's in $PS1. I've tried unsetting $PROMPT_COMMAND and ...
-1
votes
1answer
49 views

Is there a way to ask the Airport Extreme what it's external IP is via terminal?

Finally realized that my ISP was carriage natting me, and my router's ip is really on the ISPs network and not externally facing. =( My ISP Is doing something that is thwarting my ability to get my ...
0
votes
0answers
50 views

How to pause Applescript when another process is not responding to system events?

I would like a Applescript to pause while a specific process/script/app is not responding (temporarily or permanently) to system events, and to start-up again when the other process is back. In ...
0
votes
0answers
23 views

How to turn off bash_profile from automatically opening when opening Terminal?

I recently changed the ownership of the .bash_profile file from root to MyUsername. Since then, when I start/open Terminal, the bash_profile file automatically opens too. To disable it from doing ...
1
vote
3answers
119 views

Mac terminal can't be used after set up of ~/.bash_profile

I was installing Apache Ant earlier and once I did, I also ran: touch ~/.bash_profile nano .bash_profile Within that text file I wrote: . .bash_profile saved, exited, then ran: source ...
2
votes
2answers
53 views

Excel Mac - Some txt files can't be opened/imported (“Grayed out”)

A bit of an odd one. I'm using Excel for crunching some data I have in several .txt files. When I'm trying to import them via Data > Get External Data > Import Text File: Like as I've done many ...