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

2
votes
2answers
209 views

Disable ⌘+p and ⌘+s in Terminal.app

I continually hit ⌘-P and ⌘-S while Terminal is in focus, due to alt-tabbing between my text editor and other programs. Does anyone know how to disable these keys in Terminal.app?
4
votes
1answer
2k views

Mac OS X Terminal: Commands not found

I really don't have much experience with Terminal and I believe I may have caused a problem when trying to download and use wine on my Mac. If I try to type in anything I simply get "Command not ...
1
vote
2answers
305 views

How can I make the UP arrow work in Terminal's nslookup command?

When I open terminal, I'd like the up arrow go to the last command I typed within nslookup. Instead I get a strange escape sequence. What must be done to allow me to up arrow in nslookup?
-3
votes
2answers
893 views

Reversing some /usr/local damage

I was following this tutorial - http://howtonode.org/introduction-to-npm - and set /usr/local to $USER, which I now realise was a huge mistake. Does anyone know how I can revert these changes, but ...
2
votes
2answers
2k views

Reinstall Terminal on OS X Lion

I accidentally removed Terminal from the apps folder. Any ideas how to get that back?
31
votes
3answers
16k 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?
15
votes
4answers
3k views

Switching from Ubuntu to OS X and I'm lost

Situation I got tired of some bugs/annoyments in Ubuntu(=some programs coming along with it). For example after using compiz for a few days I found bugs that were distracting my work flow pretty bad ...
3
votes
2answers
651 views

Can “mdfind” search for phrases and not just unordered words?

Is there a way to search for an exact phrase using the mdfind utility? For example, I created two text documents titled "test1" and "test2". The contents of "test1" are: I love Apple And the ...
0
votes
1answer
3k views

How to copy data from harddrive to time capsule over USB connection via OSX terminal?

I want to copy a big amount of data from a harddrive to a time capsule controlled drive.so I put the harddrive via USB to the capsule and connect to the capsule server with a Mac. But when I then move ...
1
vote
1answer
215 views

Asking for password when adding new folder in /Users/…/Sites/?

My Mac's hard drive was recently replaced, and I copied my folders over from my old drive to the new one. One problem, however, is my sites folder. Originally, I had them located in ...
2
votes
1answer
769 views

eclipse RCP juno 64 bit crashes on Mac OS X

I'm trying to install eclipse RCP 64 bit version on my Mac (10.7.5). Whenever I tried to launch eclipse, I got this crash screen. When I tried to start eclipse using command line, I got ...
6
votes
1answer
1k views

Completely clear all output from a Terminal window

I would like to clear all output from a Terminal window (including all historical output) to get it back to a clean state as if you had just opened a new Terminal window, or a new Terminal tab. I can ...
4
votes
2answers
2k views

How can I add reminders via the command line?

Once in a while it may be useful to add some reminders to Reminders.app from the command line — especially because they are synced to iCloud. Is there any way to do so? A solution that does not rely ...
1
vote
2answers
3k views

Terminal $PATH error

I was adding a $PATH to .bash_profile: PATH="/Applications/MAMP/bin/php/php5.3.6/bin:$PATH" So I could install PEAR on MAMP. That all worked, but now I have an this error each time I start up: ...
5
votes
2answers
1k views

nohup or persistent process on Mac OS X ssh

I know this has been asked before but none of the answers seems to work in OS X Mountain Lion. I would like to launch a process via SSH and close the terminal without killing the process. nohup ccl64 ...
0
votes
1answer
72 views

File has different owner if examined using `sudo`

I have some files backed up on an external HD, and according to Finder they're all owned by my standard user account. According to Terminal, however, they're owned "unknown" if I look at them using ...
3
votes
2answers
2k views

Change all the .txt files to .md files in a certain folder

Is there a Terminal command or something like that to batch rename files in a certain folder? Basically I want to change all the files that have a .txt as a file type, and change it to .md (for ...
0
votes
1answer
188 views

Break RAID0 to have separate drives

I have an enclosure Hornettek Dual Bay SATA Case with removable disk trays, and RAID0, RAID1. USB3.0 and eSATA dual bay case with two 2T WD drives. My idea was to set them up as separate drives to ...
1
vote
1answer
81 views

How do I add a service to Terminal's “New Remote Connection” window?

In Terminal, pressing Shift+Command+K opens the "New Remote Connection" dialog box, which includes SSH, SFTP, FTP, and Telnet in the Service list and all Back-To-My-Mac systems in the Server list. ...
2
votes
2answers
163 views

How to have ctrl-left/ctrl-right move over words in Lion

Had a quick question about having emacs-like word skipping in my terminal. I had set this up pre-upgrade to Lion and had ctrl-left & ctrl-right set to \033b & \033f respectively. ...
4
votes
3answers
956 views

How did my Mac end up with iPhone 4S as my host name in the user prompt in OS X terminal?

The other day I was searching for Xcode iOS 5 tutorials. About a day or two later, I noticed my terminal prompt is now "iPhone4s : myusername". Naturally , my biggest fear is that there could be a ...
2
votes
2answers
450 views

External drive error while moving files, now folder is inaccessible from Finder

I was moving some files from one external hard drive to another, while the system froze, and I had to reboot the hard way. When I logged in again, the folder was looking semi-transparent (as it is ...
1
vote
1answer
943 views

How do you access network preferences from the Terminal?

I can't seem to find how to open the network preferences from the Terminal. What Terminal command will open up the Network preferences window as if having gone by System Preferences > Network ?
1
vote
1answer
240 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
143 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
7k 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
1k 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
381 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
102 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
299 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
131 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
316 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
891 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
316 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
476 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 ...
5
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
143 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
55 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, ...
5
votes
2answers
585 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
8k 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
513 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
315 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
12k 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
454 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" )" ...
9
votes
4answers
27k 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
999 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 ...