Tagged Questions

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

0
votes
1answer
1k views

Unzip .exe files on Mac [closed]

Is there a method to unzip .exe file on a Mac OS X without downloading and/or buying applications that do this for you?
4
votes
1answer
272 views

declare -x messages appear in my terminal. How can I get rid of it?

declare -x Apple_PubSub_Socket_Render="/tmp/launch-qoybJQ/Render" declare -x Apple_Ubiquity_Message="/tmp/launch-DWchNf/Apple_Ubiquity_Message" declare -x COMMAND_MODE="unix2003" declare -x ...
6
votes
1answer
15k views

Installing .pkg with terminal ?

Is it possible to install a .pkg using a terminal ? (I wanted to install an app through ssh).
1
vote
2answers
401 views

Automatically move files into correct folder on server

I often need to move files from one location on a server into a set of hierarchical folders. The filenames are usually 7 digits long - sometimes with some extra characters at the end. The folders ...
0
votes
1answer
456 views

Can't find/run `configure` script on mac os 10.8

I'm trying to install a program called CSIM (neural micro circuit simulator) and one of the steps is as follows: Step 2. Run: configure; make; for Linux/Unix(/Mac OS) But I can't run, not ...
8
votes
5answers
840 views

Is there a way to make pasting into Terminal safe?

I paste filenames/etc into Terminal all the time, and occasionally the contents of the clipboard isn't what I expect. Often the result is several hundred lines of text (eg, source code) pasted into ...
0
votes
1answer
343 views

Programmatically read both per-tab Terminal.app titles

When bringing up the Inspector (⌘I) in Terminal.app to edit the title (⇧⌘I), there are actually two titles that can be entered. The first is known as the Tab Title and affects the terminal window ...
9
votes
2answers
4k views

Can I install or update Mac App Store apps through a command line using terminal?

Is there an official way provided by Apple or a workaround so that I can install or update Mac App Store apps through Terminal?
0
votes
1answer
148 views

Individual terminal tabs running emacs become buggy/corrupted over time

I generally work with a terminal window with a half-dozen tabs open, and that window lives for a week or so. Every once in a while, tabs (running emacs) become corrupted or something [every other ...
4
votes
1answer
281 views

Any way to write the Terminal scrollback history?

I would like to open a new tab in Terminal with custom scrollback history. The primary use-case is to "fork" an existing tab such that both tabs contain the same scrollback history, but more generally ...
0
votes
2answers
836 views

How to change mc (midnight command) bash prompt on OS X?

I observed that my custom bash prompt does not work on mc. How do I customize it?
4
votes
1answer
2k views

How do I use/enable Tor when using Terminal?

I live in a country that blocks most types Internet access and protocols so I need to utilize Tor from the command line. I haven't come across much useful information in this regard, so any ...
2
votes
2answers
683 views

What tools exist to rename (truncate) batches of files in OS X?

I get bunches of files I need to rename. The original filenames normally have 7 digits - plus an optional character (or two), followed by a space then a whole string of other characters. I need to ...
2
votes
2answers
1k views

How to customise .inputrc to make command-delete and alt delete delete line and word in terminal?

I'd like to add a little bit of consistency between editing text on the terminal and editing text in normal OSX programs. I use iTerm2, but I imagine any solution would involve using readline and ...
7
votes
3answers
1k 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
644 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 ...
6
votes
3answers
426 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 ...
5
votes
2answers
4k 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?
6
votes
2answers
2k 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, ...
13
votes
2answers
3k 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
404 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
1k 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
131 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
241 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
314 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
418 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 ...
6
votes
1answer
3k 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
526 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
383 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
215 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
3k 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
324 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
956 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?
34
votes
3answers
18k 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?
16
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
687 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
254 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
792 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
73 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
3k 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
201 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
82 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
167 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
1k 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 ...