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
1answer
272 views

Unzipped files mystery location?

I used the Terminal to unzip a file by typing Unzip then dragging the file to terminal. The file unzipped successfully and a few GBs were used from my SDD. However, I have no idea where the files are ...
0
votes
1answer
2k views

Opening/Mounting a .img file

How would I do this? I have attempted double clicking on it (obviously) and I get an error of it saying that its not recognized. My second though was using Disk Utility (the app) to try and change ...
3
votes
1answer
1k views

Is it possible to set Magic Trackpad option via Terminal?

Is it possible to set the magic trackpad options with the menu topics: Point click, scroll & zoom, etc. by using the Terminal?
1
vote
1answer
149 views

logger vs syslog -s

What exactly is the difference between using logger and syslog -s? According to its manpage, logger provides interface to the system log module, but I can't really see the point given that syslog(1) ...
4
votes
4answers
8k views

How to rename multiple files at once?

I want to rename multiple files at once. For example: Picture1.jpg Picture2.jpg Picture3.jpg Picture4.jpg into Vacation-Picture1.jpg Vacation-Picture2.jpg Vacation-Picture3.jpg ...
8
votes
2answers
2k views

mount is adding a quarantine flag, causing: /bin/bash: bad interpreter: Operation not permitted - but not the usual suspects

OK, I'm having a similar problem to: -bash: Applications/mvim: /bin/sh: bad interpreter: Operation not permitted - but it's not the same problem. I'm getting the same result. I've already verified ...
1
vote
2answers
397 views

Terminal in full screen mode: how do I recover from “cat /dev/random”

What are the ways I can regain control over my computer when I have terminal in full screen mode and type: cat /dev/random
0
votes
1answer
103 views

Writing code on System 6?

I have a Macintosh SE FD HD running Apple System 6. Is there a Terminal application? What programming language(s) can I run on System 6?
1
vote
2answers
324 views

Is there an escape sequence that will change the background color in Terminal?

All of the approaches that I have seen for changing the background color in Terminal use applescript; is there an escape sequence? All of the hints that I've seen, like this one, use AppleScript. I ...
4
votes
1answer
141 views

What is the ellipsis badge on minimized terminal app in the dock mean?

I have another terminal window minimized next to it in the dock and it doesn't have the ellipsis. Also it doesn't have any running processes. What does it mean?
1
vote
1answer
354 views

How do you prevent CodeRunner from prefixing its console output with [00m[00m[00m[00m[00m?

There seems to be a connection between CodeRunner's console output and your actual terminal prompt script, that is, if such prompt code is sourced from e.g. ~/.bash_profile (which CodeRunner reads by ...
1
vote
1answer
124 views

Colorful make compilation output

When I used Ubuntu, I remember that the output of make/gcc/g++ had nice colors, which were particularly helpful when needing to quickly identify errors (they were red). Is there a way to enable ...
2
votes
1answer
977 views

Change color of active terminal window

I often have a bunch of terminal windows with some various tasks. My problem, however, is that I have a hard time seeing which one is on top. This leads to me often typing [arrow up] + [enter] in the ...
3
votes
3answers
323 views

Mountain Lion - Cycle though windows not working on Terminal

Since updating to Mountain Lion, the keyboard shortcut for cycling through windows is not working for me in Terminal (and is driving me nuts!). Is there any known fix for this issue? The keyboard ...
2
votes
2answers
487 views

Terminal won't receive Control+← or Control+→

I just upgraded to Mountain Lion and I'm perplexed to find that neither iTerm 2 or the standard terminal will not receive Control ⌃+← or ⌃+→, which I typically use to jump words on the command line. I ...
6
votes
1answer
4k views

Where are the Terminal settings stored on OS X?

You'd think A) I'd know this by now, and B) that it's readily available info, but apparently neither is the case. What I'm looking for is where the config files (colors, etc.) that ship with ...
2
votes
0answers
151 views

mdfind query on kMDItemFSTypeCode can't find some type codes

I just upgraded to a new MacBook with Lion, and having discovered that some of my old apps can't come with, I'm scouring my files for certain types that will need to be converted to future-proof ...
2
votes
1answer
56 views

In terminal, running top, info extends past the view of the window

I assume this occurs in more terminal functions than just top. Is there a way to view the information without resizing the console window? I currently have my console window set to open at 80x24, ...
6
votes
2answers
694 views

How can I have my shell always start in a certain directory that is not my home directory

I've tried putting cd /Users/my_name/my_directory/structure in both .bashrc and .bash_login but neither works, i.e. when I open a new terminal window I am in my home (/Users/my_name/) directory. ...
5
votes
2answers
9k views

How to move the Downloads folder (in Mountain Lion) to another disc

I want the "Downloads" folder not on the system drive but on my second internal drive. In Lion I just deleted the "Downloads" folder and replace it with an alias with the same name (pointing to the ...
-1
votes
2answers
558 views

Mac Terminal PATH settings [duplicate]

Possible Duplicate: Reset your PATH variable Everytime I open Terminal I need to set the PATH using: PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin Otherwise commands like ...
3
votes
1answer
375 views

How does one change Terminal.app profile for all open tabs using a keyboard shortcut?

Would love to know if there is a way to switch all my current Terminal.app tabs to a different profile on the fly. The use-case being to change Terminal profile from a dark to a light theme, and vice ...
3
votes
4answers
13k views

How do I exit python in the Mountain Lion Terminal?

I'm having a couple problems with basic command line stuff in the terminal of Mountain Lion. control + D does not exit Python as it does in Lion; instead it splits the screen. Meanwhile, I also ...
0
votes
3answers
482 views

I have lost the prompt on Terminal on my Mac; unable to get commands to work

I was trying to launch a few Java applications using the terminal. The command that I was instructed to launch it with (I was following a guide) was the following: #!/bin/bash cd "$( dirname "$0" )" ...
10
votes
4answers
30k 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 ...
2
votes
1answer
2k views

Delete all OS X accounts in terminal when selling laptop

I have an old macbook with some photos on it that I'm trying to sell. I want to keep the OS on there so that someone new can use it, but I have to wipe it through terminal because the screen is mostly ...
2
votes
2answers
1k views

How to install and override Vim in Mountain Lion for +ruby +python support?

I want to install and override the current vim version in Mountain Lion due to me needing +ruby & +python support. I am particularly interested in using the brew commands from Homebrew but I ...
2
votes
1answer
190 views

How to make red distinguishable from grey in Terminal profile “Pro”

The default for Terminal.app profile Pro is a black background with ANSI colors. Since the background is black the preferred color setting for Vim is background=dark. In this combination red text ...
3
votes
1answer
451 views

Remember Kerberos tickets after reboot

I need to use Kerberos to connect to my network at work. The built-in kinit and ssh in Lion work fine for me. However, I need to get a new ticket and re-enter my password every time I restart the ...
3
votes
1answer
595 views

vim not working under iTerm2

Basically, vim behaves strange under iTerm2 (it works normally in Terminal). It sets the cursor in a non existing lines, it displays garbage (content from other lines) when I try to edit a line in a ...
1
vote
1answer
212 views

Terminal won't choose new window settings at startup

I've been running into an odd behavior on 10.7 where editing Terminal preferences to launch a new window setting via "On startup, open" doesn't result in the changed terminal after a quit/launch. ...
0
votes
1answer
97 views

how can i get url of the application is connected to server?

I want to grab server url of each application that is online with that. Ex. twitter app -> http://twitter.com/... Ex. Tweetdec app -> http://client.tweetdec.com/... Ex. itunes app -> ...
3
votes
1answer
3k views

Warning message when trying to change Standby mode settings

I tried changing the Standby mode settings using the command sudo pmset -a standbydelay 5400 . I set it to 5400 so that it is delayed to 1.5 hours compared to 70 minutes as default. However, I get ...
1
vote
1answer
919 views

“Too many open files” - how can I set the ulimit -n value for emacs on Lion?

I've seen other questions covering the topic of how to set the file limit on Leopard/Lion. For example: How to properly increase ulimit -n on Lion? Too Many Open Files But after reading ...
3
votes
1answer
10k views

What is the PATH environment variable and how do I set it up to use the Android SDK?

I'm a mac noob, and a terminal noob. I'm used to installing things in Windows, and now I'm trying to set up Eclipse with the Android SDK on Mac and I'm having some trouble. I downloaded Eclipse and ...
14
votes
2answers
2k views

How do I use AirDrop from the Terminal?

Is there a way to share a file over AirDrop via Terminal on Mountain Lion? How so?
1
vote
1answer
733 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??
0
votes
0answers
575 views

Bad CPU in Executable Trying to Install Ruby

I'm running Mountain Lion, and I'm trying to install Ruby; however, I get "bad CPU in executable" error. Not sure how to fix this . . . ideas? Sorry for the bad formatting - "code" doesn't really ...
0
votes
2answers
247 views

How can Apple provide GNU tools?

I am a web developer and am wondering why os x comes a long with a lot of gnu tools (nano, bash, vim). How can apple provide them in their closed-source system when the GPL forbidds this? Regards, ...
1
vote
1answer
279 views

Mountain Lion Figlet through MacPorts error?

I've just installed Mountain Lion, Xcode 4.4.1 + command line tools, and MacPorts for ML. It's working for other packages but I can't get figlet to install. When I use sudo port install figlet in ...
5
votes
1answer
2k views

Terminal uses one theme for the first window and a different theme for later windows.

I want to set the "Homebrew" theme to be the default in Terminal. I've changed the setting in the preferences: I chose "on startup, open" : "new window with settings" : "Homebrew". Here is a ...
1
vote
1answer
124 views

How to use pipeline in Terminal

I'm trying to convert a P12 file to a PEM file. When I execute the command, the terminal asks me for three things: P12 passphrase (I type it in, hit enter) PEM passphrase (type it in, hit enter) PEM ...
4
votes
3answers
13k views

Use curl to download images from website using wildcard?

Is there a way to use curl to download non-sequential images with a wildcard? I want to download all the panoramas I upload to my account at 360 Panorama to a local folder so I don't have to do this ...
0
votes
1answer
346 views

How can I set and use a PATH component with blanks in bash?

I have Mathematica 8 installed on my OS X Mountain Lion laptop. I want to set my PATH so that I can run either MathematicaKernel or Mathematica from the command line. To this end I have configured my ...
3
votes
2answers
1k views

What terminal commands are new or updated in Mountain Lion?

Where can I find a list of new or updated terminal commands or features for Mountain Lion? Lacking any list, does anyone have a sugguestion on how to generate that list? (some combination of ls ...
7
votes
2answers
17k views

Using Terminal, how can I find which directory is my USB drive mounted in?

I am using Terminal and have looked through directories. I just can't find where my USB drive its directory is. Which directory is my USB drive mounted in?
4
votes
2answers
857 views

How to reset the terminal before command execution?

I've been looking at spicing up my Terminal experience by among other things, adding some color. I used the tput command to build a nicely looking prompt. This is part of my .bash_profile: ...
3
votes
1answer
807 views

How to have terminal close tab when shell exits?

I just recently upgraded from 10.6 to 10.8. On 10.6 I could set the terminal to close the tab/window when the shell exits. Mountain Lion's terminal just says the process is completed and the ...
33
votes
5answers
5k views

Is there a way to access a Mac's geolocation from terminal?

Some GUI apps use OS X location services, but I want to retrieve a Mac's physical location from the command line. This could be useful for running scripts, switching settings etc. The mechanism should ...
2
votes
1answer
7k views

For a startup volume encrypted with Core Storage, System Preferences show that FileVault is disabled

My iMac has a SSD and a HDD. The OS is installed on the SSD. I performed a clean installation of Mountain Lion to the SSD, and cloned my SSD using a backup from my Time Capsule in OS X Recovery. ...