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

5
votes
3answers
1k views

TotalTerminal doesn't work with full-screen apps

TotalTerminal (former Visor) is an awesome plugin for Terminal that turns it into a Quake-style console that slides down on a key combination. This is tremendously useful for development because I ...
-1
votes
0answers
17 views

Export PATH directly from command line in Yosemite--where is my PATH?

I want to use the latest version of git which I installed via Homebrew, so I needed to change my PATH variable to ensure OS X uses the Homebrew version instead of the outdated version that ships with ...
4
votes
1answer
58 views
+50

Terminal app Tabs, how to position next to current tab instead of at the end

I use Cmd-T all the time to open new tabs, and it's set to use the same directory. However, it positions the new tab as the last / far right tab in the window, instead of next to the current tab that ...
1
vote
1answer
948 views

Getting loads of Open error 5's when using Terminal to repair permissions

My GF's MBP running on Mavericks broke down 2 days ago. First I tried to copy the contents of her HDD to an external HDD but got the I/O error time after time. Then I tried all the basic things like ...
15
votes
6answers
2k views

I-beam cursor color in Mavericks's terminal

After upgrading to Mavericks the I-beam cursor in the terminal became less visible (see screenshot, I am using the Pro profile with a dark background) Is there a way to change the cursor's color or ...
3
votes
3answers
1k 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 > ...
36
votes
4answers
37k views

How can I open a text file with TextWrangler from the Terminal (command line)?

Often when I work in the Terminal (the command line) I need to edit some text files. I prefer to edit text files using TextWrangler. How can I open a text file with TextWrangler from the Terminal? I ...
0
votes
0answers
21 views

Trying to run commands in bash causes Homebrew error

Whenever I try and run any commands in terminal (bash), my window goes crazy and it keeps looping through an output of: /usr/local/Cellar/rbenv/0.4.0/libexec/rbenv-hooks: line 32: cd: ...
1
vote
1answer
32 views

What is wrong in this command about grepping and pandocing?

I am thinking this answer which returns a broken PDF document in OSX 10.10.3. The file test_dummy.tex is here. pandoc test_dummy.tex -f markdown -t html | grep -E '(^<|^$|^ *$)' \ | grep -v ...
4
votes
3answers
4k views

Change file association in terminal?

Is there a method for associating file types with applications via terminal? I thought ~/Library/Preferences/com.apple.launchservices.plist might do it, and I also have seen: Why is a command line ...
0
votes
1answer
14 views

create custom links in OSX dock

I have a program that runs from the command line but not correctly from the icon in the applications menu. While I would like to figure that out, all I want right now is way to create a link in the ...
0
votes
1answer
13 views

Unable to cut from text edit and paste into terminal

Up until a day ago, I was able to cut and paste commands into terminal from text edit. This is a ongoing function as I store regularly used bash commands in text files so I can cut and paste them ...
0
votes
1answer
20 views

Shut down via Terminal/AppleScript without restoring

How can I shut down my Mac via Terminal or AppleScript, but without restoring? tell application "Finder" to sleep works not, the windows will be restored.
8
votes
1answer
6k views

Create a Terminal command to open file with Chrome

I want to create command in terminal that would allow me to use chrome index.html and have the the given file open in Google Chrome. How can I get this working?
0
votes
0answers
26 views

Full screen always enabled when opening app in OS X Yosemite

How can I set my Macbook Air to always open new apps in full screen mode? Some apps already do it (Mail for example), but others are always opening as a small window, especially Safari when I close ...
82
votes
4answers
35k views

git auto-complete for *branches* at the command line?

On my linux machine I have autocomplete for branches with git. [Note we are talking about git branch completion, not bash completion (e.g. commands, files, etc). For example I can type git checkout ...
4
votes
1answer
1k views

enabling/disabling Internet Sharing with terminal in mac osx 10.9.2

The problem is setting the internet sharing with CLI instead of GUI in Mac OS 10.9.2 I followed instructions as per this thread Start/stop internet sharing from a script? including both CLI and ...
1
vote
0answers
26 views

Changing color of text in terminal for program output

This might be answered already but I could not figure out a good way to phrase it to look for an answer so I hope you'll bear with me. I want to change the color of the text output on Terminal if it ...
2
votes
3answers
1k 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
46 views

OS X lets me run softwareupdate command without sudo: is this normal?

I am able to run and install updates with the softwareupdate command without prefixing sudo. Is this normal, can anybody else do this on there system? The man page states that admin privileges are ...
0
votes
2answers
42 views

Terminal command to arrange all files/folders by name on hard drive

Looking to tidy up my iMac. Like everyone, I have lots of files/folders on my iMac. When they get dragged and dropped, or moved around, they retain their position, and the only way to fix this is to ...
2
votes
1answer
15 views

Can I install figlet from the terminal?

I really love FIGlet, and use it frequently in my code and emails. It's really easy to install through the terminal in Linux, but I can't figure out how to install it on a Mac (OS X Yosemite 10.10.3). ...
-1
votes
1answer
51 views

Terminal command “ls” in AppleScript list

How can I create a list in AppleScript that shows the results of a terminal command. For example ls /Applications/ Every application should be shown in the list, so that I can choose an item from the ...
0
votes
0answers
29 views

Restore scrollbuffer and tabs in iTerm as Terminal.app does

I love the restore functionailty of the Terminal.app when the app crashes or I need to restart my computer, Terminal.app will show me the recent scrollbuffer for the tabs I have open with a - ...
0
votes
1answer
38 views

Why is is not possible mark text in my Terminal window anymore?

I am an eager Terminal user on Mac OSX Yosemite. From time to time I mark text in the Terminal window to copy(right click or cmd+c) onto the clipboard. For some reason it suddenly stopped working! I ...
1
vote
1answer
15 views

Is there a way to see the invisible formatting in my clipboard and/or create the formatting when piping to pbcopy?

Is there a way to see the contents of my clipboard in a way that shows me what formatting metadata is included? Or to get to the question behind the question: is there a way to generate output in a ...
4
votes
3answers
469 views

How to disable Notification for Terminal app?

When i am starting a new server from the Terminal app, and i have the window not active, the Dock icon "jumps" up and down, also called "notifies me". I don't want this behaviour, i want a quiet ...
1
vote
1answer
42 views

node npm Installing bower = npm ERR

New computer, fresh start. Was installing bower from terminal and got this ERR! message in return. Seems common, but i'm hesitant in forcing it with sudo. OSX 10.10.3 git version 2.3.2 (Apple ...
2
votes
3answers
4k views

How To Securely Erase Free Space Using Terminal?

A friend told me that when you delete a file on your Mac in the normal way it actually stays where it is, but it is just no longer usable by your Mac. The addition of more files to your Mac causes ...
0
votes
1answer
32 views

Spotlight/Finder will not index after Yosemite update

I'm currently working in OS X 10.10.3. I made a bit of a jump from 10.6.9 as our system was falling behind from the person who previously held my position. All of my customer files are stored on an ...
0
votes
1answer
17 views

Change keywords meanings of the terminal

I am running Maxima from the terminal, and there are some things that annoy me a little bit. For example, if I want to move left or right, instead of doing that, the terminal prints some weird ...
0
votes
2answers
19 views

Find out what key code brightness up/down has

I am writing a script and I need to figure out current key codes for brightness up and down. I know the standard for a MacBook is 107 and 113, though as soon as I connect a different bigger apple ...
2
votes
1answer
23 views

flac terminal app no longer works - giving me libogg.0.dylib errors

I've been a happy user of flac on the OS X Terminal. I mostly use it to either encode, or decode wav -> flac or flac -> wav. What I'm meeting nowadays is this: flac -d *.flac dyld: Library not ...
1
vote
3answers
101 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 ...
1
vote
1answer
28 views

Notification Center frozen in macbook pro with Yosemite 10.10.3

My notification center is completely frozen. It's still in the upper right hand corner of my screen, but when I click on it, nothing happens. I do not get any notifications in a popup window when I ...
1
vote
2answers
39 views

Clear terminal and prevent restoration

There is some sensitive data (credit card numbers and such) that I store on my hard drive, encrypted. I use a script to decrypt the data and display it in the terminal window. When I am finished, I ...
1
vote
3answers
1k views

Yosemite does not have ftp sharing option in file sharing preferences?

I have just obtained a Macbook Pro with Yosemite installed and am trying to connect to it from another host on the local network via ftp. The connection is refused. So I get into the preferences in ...
0
votes
0answers
23 views

Rendering a pixel font on Retina display

I've got this simple custom pixel font I use for programming: creep. I recently purchased a new MacBook with Retina display and noticed that the font's pixels don't quite match up with the screen's ...
0
votes
0answers
27 views

How to Set my Mac's $PATH back the way it was before

I'm just getting started with Terminal, the other day I might have messed something up with my urs/local/bin. When executing echo $PATH it returns me with ...
1
vote
0answers
11 views

Terminal appears to ignore autoproxyurl setting

I can't get easy_install to install anything as it complains it gets a connection refused.: Searching for BeautifulSoup Reading https://pypi.python.org/simple/BeautifulSoup/ Download error on ...
1
vote
0answers
16 views

How to allow OPT and # simultaneously in terminal [duplicate]

My (UK) MacBook Air keyboard doesn't have # marked. It has ± and §, which I have never used, but it doesn't have #, which is an extremely common character in computer code. Instead, I have to use the ...
1
vote
1answer
48 views

sudo asking for password even though user doesn't have a password set

I have a computer that doesn't not require a password. I'd like this to continue into sudo, but unfortunately it doesn't recognise a user not having a password. According to Apple the sudo command ...
4
votes
2answers
1k views

How to spoof a USB-Ethernet adaptor Mac address in OS X

I've recently bought a usb-ethernet adapter (not apple) and I get internet connection. In my university we have to put a specific mac address but I can not change it. I have tried with sudo ...
-2
votes
2answers
34 views

How do I make this terminal script work properly?

I want it to appear like I'm contacting a bunch of ip-adresses and it works fine until the third line in the code and I want to be able to fix it. Also the 4 bottom lines don't work. So this is ...
0
votes
1answer
35 views

How to port this *nix-shell script to OS X?

I've got a unix-shell script that's supposed to work on nix machines. This doesn't run on OS X however, due to "cp" command not defined. Changing it to "copy" didn't help. git log -1 ...
11
votes
2answers
13k views

How to control Bluetooth wireless radio from the command line?

This question is almost the same as my previous question, but with one major difference; I want to turn on/off Bluetooth from the command line (bash or similar), NOT from AppleScript - the answers for ...
0
votes
0answers
14 views

Unable to complete ssh connection and open shell on server

I'm trying both the native OpenSSH (appears to be OpenSSH_6.2p2) which comes with Yosemite to connect to several Ubuntu servers. In the past few days it almost never works, but I installed putty which ...
1
vote
0answers
22 views

How can i delete a partition in Terminal when I can't simply combine because 'The given partitions are not on the same whole disk'?

Before I partitioned my HD, the only one I had was "Macintosh HD". The partition created one called "Macintosh HD2" I used terminal to erase "Macintosh HD2" somehow, but it returned as "Untitled." ...
5
votes
3answers
2k 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
0answers
28 views

Command line to disconnect or connect 802.1x authentication

I have been searching for a terminal command line to disconnect or connect 802.1x authentication, but not the network interface. I was searching some help pages and it showed command lines to export ...