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

3
votes
1answer
328 views

Terminal Encoding Not Working For Certain Characters

EDIT This problem was solved in my case by changing terminal emulation from VT100 to xterm. Apparently the two programs I was trying don't behave properly when it comes to VT100 terminal line ...
16
votes
6answers
30k views

How do I start TextEditor from the command line?

I work a lot at the command line in a Terminal and would like to start a text editor on a certain file. I'm from Linux Land and normally use kwrite or gedit from a bash shell. Trying to find the Mac ...
0
votes
2answers
81 views

Regarding groff - where is the config file and will this work?

I've been reading Terminal Tips and Tricks For Mac OS X when I came across this. bman () { gunzip < `man -w $@` | groff -Thtml -man | bcat } Apparently I should be able to view man pages ...
1
vote
4answers
740 views

What are the Visor alternatives?

Visor is a plugin for Terminal.app that allows usage of quake-console-style terminal access. Are there any alternatives to this Terminal.app plugin?
2
votes
4answers
2k views

os x terminal -remove files older than x days

trying to create a scripts that deletes files older than X days. It seemed straight forward enough but all files seem to be getting removed? find /Volumes/Groups/Projects/530_BFAMI/test/ -ctime +30 ...
6
votes
3answers
253 views

Can I adjust the time delay for when the dock re-appears?

I like to hide the dock unless I need it. There is a slight delay before it will reappear. Is there a Terminal setting I can change so that the dock will instantly appear when I move my mouse to the ...
2
votes
4answers
4k views

Find logged on user and network home directory with a bash script

I am trying to use a script to find the username and home directory of the user that is currently logged on to a Mac. This is what I have, and it works, but is there a better (i.e. simpler) way to do ...
1
vote
1answer
484 views

Why are Ctrl+a and Ctrl+f broken in Snow Leopard?

In most text areas, ctrl-a and ctrl-f used to move my cursor to the beginning/end of the line, but now I get "^A" printed to terminal, and nothing happens in other input areas. Any ideas what ...
3
votes
2answers
600 views

Is there a fullscreen Terminal app that is faster than iTerm?

I am used to using the Terminal in full screen on Ubuntu. On Apple, the native Terminal app doesn't do full screen, and iTerm, which does, is very, very slow when you use a multiplexer like tmux in ...
8
votes
4answers
4k views

Inconsolata font does not work in Terminal

I'd like to use Inconsolata as the closest free approximation of the Consolas font for editing and programming on my Mac. After downloading Inconsolata's OpenType file I changed TextWrangler's ...
9
votes
6answers
10k views

using terminal to copy a file to clipboard

I got a file on desktop, file name is ded.html. To copy the file, I click the file and press cmd+c. Now how would I do the same thing using terminal ?
2
votes
5answers
5k views

How can I write a script to open multiple terminal tabs and execute code in them?

I want to be able to open the terminal application and have it either automatically run a script that opens several tabs and run an arbitrary set of commands in each. For example I would like one tab ...
1
vote
2answers
1k views

Change Account Password to Blank

I recently changed an account password by accident, and was wondering how to set it back to a blank password via the shell. I have root privileges. Please help :) passwd USER doesn't accept blank ...
9
votes
2answers
3k views

Prettify OS X console by coloring output?

OS X terminal is not using colors for highlighting output from different commands, for example ls. When compared with other systems like Ubuntu, this is a big loss of accessibility/productivity. ...
2
votes
1answer
831 views

applescript (osascript) for changing Terminal.app profile

Is here a way to changing the Terminal.app profile from the command line? Here is already couple of questions about changing colors, but I need change the whole profile from the "Basic" (what is my ...
3
votes
1answer
132 views

Untick the 'Open Safe Files' preference in Safari with Terminal

After all the fuss over Mac Defender, I thought it might be a good idea to disable the open safe files option in safari for the users in our network. I'd like to do this with the 'Send Unix Command' ...
0
votes
3answers
123 views

Is there a way to turn on indicator that a directory item is a shell script in Terminal?

When I do an ls of a directory and a shell script is listed as a directory item, is there a way I can have a visual indication that it is a shell script ? For example: From /opt/local/bin ls -l ...
6
votes
3answers
2k views

reattach terminal tab to another window

Suppose you have a terminal with two tabs. You click, drag, and let go one of these tabs and it becomes an independent terminal window. After a while, you want to take this terminal window and ...
6
votes
5answers
28k 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 ...
2
votes
2answers
4k 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
878 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 ...
0
votes
3answers
14k 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 ...
6
votes
3answers
58k 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! ...
4
votes
7answers
9k 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
5k 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 ...
1
vote
0answers
137 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 ...
0
votes
3answers
3k 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
39 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
484 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
531 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
406 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
259 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
7k 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 ...
6
votes
1answer
1k 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
2k 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
873 views

Launch Gedit while sshing in terminal

I know i can do it in linux, anything similar in osx?
0
votes
1answer
2k 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 ...
3
votes
1answer
4k 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
157 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
407 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 ...
3
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 ...
15
votes
6answers
6k 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 ...
33
votes
8answers
58k 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
1k 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
271 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
764 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
155 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.