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
3k views

Warning message when trying to change Standby mode settings

I tried changing the Standby mode settings using the command sudo pmset -a standbydelay 5400 . I set it to 5400 so that it is delayed to 1.5 hours compared to 70 minutes as default. However, I get ...
2
votes
1answer
503 views

`open http://foo.com` and specify the chrome user which is to be used

Using the open command from terminal I would like to be able to specify the chrome the specific chrome user to open the url with? Local Chrome users are outlined here. Essentially I have a local ...
1
vote
1answer
870 views

“Too many open files” - how can I set the ulimit -n value for emacs on Lion?

I've seen other questions covering the topic of how to set the file limit on Leopard/Lion. For example: How to properly increase ulimit -n on Lion? Too Many Open Files But after reading ...
2
votes
1answer
6k views

For a startup volume encrypted with Core Storage, System Preferences show that FileVault is disabled

My iMac has a SSD and a HDD. The OS is installed on the SSD. I performed a clean installation of Mountain Lion to the SSD, and cloned my SSD using a backup from my Time Capsule in OS X Recovery. ...
1
vote
1answer
255 views

Mountain Lion Figlet through MacPorts error?

I've just installed Mountain Lion, Xcode 4.4.1 + command line tools, and MacPorts for ML. It's working for other packages but I can't get figlet to install. When I use sudo port install figlet in ...
0
votes
0answers
515 views

Bad CPU in Executable Trying to Install Ruby

I'm running Mountain Lion, and I'm trying to install Ruby; however, I get "bad CPU in executable" error. Not sure how to fix this . . . ideas? Sorry for the bad formatting - "code" doesn't really ...
0
votes
2answers
225 views

How can Apple provide GNU tools?

I am a web developer and am wondering why os x comes a long with a lot of gnu tools (nano, bash, vim). How can apple provide them in their closed-source system when the GPL forbidds this? Regards, ...
1
vote
1answer
117 views

How to use pipeline in Terminal

I'm trying to convert a P12 file to a PEM file. When I execute the command, the terminal asks me for three things: P12 passphrase (I type it in, hit enter) PEM passphrase (type it in, hit enter) PEM ...
0
votes
1answer
339 views

How can I set and use a PATH component with blanks in bash?

I have Mathematica 8 installed on my OS X Mountain Lion laptop. I want to set my PATH so that I can run either MathematicaKernel or Mathematica from the command line. To this end I have configured my ...
3
votes
2answers
1k views

What terminal commands are new or updated in Mountain Lion?

Where can I find a list of new or updated terminal commands or features for Mountain Lion? Lacking any list, does anyone have a sugguestion on how to generate that list? (some combination of ls ...
4
votes
2answers
650 views

How to reset the terminal before command execution?

I've been looking at spicing up my Terminal experience by among other things, adding some color. I used the tput command to build a nicely looking prompt. This is part of my .bash_profile: ...
3
votes
1answer
641 views

How to have terminal close tab when shell exits?

I just recently upgraded from 10.6 to 10.8. On 10.6 I could set the terminal to close the tab/window when the shell exits. Mountain Lion's terminal just says the process is completed and the ...
3
votes
4answers
3k views

How to list all files in directory excluding any that start with a dot?

I'm currently using the command find /Volumes/DriveName > driveName.txt to create a file listing of all files that are on the drive. How could I modify my command (or what would be a better ...
8
votes
3answers
15k views

How do I check the download progress of Mountain Lion through the terminal?

I am downloading Mountain Lion, I know I can monitor download progress through the Mac App Store purchases screen but I want to know if I can monitor progress through Terminal.app using a shell ...
0
votes
3answers
281 views

Producing/archiving an overview of a directory structure

I try to find a way to make an archive of my ~/ directory so that I can go back in case I've lost something. I've found several recommendations for this. The first being OS X Hints saying a simple ls ...
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.
1
vote
1answer
533 views

Set terminal window title in a script

I would like to change the entire title of the terminal window for a particular bash script. I googled out but I couldn't find much more than this suggestion: printf "\e]0;My Custom Title\a" After ...
0
votes
2answers
604 views

How to change the color and format of the static host/path/user string in the Terminal or iTerm?

Example: cookie:~ j$ date Sun Aug 5 02:14:29 CEST 2012 cookie:~ j$ Just as it's pasted here, all three lines are of the same color. I would like to have "cookie:~ j$" or at least part of the ...
0
votes
0answers
1k views

Installation of Wine via MacPorts not working with 10.8 and XCode 4.4

I had installed wine on my computer with then 10.7.4. It worked perfectly. Then I updated to 10.8 and wine did not work, so I uninstalled wine and macports. It gave me an error that winetricks (I ...
9
votes
2answers
2k views

What has changed in Terminal.app in OS X 10.8?

Just upgraded OS X to Mountain Lion and noticed that Terminal.app version has changed from 2.2.3 to 2.3. Unfortunately, can`t find any information about what has changed. Do you know if there is any ...
1
vote
2answers
325 views

What is the format I should write the command to SSH into Linux VPS?

I am trying to use SSH and log in from the terminal into a Linux VPS. I have tried a few variations around the following: ssh [user]@[hostname].[my.ip.address.xx]:22 and keep getting: ssh: Could ...
3
votes
4answers
546 views

How do I gain permission to generate ssh keys on my Mac?

I tried to generate ssh keys for GitHub (access through SSH in terminal), but I do not have access to the .ssh directory. I tried to ls -l ~/.ssh, but I got this error ls: .ssh: Permission denied I ...
0
votes
1answer
409 views

Is it possible to first enter a command and then choose “run in Terminal” in Quicksilver?

Is it possible to first enter a command and then choose "run in Terminal" in Quicksilver? Is there another way of doing it other than Quicksilver (though I would prefer Quicksilver)?
0
votes
0answers
362 views

How can I play a sound from the command line running as sudo?

While typing afplay danger.mp3 in the Terminal will play the .mp3, doing sudo afplay danger.mp3 or sudo su and then afplay danger.mp3 does not. Any idea why is this? How can I use the afplay command ...
0
votes
1answer
680 views

$PATH error on a terminal

Before you raise your pitchforks, this is NOT another "How do I change my $PATH variable value?" question. I had installed Oh my zsh on my machine(Macbook Pro), and didn't like it. So I uninstalled ...
2
votes
2answers
27k views

How can I re-run the initial Setup Assistant on Mountain Lion?

As described in my write-up on custom keyboard layouts, in some situations it can be useful to re-run the Setup Assistant (the app that you get when you start a new Mac for the first time, or do a ...
6
votes
1answer
712 views

How to share history between terminal tabs?

I generally find myself using two or three tabs in my Terminal on OS X. A minor inconvenience is often that the tabs don't share a command history. So things like history | grep thingIamlooking for ...
0
votes
0answers
419 views

ifconfig - get IPs of connected USB devices

In Ubuntu, ifconfig lists all the USB devices with the header "usb0, usb1, ..etc" I need to know the IP addresses of all the connected USB devices. It would be really helpful if on Mac it displayed ...
1
vote
1answer
111 views

difference between disk size in console vs disk utility

Console results df -h disk utility results What explains the large difference here in capacity as well as used memory? And which is more reliable.
0
votes
1answer
222 views

Can't create alias for 'nano ~/.bash_profile'

I tried to make an alias to edit my bash profile, but when I save and relaunch a new window, I get the following: Last login: Sun Jul 22 12:00:25 on ttys001 -bash: alias: nano ~/.bash_profile: not ...
6
votes
1answer
211 views

How to keep the text selection in Terminal.app when typing

In Terminal.app, when I select some text and start typing again, the text selection is gone. I personally find this very annoying. Is there a way to make Terminal.app keep the selection when I type?
1
vote
2answers
749 views

Mac: how to securely delete an SD card?

Nothing I have tried gives me read/WRITE access to my SD card from my Canon camera. How can I secure-delete before selling the card on eBay? (the lock switch is on: unlocked - tried the other position ...
0
votes
3answers
3k views

ssh/terminal tricks with iPhone [closed]

I have a lovely jailbroken iPhone 4. Works fine. Very much enjoying being able to ssh into the device, but I can't help feeling I'm missing a few tricks with the ssh, would anyone be able to point me ...
0
votes
1answer
151 views

Applescript to monitor terminal changes

I want to be able to check if a word appears in a terminal window running a java application and then display a notification. Any ideas?
2
votes
2answers
161 views

How to get + metacharacter for sed in Terminal?

It looks like sed that comes with Mac OS 1.7.4 is the original one, without the + metacharacter. Can I get the + metacharacter functionality?
3
votes
2answers
895 views

How to get a “modern” emacs that runs in a terminal on os x lion?

I just installed Prompt on my iPad so I could possiby do some real work on my iMac via ssh. so far Mutt and Vim and emacs seemto work responsively enough for me. I've made a few tries at emacs ...
8
votes
2answers
2k views

How do I change the location of screenshot in OS X Lion?

The old method that works for Leopard/Snow Leopard doesn't work any more on Lion: defaults write com.apple.screencapture location /Users/kamus/Pictures/snap Has something changed or does anyone ...
2
votes
2answers
1k views

Unable to save hosts file after adding websites to block.

I'm unable to save hosts file after adding websites to block,as well as unable to flush cache. I am not a techie, just researching on the web, and trying to follow directions for terminal and Text ...
0
votes
1answer
1k views

How can I have Qt Creator to recognize my environment variables?

I use Qt Creator as my main IDE for cross-platform C++ application development. In doing so I had set it up so that it depends on a set of environment variables that I define in .bashrc. On Linux ...
3
votes
3answers
369 views

Any way to force command line terminal to control a Mac?

I'm experimenting a little with Automator at the moment and often get stuck with some pre-recorded automation running very slowly while the whole Mac (an 2010 iMac in my case) doesn't respond to any ...
1
vote
2answers
3k views

Change label on USB drive in OSX Terminal

I am trying to write a program in Python that will rename a USB drive (from the standard "USB DISK" to my custom "MYDISK"). However, I can't find any way to do this neither in Python nor in OSX ...
2
votes
1answer
178 views

Why does my terminal show a string like this?

When I open my terminal it shows this: wpa-2-602:~ david$ I just curious what the wpa-2-602 means? "david" is my user name, and sometimes it was something else. What makes it change?
5
votes
3answers
3k views

How can I manipulate several security settings from terminal?

I want to change these behaviors from terminal: Auto-login Showing password after screensaver and sleep mode Go to sleep mode after x minutes Enable screensaver after x minutes
1
vote
1answer
336 views

Search all hidden .htaccess files inside a folder and run a terminal command?

Searching for the issue, I found this Q&A: How can I show only an .htaccess file in the Finder? [...] you could create a symlink to the file in its directory, omitting the dot in the name: ...
2
votes
1answer
526 views

Password dialog appears for password-less SSH private key

I installed my SSH private key in ~/.ssh/id_rsa. There is no passphrase associated with the key, however, whenever I connect to an SSH server, a dialog pops up and asks me to enter my password to ...
0
votes
2answers
623 views

Executing program through Terminal

I have Sage (math program) and I want to execute it through terminal. I know I can go to the directory and execute it with - open Sage.app But would I really want to do is simply type sage in ...
2
votes
1answer
506 views

Why doesn't the screen command source my .profile?

When I start a new screen, the aliases that I have set in my ~/.profile do not seem to be sourced. Does anyone know where I can change this or which file is actually read when starting a new screen?
2
votes
2answers
1k views

Hostname changes in the terminal when connecting to some wifi networks

When I connect to some wifi networks my computer hostname changes in the terminal - is this normal? Is there a way I can prevent this from happening?
0
votes
0answers
291 views

How to make the display go to sleep mode when Lion's Terminal.app is in full-screen mode?

I've noticed that when I'm running a full-screen Terminal.app in Lion, the display does not go to sleep. This left me with a nasty case of burn-in over the weekend with a magenta message box from an ...
6
votes
1answer
328 views

Is it possible that some hacker is logged in to my computer?

When I type w at the terminal I see myself logged in two times. What are console and s000? Is it possible that one of these neos is actually somebody else?