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

2
votes
3answers
144 views

How to add MySQL to $PATH variable to resolve “mysql: command not found”?

I installed MySQL on my Mac, and now I would like to add it to my $PATH variable. I want to be able to type mysql anywhere. I tried adding the following to my .profile file: export ...
50
votes
2answers
72k views

How can I create a symbolic link in Terminal?

What command is used to create a symbolic link/soft link?
27
votes
6answers
8k views

How do I speed up new Terminal tab loading time?

How can i speed up the terminal startup in Lion? I'm not referring to the startup of the Terminal application, but to the startup terminal windows, like when i open a new tab. I don't have anything ...
1
vote
1answer
17 views

In which file Terminal.app stores its windows?

Usually after reboot/crash all Terminal windows are re-open automatically, this time they weren't. Where (which folder/file) Terminal.app stores the session/information about its windows which ...
2
votes
1answer
24 views

Mac nl only takes lines 2048 chars long

I'm having an issue where the Mac version of nl will mark a new line after 2048 characters. I tried it on linux, and it doesn't do this. Any idea why it does on Mac, and how to fix it?
3
votes
0answers
13 views

Is there a way to force clockwise pane rotation in iTerm2 with the shortcut keys?

I've often found that when using iTerm2, I'll have like 3 or 4 panes open in one tab. And the shortcut keys for moving between them Cmd + ] and Cmd + [ are very useful, but unpredictable. The reason ...
2
votes
1answer
76 views

How to gain insight into spotlight index?

I'd like to get a list of all indexed files and their path that spotlight came across. How would I do that ? mdutil does not seem to be of any help.
2
votes
1answer
26 views

Can't get Terminal to Display Colour (Mavericks)

I've recently been working on a script to backup files, etc. for my own use but recently I thought it may look nicer if I was able to cleanup and have everything nice and tidy (with colours and what ...
2
votes
1answer
96 views

How can I access the keychain remotely from the command line?

I am storing various passwords (e.g. for remote email servers) in my keychain. From the command line, when logged in locally, I can retrieve these via: security unlock-keychain ...
1
vote
3answers
301 views

Terminal command to move a number of files containing brackets to another folder or trash

Last night I consolidated a music collection into one place and each song is separated by an Artist folder and the track. The problem is that there are a high number of duplicates within these ...
1
vote
3answers
44 views

New terminal to same directory

When I have a terminal window open, ⌘N opens a new one. Is there any way to get the current directory in the new window to automatically be the same as it was on the window where I pressed ⌘N?
0
votes
0answers
19 views

Can I get rid of these timestamps in terminal?

I'm getting Javascript output in my terminal and it currently looks like this: Is there a way to get rid of the timestamps at the beginning of each line? I'm not sure if this is something I somehow ...
5
votes
3answers
6k views

How can I install themes for Terminal?

I am rather new to Mac, but I am trying to get familiar with Terminal and I want to change its theme. I am a bit confused on how to go about installing Solarized themes I am seeing so much of around ...
0
votes
1answer
3k views

Git: command not found during Git installation (Mac OSX 10.6)

I am trying to install Git on my Mac (OSX 10.6) following the official Git tutorial. I had no problem until I had to set my username and my email. Every time I tried I got -bash: git: command not ...
1
vote
1answer
61 views

How to identify file type for a bulk lot of files and attach suitable extension to each

I have just over a thousand (1000) files whose suffix/extension has been changed by a database engine all to the same thing (eg. fileName.abcd where .abcd is on every file regardless of whether it is ...
0
votes
1answer
44 views

mysql: command not found [duplicate]

How do I use MySQL from the CLI? When I use the terminal, I get: Darrens-MacBook-Pro:~ thufir$ Darrens-MacBook-Pro:~ thufir$ mysql -bash: mysql: command not found Darrens-MacBook-Pro:~ thufir$ ...
15
votes
3answers
3k views

How do I find the windowid to pass to screencapture -l?

The command line utility screencapture claims to be able to capture a single window without requiring interaction, but I can't figure out what to pass it. -l<windowid> capture this windowsid ...
1
vote
1answer
30 views

How to install tofrodos in Yosemite via Homebrew?

This thread is based on my attempt to parse windows syntax to unix in this thread. I run successfully brew reinstall tofrodos and get ==> Reinstalling tofrodos ==> Downloading ...
7
votes
2answers
784 views

How do I find the windowid of Google Chrome to pass to screencapture -l [duplicate]

I'd like to use screencapture -l to do automated screen captures of Google Chrome. This requires knowing the windowid of the Google Chrome process that's running. For apps that support Applescript, ...
1
vote
1answer
15 views

Bash automatically creating () and ()! files

I noticed that the Yosemite system has been creating files with names just "()" and "()!" in places where I recently made bash commands and want to know why. I can't even delete them use rm as after I ...
1
vote
2answers
663 views

Rename terminal tab to host alias in ssh config

I am new to using Mac (Mac Pro, OS X 10.8.4) and I connect to many remote hosts using ssh. I have created aliases in .ssh/config file and would like to have the host alias as the name of the tab in ...
11
votes
6answers
27k views

How do I find my IP Address from the command line?

I know you can do ifconfig | grep inet, but that shows you several IPv4 addresses. How do I get the specific one for SSHing et al?
0
votes
0answers
28 views

how do I install SIPSAK?

How and where is this installed from on a Mac? 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 ...
13
votes
3answers
9k views

How can I “say” to another Mac?

I have two Macs in our house (iMac and MacBook Pro). I would like to use the say command-line utility to type something on my MPB and have it speak on the iMac, rather like an intercom system. Plus, ...
3
votes
2answers
2k views

What are the differences between /usr/bin/login and /usr/bin/bash?

Terminal.app has a setting to select with shell it uses, and the default setting is "Default login shell (/usr/bin/login)". What are the differences between /usr/bin/login and /usr/bin/bash?
0
votes
6answers
3k views

How to browse iPod from terminal

How should I use the terminal to browse and manage my iPod Touch? I mean is there any way to do this just with terminal, not with installing MobileTerminal or something like that, or sshing into the ...
4
votes
2answers
1k views

How can i have makefile/shell script call /Applications/application.app?

OS Mac OS X 10.6.6 emacs 23.2.1 I'm currently trying to install magit on carbon emacs using their proposed make solution. I'm an almost complete makefile newby so I might be on the complete wrong ...
2
votes
3answers
1k views

Check if a process is running, if not execute it again in Terminal

Is there a way to periodically check if a process is running with (probably with Apple script, or some other shell script) and if not then to execute it in Terminal? I have a PHP script that is needs ...
4
votes
5answers
286 views

Installing the most recent version of Ruby on Snow Leopard

I downloaded and compiled the latest version of ruby 1.9.2 which was installed in /usr/local/bin/ruby, however the system officially recognizes /usr/bin/ruby which is only 1.8.7 which came installed ...
2
votes
2answers
3k views

Unhide Partitions via Terminal

Is there any way to unhide partitions that have been hidden by a third party partitioning tool on a Mac using nothing more than Terminal via a Mac OS X Boot CD or USB stick? Edit These partitions ...
1
vote
5answers
635 views

How can I create an entry in the /Applications folder that runs a command in the terminal?

I would like to have an item in the /Applications folder that will open a new terminal window and run a specific command inside. How can I create this?
0
votes
0answers
32 views

Mac Terminal won't accept £ in ssh password?

I have an issue where I'm trying to ssh into the root account of a firewall from my Mac. I'm on the same network as the firewall. ssh root@1.2.3.4 I'm then asked for my password which contains the ...
16
votes
7answers
23k views

How to monitor file access for an OS X application?

I am looking for the OS X corespondent of FileMon, that was later included in ProcessMon. BTW, it is essential to be able to filter by process.
6
votes
3answers
12k views

How can I add a path to the PATH environment variable?

I want to add a path to the PATH environment variable? I have tried with export PATH=/mypath:$PATH and it works. But the next time I start the Terminal, my new path is not int the PATH environment ...
2
votes
2answers
2k views

Why won't terminal let me ssh in to my lan server when Windows/Putty works fine?

I have a development server on my LAN with a static IP address. My DD-WRT flashed router assigns the domain 'server.local' to the static IP of the server. Everything worked fine with my setup. I could ...
57
votes
9answers
108k views

Why doesn't .bashrc run automatically?

I put some alias commands in my .bashrc file, so that they might be loaded everytime I open a new Terminal window. Yet this doesn't happen. I have to select run script: in the ...
2
votes
4answers
166 views

Cursor navigation in Terminal

I quite often find myself needing to move the cursor to the beginning or the end of the line. Is there a keyboard shortcut or other magic trick to move the cursor apart from the arrow keys.
4
votes
1answer
6k views

How can I determine the compile-time options of PHP?

I'm trying to customize my php install, but I'm not that familiar with compiling programs from scratch. How can I tell determine what compile-time options were used for php? Specifically, I'm trying ...
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
106 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 ...
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
675 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
633 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
463 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 ...