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
2answers
19 views

Why does my command line prompt now beging with “vpn”?

I was just (unsuccessfully) playing around with setting up a vpn in OS X Server, and now all my new terminal prompts begin with "vpn" followed by my user name. Anyone know why this is the case and how ...
2
votes
2answers
65 views

Why are my command line utilities running so slowly on my Mac?

I have just noticed that command line utilities such as ls (/bin/ls), touch (/usr/bin/touch), cat (/bin/cat), etc. are very slow when I run them from Terminal or iTerm on my MacBook. For example: ...
3
votes
2answers
935 views

Need help using Homebrew 'Services' command

I installed MongoDB using homebrew recently. A few articles on the web advise to start mongo using the following command, brew services start mongo But when I use this command, I get the following ...
3
votes
1answer
130 views

New users can't see Apple applications from Utilities folder in Launchpad

I felt like giving my mess of Launchpad icons a fresh start. So I did defaults write com.apple.dock ResetLaunchPad -bool true && killall Dock On checking Launchpad, it had appeared to have ...
2
votes
2answers
760 views

Installing Mavericks via Terminal

I have the Install OS X Mavericks.app in Recovery Mode and I want to execute it somehow to start the installation from the terminal, so I don't need the internet connection. I executed the ...
0
votes
0answers
4 views

Using kdiff3 as default git diff viewer on Mac OS

I have kdiff3 installed on my Mac (Version 0.9.97, 64 bit). Here's my ~/.gitconfig: [filter "media"] required = true clean = git media clean %f smudge = git media smudge %f [user] ...
0
votes
0answers
19 views

Urxvt on homebrew ignoring certain .Xdefaults and .Xresources settings

I have a .Xdefaults and a .Xresources that I use on my Linux setups that I want to also use on my OSX setup. However, the Urxvt I installed on homebrew is not picking up certain settings from both ...
1
vote
1answer
354 views

Writing to NSUserDictionaryReplacementItems with defaults

The following command reads the NSUserDictionaryReplacementItems. The keys are called Text Shortcuts in OS X. defaults read NSGlobalDomain NSUserDictionaryReplacementItems I want to create new ...
2
votes
3answers
2k 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 $ ...
0
votes
2answers
19 views

File contents remains in terminal after exiting Vim?

I'm using the stock terminal with zsh and vim. After I exit vim, the file contents remains in the terminal. Ideally, only the previous history would be in the terminal when I exit vim (such as the ...
4
votes
6answers
347 views

Are there any global key combinations suitable or specifically reserved on OS X for user assignment?

I'm trying to identify an appropriate global hotkey to set in iTerm2's preferences for showing/hiding it: I'd like to avoid any conflicts with other applications' hotkeys or other future use. Are ...
0
votes
0answers
16 views

“Ghost text” in terminal, Yosemite + Visor (formerly TotalTerminal)

There's "ghostet text" in my terminal (see screenshot), and I'm hoping someone knows how to fix this… Turning background transpareny off fixes the problem, but it's not a solution which I'm a fan ...
1
vote
1answer
74 views

Terminal highlight color changes when window is not targeted

I have a terminal profile in which I changed the highlight color (let's say, to green). I didn't like it so I changed it back to blue. Now, whenever I am targeting the window and I highlight, the ...
21
votes
6answers
62k views

How can I list all user accounts in the terminal?

How can I list all local user accounts (whether logged in or NOT so 'users' or 'who' is no good) in the terminal on a mac? OS X version is 10.6.8. I have seen this suggested - dscacheutil -q group ...
2
votes
1answer
3k 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. ~ ...
1
vote
2answers
14 views

open <TAB> opening finder window

I use zsh. For some reason, with zsh, when I type open <TAB> (which should list the files to autocompletion), it opens Finder in the current folder. I don't have anything aliased for that. I ...
5
votes
1answer
801 views

SSH, passphrases, keychains, Could not open a connection to your authentication agent

I will be very surprised if anyone has the answer to this. I have googled for a long time but no luck. As an iOS developer who will shortly be welcoming a new team member I want to set up a ...
3
votes
7answers
4k views

How do I remove crashplan from my Mac

I recently tried out CrashPlan on my Macbook, but I decided not to go through with that. However, now that I'm not going to be using CrashPlan after all, I can't figure out how to remove their app ...
0
votes
1answer
16 views

Find all hidden “.idea” folders in system [duplicate]

I am using PHPStorm 8 for programming. PHPStorm automatically creates a hidden folder called ".idea", where all project-specifiy settings are stored. How am I able to find all these ".idea" folders ...
0
votes
2answers
1k 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
1answer
764 views

“Missing Quartz Composition” displayed on TotalTerminal

I started using TotalTermianl on Mountain Lion. But the background have Missing Quartz Composition error. I have found some people had the same as mine here Do anyone know how to fix it??
2
votes
2answers
739 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.
0
votes
1answer
30 views

How can I get rid of MacKeeper Helper on my mac's activity monitor

I have tried to quit, force quit and so many more things in Terminal and all over the place but it's still there. Thanks in advance for help
37
votes
3answers
21k views

How to replace Mac OS X utilities with GNU core utilities?

I found there is some differences between the utility command I used on the mac OSX and linux. I want to make my experience united. How could I replace all my mac utilities with GNU utilities?
0
votes
1answer
27 views

Stymied trying to repair disc [closed]

Here's the problem I'm trying to solve: I installed a game on my PS3 and it corrupted the drive. I installed the same game on my other PS3, and it corrupted the drive. (I sense a pattern here.) That ...
1
vote
2answers
16 views

Escape sequence in terminal or iTerm to jump to absolute column?

Is there an escape sequence which I can use to jump to an absolute column in OS X Yosemite Terminal or iTerm? In other words: echo 12345678901234567890 echo \StartAtColumn10 A10 \StartAtColumn2 B2 ...
81
votes
24answers
80k views

OS X Terminal “must have” utilities

I've just read with pleasure, and learned a lot from these questions : OS X Terminal Tips and Tricks OS X Hidden features and nice tips & tricks OS X Applications you can't live without But I ...
5
votes
1answer
1k views

Terminal flashes on empty backspace with Yosemite

Since using 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 ...
1
vote
3answers
31 views

Turn off mail notification in terminal

I'm running some cron jobs on my machine and every time I fire up a terminal session I'm getting a 'You have mail.' message. Any way to turn this off?
4
votes
2answers
3k views

brew cask: howto uninstall an Application

I tried, while I am in /opt/homebrew-cask/Caskroom $ for i in *; do brew cask uninstall $i; done Error: appcleaner is not installed Error: avidemux is not installed Error: eclipse-ide is not ...
1
vote
4answers
5k views

How to persistently define aliases in Terminal

I want to add aliases to my environment so that they are available in all Terminal instances. I got this answer: Yes, you can put it in your .bashrc, .bash_profile or .profile. On some systems ...
22
votes
8answers
11k views

Can home and end keys be mapped when using Terminal?

The home and end keys on a MacBook Pro can be emulated with fn + left arrow or fn + right arrow. Or when certain settings are changed, with the Command (Apple) key instead of fn. None of these ...
1
vote
1answer
20 views

How can I redirect the output of screen to a file?

I'm trying to capture data from a Serial Port by opening 'screen' from the terminal. It works, I see the data coming but I can't figure out how to save it to a file. I tried to redirect the output of ...
0
votes
0answers
38 views

Page Up / Page Down - Changing scroll length on Yosemite

I have come to inquire about a terminal command to edit/change the amount of scroll length Yosemite does when page up or page down is pressed. For my knowledge, I think default value is one whole ...
5
votes
4answers
705 views

Newly Installed App (gem) Via Terminal, Path?

I have used sudo gem install to install a few gems. My question is how do I know where the executable was installed, so I can add it to the path in .bash_profile?
15
votes
4answers
17k views

How to get the fully resolved path of a symbolic link in Terminal?

I have a tangled mess of python installations on my laptop. I was looking at the executables in /usr/local/bin and they are all symbolic links to ../../../Library...... There's some weird behavior ...
2
votes
1answer
84 views

Move all contents from a folder to another with shell script

Why does this work? mv /Users/diogosaraiva/Music/Youtube/Novas/* /Users/diogosaraiva/Music/Youtube/Tratadas …but the commands below don't work? mv "/Users/diogosaraiva/Music/Youtube/Novas/*" ...
3
votes
2answers
91 views

Creating System-Wide Keyboard Shortcut To Launch Applications

I recently switched from Ubuntu, and I was feeling very comfortable with using Ctrl + Alt + T to launch terminal. Can I assign Shift + Cmd + T to do the same thing in Yosemite? Specifically, I want a ...
4
votes
3answers
1k views

Is it possible to hide the scrollbar in Terminal?

In the 10.4 or maybe 10.5 versions of Terminal.app it was possible to hide the scrollbar completely. Does anyone know if this is still possible in the 10.6 version of Terminal.app?
5
votes
3answers
7k views

Where are bash profile startup files?

I know that you can have a .profile or .bash file in your home folder to customise Mac OS X 10.6.4 Terminal bash startup. Every time I start up Terminal, there is a line that tells me "You've got ...
45
votes
4answers
34k views

Are my permissions for /usr/local/ correct?

I’m using HomeBrew for my port needs (seems a bit “cleaner” than MacPorts). I can install without sudoing (which is great), but the man linking step seems to require it (/usr/local/share/man/man3 ...
3
votes
2answers
813 views

Installing mc (midnight commander) without root access?

How do I do that? The normal installers (with .pkg files) ask for a root password. It is possible to run normal mac software without root access, but how do I run and install this shell software?
5
votes
2answers
1k views

Decompressing .sit file

I have recently downloaded a .sit archive file. Is there a way to decompress it at the command line?
5
votes
3answers
758 views

When is the locate database updated?

I use the locate command in Terminal regularly. When does its database get updated? On other systems, I could run updatedb as root to force it to update. Note: I know using mdfind to search with ...
5
votes
4answers
2k views

Automatically quit Terminal when typing exit

Scenario I use terminal to SSH a lot, however would like the Terminal App to quit when the last Tab closes using exit. I already have the terminal window itself set to close on successful exit, ...
8
votes
5answers
2k views

Open new terminal window in current space, regardless of other open terminals in other spaces

When using Spaces on Mac OS X trying to open a new terminal instance results in focus being pulled to whatever space has the most recently accessed terminal window. With Finder I can click on the ...
10
votes
2answers
31k views

How can I mount an SMB share from the command line?

I would like to mount an SMB network share from the command line (terminal); how would I go about that? I am using Mac OS X 10.6.4.
7
votes
5answers
2k views

How can I Open Multiple Customized Terminal Shells?

How can I customized Terminal so that when I open the application it opens several shell tabs? If possible I would like to also have it run a different environment script for each tab. Example: Run ...
2
votes
2answers
1k views

How to skip system hotkeys when using terminal emacs?

I like to run GNU emacs in a Terminal window under Mac OS X 10.6.4. Unfortunately, whenever I hit a hot key for emacs I often "trip" on an OS X system hot key. For instance, when I hit ⌃ + space in ...
5
votes
4answers
2k views

Is there a way to remotely restart Finder (or wake-up the desktop) from SSH?

Over the last few months I've found my MacBook Pro is getting increasingly unwilling to wake-up if it's gone to sleep of it's own accord - not when I put it to sleep deliberately, but when the machine ...