questions narrowly about terminal.app alone should use this tag. Please consider using **command-line** for any question not specifically about the native terminal app

learn more… | top users | synonyms

1
vote
1answer
862 views

Cannot write to SMB Share with Terminal OS X 10.8

I am trying to copy some files from my local drive to a SMB share I have set up on my home network using Terminal, but I keep getting this error: fchmod failed: Permission denied The share is set ...
0
votes
1answer
2k views

Multiple instances of the Mumble client

I have tried command that I found and it works for second and after that second client closes. open -na /Applications/Mumble.app Other command that I tryied with the same resul. ...
0
votes
1answer
155 views

Why does Terminal swallow Ctrl+up/down keystrokes?

In Terminal.app on Snow Leopard, the key combinations Ctrl+↑ and Ctrl+↓ don't get passed through correctly. Instead Terminal.app receives a single ↑ or ↓ key stroke. I have verified this by running ...
1
vote
1answer
290 views

Open Terminal App Without Opening A Window

Is it possible to change the default settings in the Terminal App (OS X 10.7.5) such that when the app is launched, no windows are opened by default? As a shot in the dark, I tried closing all ...
1
vote
1answer
443 views

How to use a UNIX console app

I downloaded a port knocking script from http://www.zeroflux.org/projects/knock It downloaded a file knock, which is a Unix Executable File. When I double click on it, it runs the Terminal, where it ...
1
vote
1answer
720 views

How to start an app in the foreground?

For some reason, gitk always starts under all other apps. How to make it start on top of all other apps, like a normal program? Start it from the terminal with the gitk command, which lives in ...
9
votes
1answer
5k views

Set default shell to MacPorts bash in Mac OS X 10.6.8?

As a follow up to my previous question, I reinstalled my MacPorts and want to try its newer version of bash again. I installed the newest bash via MacPorts on my Mac OS X 10.6.8 system, but when I ...
1
vote
2answers
849 views

Terminal and bash can't start with libiconv error

I just tried to start Terminal.app in Mac OS X 10.6.8, and got the following error: dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib Referenced from: /bin/bash Reason: Incompatible ...
0
votes
1answer
524 views

hdiutil not finishing (UDRW)

I'm trying to convert a .iso to a .img using server:~ user$ hdiutil convert -format UDRW -o ~/Downloads/ubuntu-12.04-alternate-powerpc.dmg ~/Downloads/ubuntu-12.04-alternate-powerpc.iso Usage: ...
2
votes
2answers
363 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
4k 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 ...
3
votes
2answers
780 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?
-2
votes
2answers
2k 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
3k views

Reinstall Terminal on OS X Lion

I accidentally removed Terminal from the apps folder. Any ideas how to get that back?
78
votes
4answers
49k 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?
18
votes
4answers
6k 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
1k 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
4k 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
493 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
954 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 ...
8
votes
1answer
3k 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 ...
9
votes
3answers
4k 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
5k 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: ...
6
votes
2answers
3k 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
89 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 ...
4
votes
2answers
7k 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
395 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
90 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
225 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. ...
5
votes
4answers
2k 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
1k 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 ...
3
votes
1answer
4k 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
2answers
639 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 ...
2
votes
1answer
4k 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
2k 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
188 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) ...
9
votes
6answers
18k 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
567 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
187 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
490 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
174 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
700 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
132 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 ...
3
votes
1answer
2k 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
358 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
549 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 ...
13
votes
1answer
11k 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
210 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
63 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, ...