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
5answers
68k views

How to cd to a directory with a name containing spaces in bash?

I tried cd "~/Library/Application Support/" -bash: cd: ~/Library/Application Support/: No such file or directory also cd ~/Library/Application Support/ -bash: cd: ~/Library/Application Support/: No ...
4
votes
2answers
10k views

Why can't I run `su`? (and how should I do?)

Whenever I try to issue su I get this: $ su Password: su: Sorry Needless to say, I'm entering the correct admin password which does work with sudo. What I want is not having to enter sudo each ...
1
vote
1answer
1k views

Strange font behavior with external monitors on MacBook

I have noticed some strange behavior when using an external monitor with my MacBook and DejaVu Sans Mono (or Panic Sans) with Terminal.app and TextMate. If I launch these programs prior to plugging ...
2
votes
4answers
24k views

How to send text with telnet in Terminal?

I would like to send some text to a port on my machine using telnet in the Mac OS X Terminal. I start telnet using: telnet localhost 8080 Then I type some text. Is that text send automatically or ...
9
votes
3answers
107k views

How do I run terminal in sudo mode?

I was trying to install npm, and I got npm ERR! Error: EACCES, Permission denied '/usr/local/lib/node_modules' npm ERR! npm ERR! Please use 'sudo' or log in as root to run this command. npm ERR! ...
13
votes
7answers
18k 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.
5
votes
3answers
7k views

Use MacVim as standard Terminal?

I used to love the terminal.app for many reasons. I especially liked the way I could navigate to a file and edit using vim it all in one app, without having to leave the keyboard. But, since the ...
2
votes
0answers
149 views

Sips not working with pict, qtif and sgi files

The terminal command sips -s format pict /path/to/image.ext --out /path/to/output.pic ouputs Error: Unsupported output format com.apple.pict even though if you do man sips and go down to format, there ...
1
vote
4answers
5k views

How to configure Terminal to be “Putty-like” when it comes to copy-paste with mouse?

As a long time Putty user, I love how upon selecting a text it gets copied into the buffer and upon right clicking it gets pasted back in. Is there a way to configure Terminal to behave the same ...
0
votes
1answer
41 views

How to change how your Terminal app starts

When I launch my Terminal app, it starts in a Basic mode. I'd like to do a few things: Change default to "Pro" Control how Terminal is started .. For example, i'd like to either use my keyboard or ...
1
vote
4answers
634 views

How can I map keyboard keys to mouse axes in Terminal?

How can I map the mouse axes to my keyboard keys in the Mac OSX 10.6 Terminal? For example, moving the mouse up (positive x) triggers a keypress of W. Is this built in, or do I need a software ...
3
votes
1answer
820 views

How to silently update OS X and reboot if necesary?

I am looking for a silent (unattended) way of updating OS X that would not require use intervention. Is this possible, how?
1
vote
5answers
590 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?
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 ...
4
votes
5answers
272 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 ...
4
votes
2answers
14k views

Find gateway address and netmask?

I come from the land of windows, where the ipconfig command shows four important pieces of information: IP address, netmask, gateway address, and MAC address. However, on a Mac, ifconfig only shows ...
7
votes
1answer
3k views

Transparent Background in Terminal?

On Ubuntu, I can change the terminal background to be semi-transparent. I've seen other people do this in OSX, but I don't see the setting anywhere. Is there some way to make this happen?
0
votes
5answers
3k views

how to browse ipod from terminal?

how should i use terminal to browse and manage my ipod. i mean is there any way to do this just with terminal, not with installing MobileTerminal or something like that, or sshing ipod. thanks.
0
votes
1answer
1k views

Launch Gedit while sshing in terminal

I know i can do it in linux, anything similar in osx?
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 ...
5
votes
1answer
8k views

Is it possible to view passwords through Terminal?

Does anyone know how to view passwords in Terminal? Maybe by accessing the Keychain data or something? I want to be able to view passwords in Terminal with just a series of commands.
2
votes
4answers
163 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.
0
votes
7answers
442 views

Is there a utility that allows to open a terminal window with a shortcut?

I often use the Terminal application, especially to commit code to a Git repository, and I don't want to have the window always open. Is there a utility that allows to open a terminal window using a ...
5
votes
3answers
2k views

Opening a terminal window to a specific directory from a bash script

How can I write a bash script in Mac OS X that opens a Terminal window in a specific directory? I'd assume something like: open /Applications/Utilities/Terminal.app But that does nothing (maybe ...
22
votes
8answers
12k views

Can home and end keys be mapped when using Terminal?

The home and end keys on a MacBook Pro can be emulated with fn + left arrow or fn + right arrow. Or when certain settings are changed, with the Command (Apple) key instead of fn. None of these ...
50
votes
9answers
93k 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 ...
1
vote
2answers
2k views

How to open a new terminal window when using VIM

does someone know how to open a new terminal window when opening a new text with VIM. I would like to have an autarchic window which can be resized and closed while the other windows will stay as and ...
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 ...
1
vote
2answers
300 views

Creating a wget OSX Service

I want to create a service to copy the URL and subsequently download it via wget. How would I go about creating an OSX service to wget arbitrary urls from a browser or system wide. I believe it'd be ...
1
vote
3answers
890 views

Trigger 'Gather Windows' programmatically (or other quick way)

I'm trying to make myself a little script that I can run on the fly that gathers all my open windows onto the main display. I think a good starting place would be to be able to trigger Gather Windows ...
2
votes
1answer
189 views

Porting Linux shell scripts

The command shell$ ls . -R works on Linux but not on OS X. This is because OS X command line options have to come before the arguments,and not just anywhere as in Linux. In particular, this ...
4
votes
4answers
1k views

Listing the terminal commands available for Mac OS

I would like to make more use of the terminal. Is there a command I can use that could list for me all the available command of the Mac OS? I am using Snow Leopard.
6
votes
3answers
9k 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 ...
6
votes
1answer
2k views

Is there a way to force Mac OS X to close all the applications when restarting?

I sometimes shut down my Mac, and I cannot wait it shuts down because I am urgently requested to do something in another office that would require some hours. In some cases, an application that opens ...
13
votes
3answers
8k 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, ...
85
votes
24answers
84k views

OS X Terminal “must have” utilities

I've just read with pleasure, and learned a lot from these questions : OS X Terminal Tips and Tricks OS X Hidden features and nice tips & tricks OS X Applications you can't live without But I ...
0
votes
1answer
123 views

Any way to make multiple files stop hiding their extension?

How can I make multiple files show their extension at once? Any finder setting and/or terminal command would be nice.
4
votes
1answer
941 views

SSH sessions hang after VPN reconnect

I am a new user to OS X (MacBook Air, 10.6.7) migrating from Ubuntu and extremely happy with it. I use terminator running on X11 for my terminal program, and I'm using SSH: OpenSSH_5.8p1, OpenSSL ...
9
votes
2answers
9k 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 ...
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 ...
1
vote
0answers
104 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 ...
4
votes
1answer
634 views

Terminal PS1 and colors

I am used from Linux to have a colored prompt in my shells and also want to implement that in my OS X Terminal.app. The Terminal reacts differently though. If I use my normal PS1 code the right side ...
49
votes
12answers
42k views

How can I open a Terminal window directly from my current Finder location?

I was wondering if there was any was I could right click inside any instance of a "Finder" window such that I have an option that says "Open Terminal Here". It would be really helpful.
1
vote
0answers
396 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 ...
5
votes
3answers
2k views

open new terminal tab in the same directory with the active tab

In GNOME Terminal of Ubuntu when you open a new tab the new shell will automatically start you in the current working directory of the active tab shell. E.g. if in the active tab shell I am on ...
3
votes
2answers
10k views

finding the remote IP address used by a mounted SMB share

Using Finder, I have mounted an SMB share which resides on my NAS . When I use the mount command, the NAS is listed with the name it advertises (nas-smb). mbp:~ me$ mount /dev/disk0s2 on / (hfs, ...
17
votes
3answers
4k views

How can I empty the trash from the Terminal?

How can I empty the trash from the Terminal?
12
votes
2answers
6k views

How to enter special characters so that Bash/Terminal understands them?

Let's say a folder has a file called Näyttökuva.png (for those who are interested, it is ”screenshot” in Finnish). This is what happens: $ ls Näyttökuva.png $ ls N* Näyttökuva.png $ ls Nä* ls: Nä*: ...
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
1answer
5k 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 ...