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

11
votes
9answers
696 views

Which command-line packages do you need? [closed]

I generally have one of Fink, MacPorts, Homebrew installed. Most often for a single, small, and trivial package. I've found that all my day-to-day software exists in OS X versions. So, which non-OS X ...
0
votes
3answers
905 views

Minimum required ping time for computer on LAN?

I want to ping all possible IPs in my LAN, and I have the code for it, but right now, I've already cut the weight time from 5s to 2s, and it's still about 8 minutes to test them all. How long should ...
1
vote
2answers
1k views

Find information about host IP address?

Is there anyway to ping a computer's IP and find out some basic information about it? Platform, OS, etc... If so, how would that be done?
10
votes
3answers
6k views

How do I make Terminal.app's scrollbars disappear in Lion?

Once I upgraded to Lion, I found out that the vertical scrollbar is always plastered to the right side of the application window. Because I run GNU Screen within Terminal.app, the right side of the ...
8
votes
2answers
6k views

Changing Preview.app's default View state in Lion

One thing I dislike about Preview.app in Lion is its defaulting to Continuous Scroll as the view option when a new PDF document opens. My recollection is that previous behaviour was for the last-used ...
1
vote
1answer
105 views

I noticed a .myPassword file in my home folder root. Is this supposed to be there?

I ran "$ ls -a" in Terminal from my home directory and it listed a .myPassword file which contained my user account password. Is this file where the password is stored? It seems like it should not be ...
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
4answers
1k views

.rvmrc and mac osx lion “restore” issue

Just switched to lion a couple of days back, and juts noticed that when you quit Terminal while in a folder, when you open it, it should be back in that folder(along with your other tabs). This is a ...
2
votes
3answers
1k views

How do I send files from one Mac to another via Terminal?

Is there a way to send a file in Terminal from one Mac to another? If I have a file on Mac A and I want to send it to Mac B via Terminal on Mac A, how do I do this?
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 ...
15
votes
3answers
2k 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
16k 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
689 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" ...
51
votes
2answers
21k 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
507 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
16k 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
845 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
11answers
42k 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
2answers
6k 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
4k 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
23k views

How do I download folders through FTP in Terminal?

How do I download a whole folder through FTP in Terminal?
1
vote
2answers
2k 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
8k 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
24k 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
442 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
403 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
457 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
506 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 ...
28
votes
6answers
67k 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
90 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
835 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
431 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
6k 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
654 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 ...
28
votes
6answers
25k 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 ?
4
votes
5answers
9k 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 ...