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).
5
votes
3answers
407 views
Can the contents of a partition be recovered after partition table is overwritten?
I ran a command to make my external hdd bootable knowing that it was risky considering the command itself did not allow me to specify a partition to which to write. (In hindsight, I would now call ...
1
vote
1answer
189 views
How do I make terminal sessions resume on Lion with iterm2 and tcshrc
My understanding is that with Lion my terminal windows should restore their state. However, this does not happen for me. I wonder if this is because I use tcsh instead of bash?
Is there something I ...
5
votes
1answer
209 views
How to remove .DS_Store from command-line auto-completion using cd?
I understand that .DS_store files serve a purpose. That said, they are a nuisance when auto-completing with the cd command. When I type cd in Terminal and press tab twice it lists all directories in ...
2
votes
1answer
103 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?
4
votes
2answers
397 views
What terminal command or program can list an SSD's Power On Hours?
I'm looking to script using the unix shell the retrieval of SSD (and HDD) data that disk utility shows in the information window.
I'm immediately interested in the Power On Hours and Power Cycle, ...
7
votes
2answers
395 views
What does the secure keyboard entry menu item in Terminal app do?
What does this option in Terminal do?
It seems to have no effect on anything.
1
vote
0answers
242 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
0answers
388 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
78 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
141 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
144 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
147 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 ...
0
votes
1answer
797 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
185 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
168 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: ...
1
vote
2answers
107 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?
3
votes
1answer
632 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
100 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
199 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
302 views
Reinstall Terminal on OS X Lion
I accidentally removed Terminal from the apps folder. Any ideas how to get that back?
6
votes
3answers
1k 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?
10
votes
4answers
708 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
259 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
1k 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
86 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
479 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 ...
5
votes
1answer
155 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 ...
3
votes
1answer
435 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 ...
0
votes
2answers
588 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:
...
1
vote
2answers
276 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
61 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 ...
2
votes
2answers
208 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
91 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
70 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
97 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. ...
0
votes
0answers
327 views
$PATH is driving me nuts! [closed]
(this is a dupe from SuperUser - dunno if that's bad form, please delete if so)
OK, apologies if this is something dumb, but I'm running out of ideas.
Goal: prepend /usr/local/bin to $PATH ...
3
votes
3answers
544 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 ...
1
vote
0answers
168 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
222 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
55 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
418 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 ...
2
votes
1answer
365 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
95 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) ...
2
votes
4answers
2k 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
...
7
votes
1answer
588 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
183 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
64 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
1answer
149 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
93 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
149 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 ...