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
25 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
21 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 ...
3
votes
2answers
1k views

How to get rid of “You have new mail.” in zsh

I'm using zsh with prezto as my shell with iTerm as terminal app. I always get the message "You have new mail" when opening a new prompt. I don't have any new mail in Mac Mail and I don't run a mail ...
0
votes
1answer
19 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 ...
0
votes
1answer
1k 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 ...
4
votes
2answers
144 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
36 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 ...
6
votes
1answer
631 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 ...
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, ...
2
votes
2answers
2k views

“xcode-select --install” versus retrieving the dmg from Apple's developer website

I would to ask a question closely related to already existing posts (How to install command line tools without error that is not currently available on Software Update server? and ...
1
vote
3answers
536 views

X11 app no longer opening since 10.10.3

After upgrading to 10.10.3 X11 applications are not opening anymore from the terminal. The X11 symlink in /usr is correct $ ls -l /usr/X11 lrwxr-xr-x 1 root wheel 8 Aug 7 2014 /usr/X11 -> ...
1
vote
1answer
15 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 ...
15
votes
3answers
34k views

Using terminal to get current fan speed?

I would like to view the current fan speeds of my MacBook and iMac using terminal. I've found that running spindump then cat /tmp/spindump.txt | grep "Fan speed" will show it, but that's very slow and ...
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
30 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. ...
0
votes
1answer
7k views

My Finder is not responding and there are no documents on Desktop after downloading OS X Yosemite

I've just upgraded my Macbook Pro (15 inch, mid 2009) to OS X Yosemite and it is running slowly and my Finder is not responding at all and none of my documents are on my Desktop. I have tried taking ...
1
vote
3answers
6k views

Change label on USB drive in OSX Terminal

I am trying to write a program in Python that will rename a USB drive (from the standard "USB DISK" to my custom "MYDISK"). However, I can't find any way to do this neither in Python nor in OSX ...
1
vote
2answers
1k 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/] ...
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
30 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 ...
1
vote
1answer
52 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
118 views

launchctl error “nothing found to load” when run via cron

On OS X 10.9, I'm running a script (e.g., ~/bin/run.sh) via my user crontab (added using crontab -e). This script, under some specific conditions (not related to this question), will run the following ...
1
vote
0answers
41 views

can't commit network settings via command line

I'm writing a Python script that changes network settings with commands like networksetup -setv4off 'PANTECH UML295' and networksetup -setdhcp 'PANTECH UML295'. When I enter these in Terminal, I enter ...
0
votes
0answers
9 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
32 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 ...
0
votes
2answers
49 views

Dropbox vs Github for dotfiles sync? [closed]

For the last few years I've been using Dropbox to sync my dotfiles. For zsh, oh-my-zsh, emacs settings etc. More people seem to be using Github for this. Are there any advantages in this? From what ...
1
vote
1answer
1k views

Enable right click Magic Mouse in Terminal

I am trying to enable the right click on a Magic Mouse connected to an iMac running 10.6.8, but due to parental controls, I am unable to gain access to the Mouse System Preferences. I know you can ...
2
votes
1answer
29 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 ...
2
votes
2answers
162 views

Weird OS X Terminal Bug: Cursor won't go back to end of line after backtracking

I have an interesting problem: when I type something in the terminal as follows: ~ me$ hello<cursor> and backtrack: ~ me$ he<cursor>llo and then try to return to the end to continue ...
0
votes
0answers
108 views

Switching spaces on one monitor affects open applications on other monitor; looking to prevent this - BOUNTY

Kind of hard to describe. Using Yosemite 10.10.3. Using a mac with two monitors. Left monitor has one desktop space. Right monitor has two desktop spaces. I use a lot of terminal windows at work ...
0
votes
2answers
43 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
40 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 ...
3
votes
3answers
2k 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 > ...
-1
votes
1answer
51 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
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 ...
0
votes
1answer
1k views

how to use terminal to remove item from dock

Hi I have a shell script in my login item , which runs whenever i log in to my system . It does work completely but once it exits the terminal , it leaves the terminal shortcut on my dock and I don't ...
1
vote
3answers
123 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 ...
5
votes
1answer
41 views

Is there a way to force clockwise pane rotation in iTerm2 with the shortcut keys?

I've often found that when using iTerm2, I'll have like 3 or 4 panes open in one tab. And the shortcut keys for moving between them Cmd + ] and Cmd + [ are very useful, but unpredictable. The reason ...
2
votes
1answer
219 views

How to disable Bluetooth Sharing via terminal?

I want to disable the Bluetooth Sharing that is located in the sharing preference section. I want to be able to disable it via terminal, does anyone have an idea on how to do that?
2
votes
2answers
55 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 ...
0
votes
0answers
12 views
1
vote
1answer
58 views

Unable to force quit Chrome (Yosemite) OS X 10.10.4

I tried to force quit Google Chrome when it started to hang while the other applications (Safari) was working fine. However, it didn't shut cut as usual and just leaves me hanging. I tried to search ...
0
votes
4answers
10k views

Chrome won't quit! (Mac Yosemite)

I tried normal quit, and it closes and immediately re-opens. I tried force quit, and it closes and immediately re-opens. I tried force quit from the Activity Monitor, and it closes and immediately ...
0
votes
1answer
37 views

Recover FIles/Folder from sudo rm -rf Terminal Command

Short Story: I was attempting to create a symlinked folder from my external to my desktop, and the folder I wanted (ALL of my working folders and files) are gone. Long Story: My job wanted me to use ...
4
votes
1answer
6k views

How do I kill a process that won't die?

I'm unable to kill a process using any of the techniques I'm aware of ("Force Quit" in Activity Monitor, top, killall from the Terminal) and wonder if there are some additional steps I can take. ~ ...
0
votes
2answers
57 views

Applescript “expected then but found identifier”

At present, I have a very simple bash script which calls osascript -e a bunch of times; it looks like this (newlines added for readability): #!/bin/sh osascript \ -e 'tell application "Terminal" to ...
0
votes
2answers
60 views

I get a bash syntax error message every time I open Terminal

I've been getting this error for the past couple of months and I wonder if it's a major issue, and how do I fix it? When I open terminal on my Mac I get this bash error: ~bash: ...
0
votes
2answers
35 views

start.command permission denied even after chmod

I have been trying to run my server.command file forever. I have tried changing access privileges with chmod x+u pressing enter then dragging the file into Terminal and pressing enter, but when I do, ...
3
votes
1answer
127 views

Add item to Finder toolbar with terminal?

You can cmd-drag an item to the Finder toolbar to have it there permanently, but is there a way you do this in the Terminal? The closest I've found is this old thread: ...