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

17
votes
4answers
4k views

How can I empty the trash from the Terminal?

How can I empty the trash from the Terminal?
1
vote
0answers
400 views

256 colors on Terminal.app [duplicate]

Possible Duplicate: How do I get vim to work at 256 colors in iTerm? I would like to work on vim (with the xoria256 colorscheme) in the default OSX terminal. However, it seems that ...
1
vote
0answers
105 views

Changing your path variable [duplicate]

Possible Duplicate: Adding gedit to my PATH I'm very new to OSX. I installed Ruby with HomeBrew, and the rubygems installer said that I should add a certain path ...
2
votes
1answer
2k views

Finder freezes when deleting files across a network

I have my MacBook 5,2 hooked up to an Ubuntu 10.10 'server' via ethernet. I've installed netatalk (AFP fileserver) and avahi-daemon (Bonjour for Linux) on the server. I've disallowed Spotlight from ...
9
votes
2answers
10k views

Reset your PATH variable

I stuffed up (basically wiped) my PATH variable. Is there any way to reset it to the default? I look at How do I reset the $PATH variable on Mac OS X?, but I find it very confusing. As far as I ...
5
votes
6answers
3k views

Why use the terminal in daily non-programming life

Disclaimer: I'm a Windows boy awaiting his first mac. I never bothered learning/using command-line interfaces. I've been looking at the Terminal Tips and Tricks topic and I don't see how any of those ...
2
votes
4answers
3k views

How to correctly pipe output into “say” in terminal

I realized that the say command can be great when combined with another command/program because it can read you the output. I tried to pipe the output from leave to say by typing the following in ...
2
votes
1answer
1k views

Why won't wget work with cron?

I've been using the bashpodder script recently, and while the script works beautifully when I use it in the command line, the crontab I created for it doesn't work at all. It fails when it has to use ...
2
votes
3answers
636 views

Titling tabs in Terminal

I'd like to be able to set the titles on my tabs to short, easy-to-remember things, since I often have a few open. You can use Command-I and set the Title that way, but OSX appends the name of the ...
4
votes
3answers
1k views

Can I change the color of my Mac OS X Terminal window depending on which server I am ssh-ed to?

I'd like to have the background as black for server 'foo' but have the background be say gray or blue for server 'bar'. I am worried I'll run the wrong command on the wrong ec2 instance because all ...
4
votes
5answers
15k views

What's a good terminal manager for OS X?

The Terminal.app application from OS X is quite good but it lack some functionality that I find really important like: ability to setup SSH profiles for connecting to different servers and ability to ...
1
vote
1answer
615 views

I've managed to break my terminal, (iTerm2(b17), ZSH, OSX10.6.6)

I'm migrating to a shiny new laptop (yay) unfortunately I've manually set up my iTerm to match the old machine, but something is not right (not yay). I'm experiencing using xterm-256color doesn't ...
3
votes
1answer
460 views

Synchronise/Merge MP3 collections without duplication or huge copies

I have one drive containing about 90GB of MP3s which is used at home, it serves three Squeezebox players though the Slimserver software running on one of the desktop Macs. I have a separate firewire ...
2
votes
2answers
473 views

How can I match the text color and background color in Terminal?

I use emacs/org-mode which uses color for hiding some of the headlines as is shown here. This works well with Aquamcas, but when I run emacs in text mode, I still see the stars in the headline as I ...
9
votes
1answer
12k views

Bash or Zsh, what's the difference, why use one or the other?

So, the question pretty much says it all. I'm on Snow Leopard, and I do a lot of web development, particularly in Rails 3 which makes heavy use of the console. I've seen some notable bloggers etc. ...
2
votes
2answers
1k views

How to get MacVim to autoload ~/.vim/syntax

This might be something quirky about MacVim, so I'll ask here. I put a syntax file in ~/.vim/syntax, but it doesn't load. I have syntax on in my .vimrc. When I open the editor, :scriptnames doesn't ...
2
votes
2answers
2k views

How do I undo overwriting my /usr/local/bin folder?

I think i overwrote my /usr/local/bin folder - any way to undo this? I was installing MacVim and did the following command: sudo mv mvim /usr/local/bin Now instead of copying mvim into my ...
3
votes
3answers
540 views

Problem with ssh agent

I'm having a problem using ssh agent to make sure I don't have to enter a password each time a certain program uses my id_rsa private key. I did ssh-add -K ~/.ssh/id_rsa and it seemed to add an entry ...
16
votes
4answers
19k views

How to get the fully resolved path of a symbolic link in Terminal?

I have a tangled mess of python installations on my laptop. I was looking at the executables in /usr/local/bin and they are all symbolic links to ../../../Library...... There's some weird behavior ...
2
votes
2answers
5k views

How do I get vim to work at 256 colors in iTerm?

I just got a new iMac, and installed iTerm (0.10). On my last laptop 256 color mode worked fine, but I'm having trouble getting this to work on my new Mac. I copied over all the settings, set $TERM ...
10
votes
4answers
13k views

How do split panes in Terminal work?

I tried to open a split pane to run another command but instead it displays the same in both panes and I can only interact with one of them. I thought it would split the view so I could use the two ...
2
votes
3answers
578 views

Editing iPhoto-specific metadata

Perpetua:2011-01-16 ashley$ mdls IMAG0107.jpg ... kMDItemComment = "Cat with is tongue out." So, here's my question. xattr can be used to modify some ...
1
vote
1answer
1k views

Mac OS X Terminal [Use option as meta key] overrides backslash in spanish keyboard

I already posted this question in stackoverflow: http://stackoverflow.com/questions/4811282/mac-os-x-terminal-use-option-as-meta-key-overrides-backslash-in-spanish-keyboar but I was informed there ...
5
votes
4answers
2k views

Automatically quit Terminal when typing exit

Scenario I use terminal to SSH a lot, however would like the Terminal App to quit when the last Tab closes using exit. I already have the terminal window itself set to close on successful exit, ...
8
votes
5answers
3k views

Open new terminal window in current space, regardless of other open terminals in other spaces

When using Spaces on Mac OS X trying to open a new terminal instance results in focus being pulled to whatever space has the most recently accessed terminal window. With Finder I can click on the ...
5
votes
2answers
2k views

ctrl-o behavior in Terminal.app

I often use the ⌃+O shortcut in bash (from "Learning the bash Shell"): [G]o back to [a command in history] and press ⌃+O instead of ↩. This will execute the command and bring up the next command ...
8
votes
3answers
3k views

Why don't my arrow keys work in vim under iTerm?

They work just fine if I use Terminal and start a vim session, but under iTerm I have to resort to using H-J-K-L to do left-up-down-right movement. In both Terminal and iTerm TERM=xterm-color. My ...
5
votes
4answers
3k views

Alternatives to command line unzip?

I've found that the command line unzip tool doesn't gracefully handle some of the files I'm unzipping: it makes a bunch of junk directories, and creates files whose resource forks aren't found. ...
17
votes
4answers
4k views

Concisely starting Mac OS apps from the command line

I do a fair amount of work in the command line, and I find myself defining a lot of aliases of the form: alias skim='/Applications/Skim.app/Contents/MacOS/Skim' Is there a way to add magic such ...
77
votes
16answers
66k views

Is there a Mac OS X Terminal version of the “free” command in Linux systems?

On Linux, I often use the free command to see the current amount of free and used memory in the system. For example: $ free total used free shared buffers cached ...
10
votes
3answers
35k views

How can I mount an SMB share from the command line?

I would like to mount an SMB network share from the command line (terminal); how would I go about that? I am using Mac OS X 10.6.4.
5
votes
3answers
7k views

Where are bash profile startup files?

I know that you can have a .profile or .bashrc file in your home folder to customise Mac OS X 10.6.4 Terminal bash startup. Every time I start up Terminal, there is a line that tells me "You've got ...
7
votes
6answers
3k views

OS X Terminal equivalent of Ctrl+Left / Ctrl+Right

In Windows and Linux I could always hit ctrl+← or ctrl+→ to skip a word to the left or right in the terminal. In text editors it seems that ⌥+←/→ works, but no dice ...
0
votes
0answers
29 views

How do I install SIPSAK with macports?

For context, SIPSAK is the SIP Swiss Army Knife: sipsak is a command line tool which can send simple requests to a SIP server. It can run additional tests on a SIP server which are usefull for ...
25
votes
10answers
37k views

Password dialog appears when SSH private key permissions are set to 0600

I installed my SSH private key in ~/.ssh/id_rsa and set its permissions to 0600. When I connect to an SSH server which uses my private key in Terminal.app via ssh, a dialog pops up and asks me to ...
1
vote
1answer
79 views

Any way to reboot a iDevice that is connected to a USB port via terminal (Mac terminal)?

So, I am making a program to reboot iDevices (if there power buttons are broken), is there any way to induce the iDevice to reboot via the Mac shell? Take you'r time.
2
votes
1answer
29 views

Droplet with a progress bar?

First of all, apologies for my ignorance on the subject. All of this ffmpeg and automation is new for me and sometimes I cannot see even evident things. I am learning command lines to encode videos ...
2
votes
1answer
27 views

Open application from terminal and remain linked to the process (like Linux) so when CTRL+C is sent to terminal the application closes too

I have an application (closed-source tool not developed by me) which requires another process to exist before executing properly. When I quit this application, I also want that custom process to be ...
4
votes
1answer
1k views

enabling/disabling Internet Sharing with terminal in mac osx 10.9.2

The problem is setting the internet sharing with CLI instead of GUI in Mac OS 10.9.2 I followed instructions as per this thread Start/stop internet sharing from a script? including both CLI and ...
0
votes
0answers
10 views

Backspace over SSH shows ^?

I'm trying to use vim to SSH in terminal on my Macbook. All the solutions I found were for PuTTY, but I'm using terminal. Someone said to add this to my vimrc but that did not work: stty erase ^? ...
0
votes
1answer
98 views

How can use ssh to connect to my university network over VPN

I am still a beginner with using terminal. I am trying to ssh from my mac at home to a linux at my university. I am using VPN to connect to the network. When I ping the IP address of the computer I ...
0
votes
0answers
18 views

Executing files directly from read/write WebDAV server

I’m using the Finder’s built-in Connect to Server... feature and use it for connecting to a read/write WebDAV server. Everything is working except executing files hosted on the server. I tried ...
1
vote
0answers
77 views

Syntax highlighting in Mac OS X Yosemite Terminal

I would like to know what is the method to do syntax highlighting in terminal. I am trying to avoid my mouse to become more of a keyboard junkie so I am working more on Terminal and trying to learn ...
1
vote
0answers
297 views

Yosemite displaying the blue and grey screen of death

I have a late model 2011 MacBook Pro, and I upgraded to Yosemite two weeks ago. Yesterday I was working in After Effects on some pretty big movie files when the laptop screen just went black. Now ...
0
votes
0answers
30 views

Terminal runs a lot of programs on start, why?

Every time I open a new terminal it takes a while to hand it over to me because it goes through a process of running sed, awk, and the ruby interpreter (I think that's what it's doing). Can anyone ...
4
votes
1answer
134 views

Broken $PATH variable

I was trying to add something to my $PATH variable, but I think I made some sort of typo. Now, I am trying to fix this, I want to remove what I added, but when I type e.g. open .profile, it tells me ...
0
votes
4answers
3k views

Chrome won't quit! (Mac Yosemite)

I tried normal quit, and it closes and immediately re-opens. I tried force quit, and it closes and immediately re-opens. I tried force quit from the Activity Monitor, and it closes and immediately ...
1
vote
3answers
954 views

Yosemite does not have ftp sharing option in file sharing preferences?

I have just obtained a Macbook Pro with Yosemite installed and am trying to connect to it from another host on the local network via ftp. The connection is refused. So I get into the preferences in ...
0
votes
1answer
105 views

Using kdiff3 as default git diff viewer on Mac OS

I have kdiff3 installed on my Mac (Version 0.9.97, 64 bit). Here's my ~/.gitconfig: [filter "media"] required = true clean = git media clean %f smudge = git media smudge %f [user] ...
4
votes
2answers
96 views

How do I change the color in Terminal indicating the use of a dead key?

A dead key (a key that does not generate a complete character by itself but modifies the character generated by the key struck immediately after) is indicated with a yellow background to previous the ...