0
votes
2answers
51 views

Mac OSX Terminal: Copy Window Contents

I am running a java script, which has some text output. I'd like to copy/paste that output. If I do ⌘-A, it copies everything that's been typed that session, even if I typed clear beforehand. How can ...
0
votes
1answer
32 views

Cancelling shutdown -h command on Mac

I usually use the command sudo shutdown -h +60 from the Terminal on my Mac. Although I'd like sometime to cancel the scheduled shutdown or postpone it. Is there a command to do so? If yes, how?
0
votes
0answers
44 views

More than one UserEventAgents

Recently I was checking my processes network usage in Mountain Lion using "nettop d". I noticed something odd. I always have two UserEventAgents in my nettop list with different pids. And there is of ...
2
votes
1answer
234 views

Open terminal app with multiple ssh tabs

I work on a Mac with Lion (10.7.5). I want to create a clickable desktop shortcut that will open the terminal app with multiple tabs where each tab is an ssh session to a remote machine. What is the ...
2
votes
1answer
64 views

time command - output to a file

comamnd line: time myprocess outputs its results: OUTPUT FROM MY PROCESS real 0m1.954s user 0m0.086s sys 0m0.052s But if I do time myprocess > outputfile.txt my outputFiel.txt ...
0
votes
3answers
108 views

What causes commands to print on first line in Terminal.app on Mac OS X 10.8?

Every time I execute a command in Terminal.app, the command prints in the beginning of the first output line like this: > ls lsfile1 file2 file3 This only happens in Terminal.app, iTerm.app for ...
1
vote
1answer
86 views

Open current bash location explicitly in Finder

When double clicking a bundle folder (folder called *.bundle), a Terminal window opens as expected. However, $ open . does not then open a Finder window but another Terminal. Is there a way ...
6
votes
3answers
2k views

Any way to prevent Dropbox from opening the Camera Uploads folder when an iPhone is connected?

When I connect my iPhone to my MacBook Pro, Dropbox always launches its Camera Uploads folder in Finder. Is there any way to turn this off (some command I can run in Terminal, perhaps)? EDIT: To be ...
1
vote
0answers
90 views

Binding .inputrc on Mac?

On Linux I had this line on my .inputrc: "\C-/": undo which doesn't work on Mac. Is there a way to make it work? On another note, is there a way to bind command keys on inputrc?
0
votes
2answers
1k views

On startup, how can I configure Terminal.app to open in fullscreen?

When my mac reboots, I would like to have Terminal open in full-screen mode (not full window size). I'm on OS X 10.8.2. How can I configure this?
1
vote
0answers
50 views

MySQL formatting problems with UTF8 on Mac terminal

When I do a select in MySQL on a column in Terminal on Mac, it appears like this: +-------------------+ | my_iso8859_column | +-------------------+ |.. ....... | | ..... .... | | .. ...
0
votes
1answer
278 views

Where is the scrollback location for the mac terminal?

Title says all. (the one when you use the scrollwheel to see the old commands and results) I do not wish to clear it for sure as some data I have lost is within some old scrollback.
2
votes
1answer
210 views

How can I make hyperlinks in Irssi/Terminal.app be underlined?

I'm using Irssi via Terminal.app on a Mac. I realise you can open links in the default browser using CMD + Double-click but I'd like some visual indication in Irssi that links are, well, links (such ...
1
vote
2answers
233 views

iPython in Terminal.app: multi-line editing

I'm using iPython in Terminal.app (on Mac), and when I scrollback to a multi-line block it's really slow moving between lines. Is there a keybinding (or can I configure one) to make it possible to ...
3
votes
1answer
576 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 ...
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 ...
0
votes
3answers
345 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 ...
1
vote
1answer
305 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
549 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?
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 ...
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 ...
2
votes
2answers
2k views

Why can't I paste from clipboard to OS X Terminal.app when it contains special characters?

For instance, if I have one or more of the following characters copied into clipboard, a paste into the terminal window will not work: “ ” ’ – This is pretty annoying, actually, one would think ...
0
votes
2answers
6k views

How do I change the computer id on my mac?

I bought a late 2009 Mac Mini recently, updated it to Lion, and was rather frustrated to find that even after changing the Bonjour, DNS, and local network name, the terminal prompt (and "Computer ID" ...
1
vote
1answer
219 views

Adding an alias to .bash_profile removes other commands?

Before touching .bash_profile: mongod launches a mongo server, rabbitmq-server launches a rabbit server, etc. But once I add: alias ethertunes="sudo NODE_ENV=development nodemon --debug ...
5
votes
2answers
721 views

Capturing remote output locally in Mac Terminal

I want local programmatic access to ssh output in Mac Terminal. First, I tried redirecting the output of each command to a file. The file was perfect, but of course it was on the remote server, and ...
2
votes
1answer
417 views

Mac Terminal Color Changes after ssh

Whenever I ssh to my linux system from Mac. It started using remote system color. Is there a way I can force it to use original color ?
1
vote
2answers
1k views

Mac: truly detach process from Terminal.app

On Mac OS 10.6.6, I want to make a bash alias or function that will run Google Chrome. Launching Chrome is easy: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome". The problem is how to ...
2
votes
3answers
191 views

Terminal.app characters set changes — completely illegible

I was just ssh'd into my server (Ubuntu 10.04.2), and I ran aptitude (in interactive mode). Once I pressed one key (one of the letters, g I believe), it turned into this (not just the SSH session; ...
0
votes
1answer
485 views

How to prevent Terminal.app from closing when ssh is running?

Usually if a program is running in Terminal.app, when you try to close it it will give you a warning "Do you want to close this Window?" This happens to almost everything that I have tried, including ...
2
votes
2answers
11k views

Mac OS X Terminal get in Macintosh HD? For using Git and Github

I wanted to get started with using Git and Github especially for installing Web software to my htdocs directory. htdocs is the folder in which you put all your websites that then run by using MAMP -- ...
7
votes
2answers
1k views

name terminal/tabs

Is there a way to name a terminal window or even better give each tab a name. at the moment they just get the underlying process name : for example a tab running elasticsearch gets the name java
1
vote
2answers
629 views

Mac OS terminal : Select other device

I just can't figure out how to do this. I'm quite beginner with the terminal, I have no problem to browse between files with "cd", but don't know how to browse a different device than my hard drive ...
1
vote
3answers
14k views

Connect to another Mac via Terminal?

I need to connect to a Mac server from my MacBook using Terminal.app. If I open Finder, I can see it in my "SHARED" list. I can "connect as" an authenticated user and all that. But how do I connect ...
-1
votes
2answers
257 views

Where can I find the “terminal” program on OS X?

Where can I find this app, and where can I find instructions on how to use it? My OS X is using the Dutch language settings.
4
votes
3answers
2k views

Mac OS Terminal - keyboard echo breaks after ctrl-c with some applications

The only two applications I've been able to reproduce the issue with are tail and cat. If I tail -f log/development.log or any file for that matter, and press CTRL-C to quit, when I type additional ...
5
votes
5answers
10k views

How do you get a shell on a Mac?

I have never used a Mac before. I recently went to an Apple store and tried to open a shell to try it out. But, I was not able to open a shell - no shortcut for it, not right-click-menu entry, ...
6
votes
3answers
5k views

Mac OS X Terminal not logging in

I am running Mac OS X version 10.6.3 and when I open the terminal (with terminal.app or iterm) it just hangs on the login process. I've tried restarting, changing the startup command to /bin/bash, and ...
0
votes
3answers
1k views

Unusual backspace behavior in Mac terminal

I'm trying to figure out how to get SSH sessions to work how I want using the terminal application on Mac OS X. I'm used to using PuTTY on Windows, where backspace means backspace. When I press ...
2
votes
1answer
2k views

Write an email with attachment with Mail.app from terminal

I would like to start writing an email with Mail.app from Terminal, and add an attachment. Something like this: macbook:~ me$ /Applications/Mail.app/Contents/MacOS/Mail -s the_subject -to ...
39
votes
6answers
19k views

Mac OS X Terminal: mouse support?

Is there a native option (ie. without installing extra soft/package/plugins) to enable mouse support in the Terminal app? Actually, I'm using a lot vim with the option set mouse=a (activating mouse ...
28
votes
5answers
38k views

Mac OS X keyboard shortcuts for terminal

After googling for some Mac OS X terminal shortcuts, I wanted to find how can I go back characters on a line on the terminal or words or similar. I found ALT + B but it does not work. Do you know ...
6
votes
1answer
1k views

Web page from the terminal

I use Snow Leopard. How I can send a html page to a web browser from Terminal.app? If I am in $HOME dir, with a file myPage.html, can I view this file in a browser right from Terminal.app?
2
votes
4answers
3k views

vim is very slow on my Mac

I use vim on Mac OS X, but this is realy slow in Terminal.app and iTerm. Progress over many lines becomes tedious. some idea of solution?
15
votes
3answers
9k views

Mousing and Page-Up/Down in Terminal for Mac OS X

Compared to *nix, Terminal.app seems pretty lame. How can I get it to: Send Page-Up/Down to an application, instead of just scrolling the terminal output Mouse around in vim. set mouse=a isn't ...
1
vote
3answers
1k views

How do I set the title of Terminal.app with the fish shell?

I'm trying the fish shell in Mac OS X, intalled using MacPorts. I'd like to have the title of my Terminal window be my current directory. Currently, the title just says Terminal - fish - 80x24 ...
1
vote
4answers
407 views

Is it possible to bind ⌘← and ⌘→ on Terminal.app?

I'd like to bind ⌘← and ⌘→ on Terminal.app to going to the start and end of the line respectively so it behaves like any (almost) other program in Mac OS X. Is it possible? I went to Preferences and ...
5
votes
3answers
2k views

Any way to fix screen's mishandling of line wrap? (Maybe only Terminal.app)

I'm having an issue using screen and Terminal.app. If I get a bash prompt at the bottom of the screen and I keep typing until the line wraps to the next line, I see the next line, but I do not see ...
11
votes
3answers
4k views

Bash on Snow Leopard doesn't obey terminal colours

With the new version of Snow Leopard, OS X upgraded the bash version to GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0). Now, my .bashrc sets the following settings: # Colors export ...
2
votes
2answers
4k views

How to use UTF-8 in vim on Mac OS X?

I want to edit UTF-8 documents with vim (7.2 installed via MacPorts, big feautre set, iconv support enabled, multi-byte support enabled) on Mac OS X 10.4 within terminal.app. Terminal.app is ...