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

13
votes
2answers
13k views

what are the split terminal commands

I stumbled across the command-d hot key which splits the terminal into 2 panes. But I cant find documentation anywhere on how to close the new pane or even switch the focus to it so I can use it. ...
0
votes
1answer
48 views

How do I make an AppleScript use a Folder in the Contents of a Bundle for an alias on the Desktop?

I'm trying to write an AppleScript to make a temporary alias on the desktop from a folder that resides in the Bundle's Contents:Resources folder and then execute a terminal command that has an ...
0
votes
1answer
28 views

How to have full directory path always shown in mac terminal?

I found answers but they don't work: I added this line in .bash_profile: export PS1='\u@\H:\w$' It outputs: \u@\H:\w$ Instead of: user@host:my/Current/Path/In/This/Terminal/Window$
0
votes
2answers
22 views

“Use Option as Meta key” with ability to type the # symbol

I am using Terminal version 2.5, where I have two requirements: I need to be able to type the <META> key. I need to be able to type the # character. How can I satisfy both of these? By ...
2
votes
2answers
381 views

Terminator for Mac OSX

I'm using Ubuntu on a daily basis, and recently (6 months ago) I bought a Mac, so the first thing I did was installing VMWare and Ubuntu on my MBP. Also I'm a developper and I was a huge fan of ...
0
votes
1answer
47 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 ...
2
votes
0answers
39 views

ssh asks for passphrase not keychain password after locking keychain

I'm using Yosemite and store the ssh passphrase in a separate keychain (not the login keychain). This all works fine as long as the keychain is unlocked. When I lock the keychain, I expected ssh to ...
0
votes
1answer
15 views

AppleHighlightColor syntax

I'm changing my highlight color via a command I find in Mathias Bynen's dotfiles like so: defaults write NSGlobalDomain AppleHighlightColor -string "0.764700 0.976500 0.568600" I'd like to change ...
10
votes
4answers
29k views

How can I reset a Mac's password from Single User Mode?

My sister bought a used MacBook about 6 months ago and she has lost her password. Here is the procedure I tried to use to reset the password: Boot into single user mode (press Command-S at power ...
1
vote
2answers
97 views

Font Used in OS X 'Yosemite' Version of Terminal's Icon?

What font is used for the prompt ('>_') in Terminal's icon in OS X 10.10.x 'Yosemite?'
4
votes
2answers
1k views

How can I enable and/or disable OS X's power nap feature from within Terminal?

I can deal with it using some command-line commands such as defaults write … etc, but don’t know what the exact command and argument names to use?
1
vote
1answer
710 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??
1
vote
1answer
113 views

Setting environment variable for sudo in Yosemite

I followed this similar question to set my environment variables in Yosemite: ...
1
vote
2answers
126 views

Troubleshooting “Unexpected argument” error when running defaults write

Trying to change the default screenshot directory to a specific folder in my google drive, but when I try the following command defaults write com.apple.screencapture location ‘~/Users/tommy\Google ...
0
votes
1answer
170 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 ...
2
votes
1answer
92 views

Can't delete old TimeMachine backup

In terminal, trying to do the following: $ sudo tmutil delete /Volumes/BACKUP/Backups.backupdb/lappy/2014-11-02-005458/ Deleting: /Volumes/BACKUP/Backups.backupdb/lappy/2014-11-02-005458 I get ...
2
votes
2answers
262 views

Unlock Mac from Terminal or Automator

In my attempt to start iPlayer and BBC News every morning, I have scheduled Automator to open a page. It does work, however my Mac stays locked, therefore I need to get out of my bed and enter the ...
7
votes
4answers
283 views

Can I run top as screensaver?

My employer has recently issued me a MacBook Pro to play with. I have a lot of Linux experience, but I was struck by how nice the terminal looks on the Mac in full screen mode, especially when running ...
0
votes
0answers
27 views

Network drive showing minus sign for one folder, but Terminal shows everything in it

I've got a small home media server setup on a Raspberry Pi. It has had one 1 TB USB (ext3) drive plugged into it for a while now, which has worked perfectly over the network on my Macbook Pro ...
0
votes
0answers
69 views

How do I use the defaults command with App Groups?

In OS X Yosemite it's possible to have preferences that are shared between multiple apps that are in the same App Group. On the development side of things it's as simple as setting up the App Group ...
0
votes
1answer
36 views

Setting environment variables for scripts run by launchd?

I have a script that worked in the past, but seems to be having issues now (I believe it's due to Yosemite). What I had done was created an environment variable that was set to "false" and then my ...
11
votes
2answers
14k 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 ...
1
vote
1answer
34 views

Fixing a Messed Up $PATH in Yosimite

I had troubles installing node with Homebrew as Homebrew does something weird to the node install that installing Yeoman generators seems to be hindered a bit. My issue, however, is that I think ...
1
vote
1answer
32 views

Missing .Bash Files in ~/

While uninstalling/removing home-brew, node, and yeoman...I noted that I don't have a .bashrc or .bach_profile in my home directory. I only have .bash_history present. Why is this? Is this bad? If ...
5
votes
1answer
930 views

View passwords of all Wi-Fi networks my Mac has connected to in the past

I have connected my Mac to lots of public Wi-Fi networks. I want to know their passwords. What should be the terminal command to list all the Wi-Fi networks whom I connected with in the past with ...
0
votes
1answer
83 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 ...
1
vote
2answers
795 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 ...
5
votes
4answers
5k views

How to reset $PATH?

I was trying to add something to $PATH and it went totally wrong. I now can't run any commands such as ls. I've looked at this answer and used the following lines: ...
19
votes
8answers
10k 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 ...
2
votes
0answers
30 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 ...
0
votes
3answers
31 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 ...
1
vote
1answer
28 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
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 ...
5
votes
1answer
763 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 ...
2
votes
2answers
204 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
vote
3answers
100 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 ...
5
votes
1answer
195 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
40 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
14 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 ...
3
votes
1answer
972 views

enabling/disabling internet sharing with terminal in mac osx 10.9.2

Very much on the line of already existing questions, but not having enough reputation to comment by following existing threads, I can only ask my own, at the risk of duplicating may be, certainly ...
1
vote
1answer
150 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
23 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
2answers
428 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
250 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
65 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 ...
-1
votes
0answers
18 views

Mac is hard resetting how do I cancel through recover mode [duplicate]

I accidentally did a hard reset on my mac by doing control+c when my mac was booting up and I typed /sbin/fsck -fy because it supposed to fix my mac so that it gets unstuck of safe boot and then it ...
2
votes
1answer
25 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
34 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
106 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
22 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.