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

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
5 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 ...
81
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
24 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
2k 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
40 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
40 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
12 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
43 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
16 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
33 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
14 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
467 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
27 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
28 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
16 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
18 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 ...
1
vote
1answer
20 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
98 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
22 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
38 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
20 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
24 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
46 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
33 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
11 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
20 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 ...
0
votes
1answer
22 views

Use defaults to edit preferences

Recently, I have been playing around with editing System Preferences without GUI and using the defaults command. I have tried for example: defaults write com.apple.dock autohide NO Though that did ...
-1
votes
2answers
18 views

Deleting a file from Single User mode

My macbook's hard disk has 10 MB free space and the login is not possible. I booted to Single User mode to delete some files but the paths were totally different than the paths I get when I just ...
-1
votes
1answer
40 views

Kali Linux on Macbook

I have a question about kali linux on an Apple Macbook Pro running in Parallels. After giving the command sudo airmon-ng in terminal, it shows no interface. Does anybody know what to do or is it ...
1
vote
2answers
26 views

Automated screensaver configuration in command line/shell script

So I'm configuring some Default User Template LaunchAgents to configure a default screensaver for some of my company's most popular fan art. (It's actually been really well received by the team). ...
110
votes
6answers
50k views

How can I trigger a Notification Center notification from an AppleScript or shell script?

I'd love to be able to take advantage of 10.8's Notification Center features in AppleScripts and shell scripts I write. Is there a built-in command or a third-party library I can use from either an ...
0
votes
0answers
50 views

How to paste Chinese/Unicode characters to Terminal?

I'm trying to paste these Chinese letters: 你好世界 to my Terminal, but instead I've got "^L" or some other weird characters. The same happens for other unicode characters (such as £āēīōūśṣṭēīōū) when ...
0
votes
0answers
12 views

Cannot get launchd to recognize custom plist automatically

I have a launchd plist file which I would like to run which launches a shell script. I can manually load the process into launchd, but upon reboot, I cannot get it to stay loaded. Here's the plist: ...
1
vote
0answers
11 views

How do I locate and disable background PGP and Kapersky start up programs?

I had to uninstall Kapersky by deleting the application but the item still shows up on my task bar when I restart. Also, I have PGP installed on my mac, but when I telnet to port 25 of another ...
1
vote
1answer
21 views

Mac OS X Terminal - While True Do - Can you stop automatically under desired conditions?

Currently I am using a following command: while true; do python [file]; sleep X; done I was wondering if I can stop the loop if the result prints a word that I'm looking for. Plus is it possible to ...
1
vote
3answers
16k views

How can i reset my Terminal?

just some time ago i installed the OS X Server app on my mac and since this day it always appears server as the chosen directory in my terminal. But because i dont really like the Server application ...
9
votes
2answers
6k views

How do I make ⌘← and ⌘→ work for home/end combo for Terminal?

Why does fn-⇧-→ (or others) do a home/end in Terminal but a ⌘-→ works everywhere else? So just to be clear the question is how to make Terminal take Command + ← and → for home and end?
2
votes
1answer
34 views

Running Say Command When Mac Is Logged Out

What would happen if I (remotely) ran a say command on a Mac that's logged out? Would the command run? Or wait until the user logs in to run?
3
votes
1answer
101 views

Terminal Command: List admin account

Does anyone know of a terminal command which lists the current administrator account? Thanks in advance.