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

1
vote
2answers
547 views

find video codec from terminal

I'm writing some shell scripts that automatically convert some video files. Except I don't want to run the conversion on files that are already h264 encoded. Is there a way I can tell via a terminal ...
3
votes
5answers
3k views

Why do I have to source ~/.bash_login every time I open Terminal

When ever I close and open Terminal.app, it never loads my ~/.bash_profile. I have my RVM setup at the top of the file but it never loads it. As you can see, when I type rvm into Terminal, it says ...
0
votes
0answers
276 views

PERL is frozen in Mac OS X Lion

I've upgraded to Mac OS X Lion. After that, I've updated MacPorts to the newest version (2.0.1) and updated Perl as the following: [Khang-Le-Nguyens-MacBook-Pro:~] khanglenguyen% perl -V Summary of ...
2
votes
0answers
431 views

Why does my Terminal window close automatically?

I need to use my Terminal window on a MacBook Air but it closes about 10 seconds after I open it. Is there a setting or is it possible another program is causing it to close? If I type quickly I can ...
0
votes
2answers
832 views

How do I get the Mac Terminal to show the gray font color

I am running on a Mac with Snow Leopard. Up until now, the default Terminal.app has served me well. I have installed the IR_Black theme mentioned here: http://blog.toddwerth.com/entries/show/6. ...
1
vote
1answer
447 views

Use only the left option key as meta key in Terminal.app

There's an option in Terminal.app -> Preferences -> Settings -> Keyboard but it allows me only to set both option keys as meta keys. iTerm.app has such an option but don't like that application.
1
vote
2answers
238 views

show battery in prompt and have it update after every command

i just fresh-installed Lion, and i am in the process of seeing up my system. i am using this function (found somewhere online...) to show it in the prompt : battery_status() { maxcap=`ioreg -l | ...
0
votes
2answers
1k views

Disable Terminal's title bar directory on Lion

i was wondering if there was any way of disabling the folder location on the titlebar of the built-in terminal application on Lion. I mean: Any ideas ?
3
votes
3answers
3k views

Showing current directory in Terminal's title, using tcsh

I'd like the title bar of Terminal to always show the directory I'm in. I don't want it shown in the prompt. I found some magic trick code online, and have this in my .tcshrc: set prompt = ...
0
votes
1answer
583 views

Sluggish cursor movement in emacs in Lion Terminal?

On upgrading to Lion, I noticed that cursor movement in emacs (^-N, ^-P and so on) while running in Terminal has become sluggish. Cursor movement in vi seems fine and cursor movement in Emacs.app ...
10
votes
4answers
9k views

Where does $LANG variable gets set in Mac OS X?

I've used wget for the first time after installing Lion OS X and I've noticed that wget got localized to my native language. Running set command in terminal showed that my LANG variable represents my ...
3
votes
3answers
1k views

Where to put the .vimrc file for sudo in OS X Lion?

I always put a .vimrc in my home folder for turning :syntax on. But in OS X Lion it seems that sudo vi foo.txt ignore or can't find this vim configuration anymore. Has anyone experiences the same ...
9
votes
9answers
628 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
687 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
932 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?
9
votes
3answers
4k 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
5k 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
103 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 ...
6
votes
3answers
6k 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 IP 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 ...
1
vote
3answers
926 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 ...
6
votes
3answers
354 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?
0
votes
2answers
56 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
872 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
7k 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
566 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" ...
17
votes
1answer
8k 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
353 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 ...
9
votes
2answers
9k 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
527 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
980 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.
1
vote
1answer
579 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. ...
18
votes
3answers
2k 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 ...
17
votes
9answers
17k 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 ...
3
votes
1answer
4k 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
2k 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
7k 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
11k views

How do I download folders through FTP in Terminal?

How do I download a whole folder through FTP in Terminal?
1
vote
2answers
897 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 ...
3
votes
6answers
4k 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
1answer
13k 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 ...
0
votes
1answer
745 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
354 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 ...
6
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
347 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
377 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 ...
5
votes
2answers
3k 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 ...
3
votes
2answers
3k 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 ...