The terminal emulator included in Mac OS X.

learn more… | top users | synonyms

1
vote
1answer
469 views

In OSX Terminal freezes on text select

Once in a while, if I've been using the terminal and click on it to select text, the terminal freezes, with the mouse pointer becoming the spinning wheel. Activity monitor also shows 100% CPU usage. I ...
0
votes
1answer
155 views

Command not found on (Terminal) iMac [duplicate]

Possible Duplicate: How do I reset the $PATH variable on Mac OS X? When I open terminal and type the ls command, it says: command not found. I found a link that resolves the problem, but ...
3
votes
1answer
658 views

How to make alias/function in .bash_profile for `curl` that takes an argument?

I found this tip super helpful, for using curl to resume an interrupted file copy. The full syntax is: curl -C - -O file:///Volumes/path/to/file I would like to add an alias or function called ...
21
votes
3answers
4k views

Replace OS X's shell commands with the linux versions?

The commands available by default in the Terminal in OS X, don't seem to behave like their linux versions. How can I replace all of them with the actual GNU linux commands? For example sed -i ...
1
vote
1answer
193 views

Homebrew slows my terminal down on startup

I've had some issues with my terminal being extremely slow while starting up (both new windows and new tabs), from 10 seconds and up. I've tried deleting the Apple System Logs, but it doesn't help. ...
0
votes
0answers
76 views

OS X terminal always screws up its display of text when SSHed into other servers

When I'm SSH'd into any other server with Terminal.. Text will start display over hidden text, when I search through history, text will only show fragments. When I start typing, letters will appear ...
1
vote
1answer
527 views

Vim on Mac OS X “E492: Not an editor command: dw”

So...I'm on the second worst series of operating system in the world, using my everyday vim text editor, and...yeah...I have no idea. I guess its a bug, I'm running 10.7 Lion with nothing installed ...
5
votes
2answers
2k views

How to compile Rarcrack for Mac OSX?

I have a rar I desperately need whose password was saved as a file on a site that no longer exists :(. I'm running it on a mac osx 10.5.8 and have never used the terminal before but I figured out ...
1
vote
1answer
85 views

Why does git branch info clear upon making a new tab in terminal

I've written a bash script to put git info into my bash prompt, along with still keeping the terminal's pwd in the title bar, to allow for new tabs to be opened at the current working directory. It ...
1
vote
0answers
189 views

Find camera connected to Macintosh in Terminal?

Is it possible use the Terminal on Mac (OS X 10.6.8) to find a camera (Kodak EasyShare Z712 IS in this case) connected via USB? This camera does not show up in the Finder as a mounted drive. Where/How ...
0
votes
3answers
373 views

Mac OS X Terminal.app — automatically setup Home/End/Page Up/Down keys

We know how to setup Home/End/Page Up/Down keys in Terminal.app using interface, but does anybody know how make it automatically (maybe shell script, or apple script) so you don't need to go again ...
0
votes
0answers
172 views

Nano (pico) editor window resize

I am still not sure what I have done but I was testing some button combinations when I was in nano editor and all of a sudden the contents of the window started not to adjust themselves when I resized ...
2
votes
1answer
236 views

How do you install pythonbrew when using the Fish Shell?

I use the Fish shell in Mac OS X and I cannot figure out how to install pythonbrew. Is this possible and if so how? What I think I need to figure out is how to convert the following for my .bashrc to ...
0
votes
3answers
671 views

All terminal commands (like ls, cd, edit, open) are returning errors on my Mac [duplicate]

Possible Duplicate: How do I reset the $PATH variable on Mac OS X? From what I can tell from reading other questions/answers is that my .bash_profile file may be corrupt. If I type ...
3
votes
1answer
975 views

Using MacPorts within FISH shell

I have been playing around with FISH for a few days and I just tried to switch it to my main shell. That worked fine but now none of my software from MacPorts is recognized. I installed and followed ...
1
vote
1answer
340 views

DTerm: How to open into iTerm2 rather than Terminal.app by default?

In DTerm, one can open a full terminal application by typing ⌘-↩ after a command entered at the DTerm prompt. In a recent release, it is noted that support has been added for iTerm2 in DTerm via an ...
2
votes
0answers
618 views

Mac Terminal.app: disable red notification badge?

As of OS X 10.7 (I think?) Terminal.app will show a red badge counting the number of bells the encountered while the terminal is in the background: Is it possible to dissable this badge?
0
votes
1answer
133 views

Detecting used terminal application (iTerm2)

Can one detect what terminal application is being used? I want the actual application, not TERM env in the question. I'd like to detect iTerm 2 / Terminal.app so I could set OSX specific keyboard ...
1
vote
3answers
6k views

Reset Mac OS X Terminal to default

I accidentally renamed my "Basic" terminal profile under Terminal -> Preferences -> Settings. I renamed it back but this got me wondering if there was a way to reset all terminal settings to defaults. ...
0
votes
3answers
334 views

How can I Pbpaste an image in to the command line?

Current use case: I select "copy image" on some random png in safari. I type pbpaste into terminal, and get the link to the image. Is there anyway to get the binary data instead?
0
votes
2answers
110 views

How to find out why openning a Terminal in OS X is very slow sometimes?

Is there a way to verbosely print everything that gets executed when I open a Terminal in OS X? Sometimes it takes up to 10 seconds for the Terminal to become ready for interaction and I want to know ...
0
votes
2answers
296 views

How can I colorize ls on mac os x terminal?

I've seen everywhere I look: Edit .bash_profile on your home directory. The thing is, I don't have any .bash_profile on my home directory. At least I do pico ~/.bash_profile and I see nothing. ...
3
votes
2answers
453 views

Launching Terminal.app in the working directory

I have set up a script that launches the terminal with this bash command: open script.command script.command is a Perl script, and it gets executed just fine. (This may look a little convoluted, ...
1
vote
1answer
359 views

Weird Terminal error when opening TextEdit.app

I was trying to edit my host file with the command sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts I got the following error: Sending synchronize message <dictionary: ...
3
votes
1answer
971 views

Scroll Bar on OS X Lion Terminal won't go away [duplicate]

Possible Duplicate: Snow Leopard hide scrollbar in terminal? I have this scrolling bar on the right side of my terminal because I accidentally split the window and I've merged the windows, ...
1
vote
1answer
2k views

Perl for matching with regular expressions in Terminal?

I'm trying to familiarize myself a little with Perl to use for regular expression searches in Terminal (Mac). Now, I'm not really looking to learn Perl rigourously, just trying to find out how to do ...
1
vote
1answer
332 views

Mac terminal propmt color for specific directories

I'm looking to setup visual alerts when working within certain directories within mac osx terminal. Specifically, I have several projects running within the same framework which can easily lead to ...
0
votes
1answer
190 views

Terminal window fills the screen in OS X Lion

When I open Terminal, it fills the screen, there is no way to minimize it. There is no toolbar at the top. It is just a screen of white, with the bash prompt. I am used to Linux, and controlling a ...
3
votes
1answer
1k views

Blank Terminal (no response) on Mac

I've seen numerous cases of this all over the internet, and the solution is (optionally: Do _ and then) reboot. The reboot is the only necessary step, but I'd like to remove that step (find the root ...
5
votes
2answers
2k views

Equivalent of 'clear' command when using tail -f

I am using the tail -f command to follow an error log, and I often want to "clear" the terminal, much in the same way that the clear unix command moves everything above the top of the window. Is there ...
2
votes
1answer
275 views

Set Terminal.app proxy icon with xterm and screen

For quite a while, I've been using the supplied answers for Resume Zsh-Terminal (OS X Lion) to set the proxy icon for Terminal.app while running under zsh, and so far, it's been working quite well. ...
5
votes
2answers
5k views

Syntax highlighting in Terminal Mac OS X

How can I highlight different parts in the Mac OS X Terminal app? For example a different color for input and output? Are the pre-defined color themes I can activate/download?
3
votes
2answers
1k views

How to set the title of the tab in Terminal.app to the remote server I'm logged in to

I use one Mac to do work on several others. What I'd like to do is find a way to programmatically set the title of a Terminal.app tab to the name of the server I'm ssh-ed into, so I can determine at ...
4
votes
1answer
413 views

Enabling mouse scrolling in OS X terminal man pages

I have been trying to find a way for the OS X Terminal to accept the mouse input to scroll in the man pages. I have installed SIMBL and MouseTerm but this does not enable scrolling in the man pages. ...
3
votes
2answers
316 views

When I paste a command on my bash prompt it is not in history — how can I add it?

When I paste a command to my OS X or Ubuntu bash prompt using CmdV, the command is not in history – even if it is executed. The command is in history only if I type it. How to enable that pasted ...
1
vote
2answers
2k views

Load RVM environment in Screen and ZSH

This topic has been driving me nuts for a while now, and I'd like to be able to figure out what's going wrong. I use zsh with screen in my terminal, and have been for a while. However, for whatever ...
6
votes
3answers
6k views

How to kill a zombie process on a mac

How to kill a zombie process or find it's parent process on a Mac using the Terminal?
26
votes
1answer
24k views

How to use Terminal to delete all .svn folders recursively?

what command can I type into Terminal so that I can: delete all .svn folders within a folder (and from all subdirectories) but not delete anything else ?
0
votes
2answers
2k views

Mac OS Lion Terminal: Add blank line after command output?

How can I configure my .bash_profile to add a blank line after any command output?
13
votes
2answers
15k views

Setting iTerm2 as the default terminal (OSX Lion)

I would like to set iTerm2 instead of terminal.app as my default terminal. Go2Shell for example let you open a terminal to the current directory in Finder. I want to ba able to use iterm2 instad of ...
1
vote
2answers
541 views

Script for toggling OS X “Show Hidden Files” in Terminal

Is there a way to toggle the hidden files visibility on/off with a terminal script? In pseudocode: if can view hidden files set com.apple.Finder AppleShowAllFiles false else set ...
0
votes
1answer
217 views

No colors in Terminal.app

Somehow my colors in Terminal.app are completely borked. If I load up Vim with syntax on, there are no colors, but line numbers are underlined (and so are some other parts). It looks really really ...
2
votes
1answer
6k views

How to list network shared items in terminal

Is there a way to list the network shared items in the Terminal command line the way Finder sees them in the Mac OS X GUI?
2
votes
1answer
367 views

How can I externally open a terminal with specific “settings” in Mac OS X Terminal?

How can I cause Terminal to open a new window with a specific “Settings”, without having to mouse into the File menu, but rather by opening a file or running a command or AppleScript (i.e. something I ...
0
votes
3answers
57 views

How can I see the size of each file in a particular directory in the terminal?

When using the terminal, is there a command that allows you to see the size of each individual file in a particular directory?
0
votes
2answers
1k views

Can you do any damage with “rm -R *” on a Mac?

I just cd to "/" on a Mac and accidentally entered "rm -R *". I know the command means delete everything in "/" but I wasn't sudoing, should I reinstall Mac OS? Or does a mac protect against this sort ...
7
votes
4answers
16k views

How do I make Vim beautiful (read: Textmate font/color ) on Mac OS X Lion? [closed]

I am just starting to make the Textmate to Vim switch. I love it, but it's so ugly. I'm running Mac OS X Lion and needed Ruby support so I am using Vim 7.3 as installed via Homebrew not the Vim Lion ...
9
votes
2answers
3k views

How can you customize your terminal bash prompt with smiley faces?

I'm trying to figure out how I can customize my terminal's bash prompt to use smiley faces. What I want (as seen in the example blow) is for the cwd to be separated from the prompt by a \n and show a ...
8
votes
1answer
4k views

enabling colors in the python interactive shell on OS/X

I have just modified my .bash_profile so as to have colors in iTerm and Terminal. Now, I want to enable syntax highlighting for the Python interactive shell, IDLE-style. How to do that?
1
vote
2answers
348 views

Have a script execute a command randomly every now and then

I have a script which I am scheduling to run daily with Cron. However I want a certain section of the script to only run randomly occasionally, with a certain probability of executing on any given ...