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

7
votes
3answers
2k views

Can Finder and the “open” command treat files with .sh or other typical extensions just like .command files?

I am looking for a way to inject some more extensions into the OS X launch services database systematically so that when clicked, they execute in the terminal app just like .command files do by ...
13
votes
3answers
1k views

Can I make the mouse hairpin in the terminal more visible?

It often takes me a while to find the mouse crosshair when working with Terminal.app. Is there a way to make it more visible?
1
vote
2answers
60 views

'which' location different from executable location

I'm trying to install ruby/rubygems on the latest version of 10.6. I used MacPorts to install ruby after noticing that my version was old. ruby was installed into /opt/local/bin. I changed ...
3
votes
3answers
1k views

Is it possible to automate FTP in Terminal?

I want to add an FTP command to my crontab to automatically download a file. How do I do this?
3
votes
3answers
14k views

Ping all IPs in LAN

How would I find out all the devices on my LAN by pinging them all in terminal? What would the code be?
3
votes
1answer
666 views

Terminal text size different when connected to external monitor

I have a Macbook Pro 15" running OS X 10.6.8. When not connected to an external monitor, launching Terminal looks like this. Note the width of the text (almost looks bold). When connected to my 24" ...
45
votes
1answer
19k views

Open Finder window from current Terminal location?

If I am in a specific path in a Terminal window, how can I open that same window in a new Finder window? Note: This is the opposite of opening a Terminal from Finder.
1
vote
2answers
489 views

Automatically typing a password into terminal

I want to be able to change the password of a disk image, but fully automated. Is there a way to enter a string as a password instead of plain text? Or can I have a .txt file with nothing but the ...
11
votes
3answers
14k views

Will Terminal show a progress bar when I copy with “cp”?

Is is possible to display a progress bar when copying files in Terminal using cp?
1
vote
2answers
538 views

Where can I find a list of changes to Terminal.app in Lion?

I'm thinking of upgrading to Lion after hearing that they've upgraded Terminal.app somewhat. The main thing I've heard is that Terminal.app now supports 256 colors, but I don't care about colors. I ...
4
votes
2answers
1k views

Is there a way to get the date of the first boot of an old mac?

Is it possible to read the date when a mac first booted via terminal or system information GUI? Maybe there's a file set at this moment.
2
votes
1answer
820 views

Problem setting terminal window bounds with AppleScript

Problem trying to solve I use multiple terminal windows to develop web applications. I'll have a terminal open for vim, a terminal open for git and a terminal open for basic file/directory commands. ...
19
votes
4answers
3k views

Is there a way to suppress badge counts and the dock icon bounce for Terminal.app in Lion?

With the new state saving features (which I want to keep), the dock notifications are more aggrivating to me in Lion. Can I suppress the bounce and/or the notification badge functions? While I like ...
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 ...
4
votes
1answer
5k views

How to enable Syntax highlighting on Vim in Mac OS Terminal?

Is there a way to let Vim on Mac OS highlighten syntax of different languages in Terminal? I would guess for vim it is a .vimrc thing, right? (But I cannot find this file in my home folder).
0
votes
2answers
3k views

How to let Terminal on Mac OS behave show folders and executables and such in different colors? [duplicate]

Possible Duplicate: Prettify OS X console by coloring output? On Linux (e.g. Ubuntu) the terminal shows you executables and folders and such in different colors so you can identify them ...
2
votes
1answer
1k views

Is there a keyboard shortcut to move cursor one word at a time in Terminal?

I love CMD-Ö and CMD-Ä (in German keyboards). Navigating through tabs is intuitive and comfortable. But navigating through a command already typed into the terminals a pain in the ... - especially ...
3
votes
2answers
9k views

“Macintosh HD” no longer shows up in Finder on Lion

How do I get to the Macintosh HD, or the root folder, from Finder in Lion? It no longer appears in the favorites section. I know I can open it from Terminal, but I want to do it in Finder easily like ...
3
votes
4answers
20k views

How do I download folders through FTP in Terminal?

How do I download a whole folder through FTP in Terminal?
1
vote
2answers
1k views

How can I get ALT+C to work via SSH on a remote UNIX machine?

I've installed Snow Leopard 10.6 a while a go and I'm pretty new to MacOS. I was working on Windows, then started using Slackware and I'm used to working with those OS. So now after I migrated to ...
4
votes
6answers
7k views

How can someone coming from Windows learn Mac OS X file system and Finder?

I have recently purchased a Macbook Pro and I am very impressed with the machine and OS X. Coming from Windows the one thing I have struggled with is the file system and the Finder application. I ...
4
votes
2answers
22k views

how to start/stop/restart processes

As a new comer from Windows OS, I wonder how to start/stop/restart a service on Mac OS X Snow Leopard 10.6.8 ?(it's straight forward on Windows using its Task Manager). I tried Activity Monitor, but ...
1
vote
1answer
2k views

how to page down when running top?

When running top in terminal, I can't find a way to scroll down to view all running processes (save for resizing the window, but even then I can't display all). I tried setting and using the page down ...
1
vote
3answers
435 views

Is it possible to use a serial terminal (e.g. VT420) with a modern Mac?

I've found lots of tutorials for using a Mac to control a serial device, but not the other way around. I've got a DEC VT520 terminal and a recent Mac Pro, is there a way (with a USB adapter) to get a ...
7
votes
2answers
2k views

Changing Terminal colors when ssh-ing into remote machine and back

Looking for a way automatically change terminal colors when ssh-ing into remote machine and revert back to the default colors, when exiting the ssh session. Simply, want have another colors when i'm ...
0
votes
3answers
398 views

Jump to the Terminal's right directory from Finder's specific directory [duplicate]

Possible Duplicate: “open terminal here”? If I browse my Apple Finder at /Users/arie/Documents/shugyou/genjutsu/fp How can I possibly go to Terminal with that very same ...
2
votes
1answer
450 views

Mac Terminal: emacs-style command editing messed up

This has been a "quality of life" issue for me for a while now- command-line editing in the Mac terminal is messed up for me. If I type a few chars, and then hit CTRL-A to move to the beginning of ...
7
votes
2answers
4k views

Linux 'Byobu' equivelant for mac

So at home ive been a linux user for a while, and frequently use byobu in the terminal. After a little searching I was unable to find anything like it for a mac, which I now have to use at work. I'm ...
4
votes
2answers
5k views

Mac webcam - get the device

How do I access my default video camera on my mac? I know on Linux it is /dev/video0 but my Mac does not have that. I'm trying to capture my webcam into ffmpeg ffmpeg -i /dev/video0 But it won't ...
3
votes
1answer
476 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 ...
26
votes
6answers
59k 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 ...
1
vote
2answers
88 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
823 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
4k 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
369 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
5k 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
501 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
651 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
5k 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 ...
25
votes
6answers
22k 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 ?
3
votes
5answers
8k 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
2k 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 ...
11
votes
2answers
4k 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
1k 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
165 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' ...
1
vote
3answers
137 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 ...
9
votes
3answers
5k 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 ...
17
votes
5answers
73k 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 ...