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
357 views

Screencapture Terminal command and then return to Shell script

I'm trying to run a shell script wherein I run the screencapture command, do a couple of modifications like file renaming, moving to Dropbox, shortening the url etc and then growling the url. Problem ...
3
votes
1answer
1k views

ssh terminal window closes immediately when opened

I am seeing some odd behavior when using the Terminal app to open an ssh window to a remote machine. I normally connect to many different Linux servers from my MacBook Pro running Mac OS X 10.7.3, ...
5
votes
1answer
390 views

Parental Controls not restrict Terminal Commands?

I have a Parental Controls limit on my child so I have to type in my password when they open a new application. I have recently discovered a problem though. They have tried programming in terminal. ...
1
vote
1answer
596 views

Copy system bundle to a Mac on network?

I screwed up while using Monolingual and removed the "AppleKeyboardLayouts.bundle". Before I realized what happened, I logged out and now I can't type a password to log back in. I have tried to copy ...
8
votes
4answers
15k views

Is there a Terminal-like app for iOS?

I am looking for an app that has some of the same functionality (ssh specifically) as the Terminal application on the desktop. What different apps exist for iOS that have this functionality?
16
votes
4answers
5k views

How do I speed up new Terminal tab loading time?

How can i speed up the terminal startup in Lion? I'm not referring to the startup of the Terminal application, but to the startup terminal windows, like when i open a new tab. I don't have anything ...
3
votes
1answer
728 views

Disable visual bell animation in Terminal

The title says everything, how can I disable the visual bell animation in Lion? It is annoying and useless, visual bell should be fast, not fancy! I don't want to disable the visual bell, just the ...
1
vote
1answer
446 views

Compressing server into .jar file

Currently I'm attempting to compress a decompressed jar file that I have changed into a jar file. How can I do this via the command line? I know that there is a jar command in terminal, I'm just ...
12
votes
1answer
2k views

Using tmux and pbpaste, pbcopy, and launchctl

I have discovered that tmux breaks pbpaste, pbcopy and launchctl. Is there a good way to make it play nice with these tools?
3
votes
3answers
3k views

How can I use Terminal to monitor a network interfaces total traffic in Mb

I would like to use the terminal to monitor the network traffic on a given interface, with a view to providing alerts when certain cumulative totals have been exceeded. The script needs to gain ...
2
votes
1answer
2k views

Broadcast Message from root@

I'm running Lion (10.7.1) and the other day I started getting these Broadcast Message notices in my Terminal. I've google'd the crap out of it and the few threads i've found where someone actually ...
2
votes
2answers
818 views

Valgrind in OS X Lion

I am not sure if this question would be more appropriate for stackoverflow, but I thought I'd ask here first. The other day, I tried running one of my programs against valgrind to check for memory ...
3
votes
4answers
8k views

How do I search all hidden files that are in hidden folders using Terminal?

I need to find some configs buried in some hidden folders and can't recall where they are to navigate to them directly Cmd+Shift+G. I did a sudo find -name Foo* (slow), but none of the returned files ...
0
votes
2answers
84 views

Managing Grouped Terminals

I often find myself with 6 ort 7 parallel tasks, with each requiring several terminals. My ideal UI would be a hierarchical tab setup - a tab for each group of terminals, where I could name the tab, ...
0
votes
1answer
634 views

Using the “find -name” command on OS X

In the command find theres a switch called name but it doesn't exist in OS X, whats the equivalent switch for OS X?
5
votes
2answers
844 views

How can I get the Terminal to keep a separate history per tab/window?

When I restart my Mac it quits and saves the buffers for each tab properly, since it's there again when the computer starts back up. But the command history is not buffered properly per window/tab. ...
1
vote
0answers
172 views

How to make this kind of global hotkey? [duplicate]

Possible Duplicate: Create global shortcut to run command line applications I want to assign a command to a certain key. This command will fire no matter what window is active. It will do ...
1
vote
1answer
59 views

Access the system library folder rather than the user library folder with Terminal

I am trying to chmod a folder in the library of my Mac but I can only get to the folders below the user level. I need Library/WebServer/Documents/..., but I can only get to user/me/..., etc. Does ...
5
votes
3answers
6k views

Why is my host name wrong at the Terminal prompt when connected to a public WiFi network?

For three days straight, I have connected to the public WiFi network at my local library. Each day, I have seen a different prompt in Terminal. Here are some of the prompts I've seen: zp-pc:~ ...
4
votes
5answers
2k views

Monitor a folder for changes, and run a command when a change is detected

Is there a simple way to automatically run a (Terminal) command every time a file is changed in a specific folder? This should be possible via the command line, or a system built-in application, no ...
0
votes
2answers
357 views

Run java bundled in .app from command-line

The question is how do I run some application written in java and bundled into .app package from command-line? The main purpose of this is to run an application under JDK7. So I will start it with ...
4
votes
2answers
988 views

TotalTerminal doesn't work with full-screen apps

TotalTerminal (former Visor) is an awesome plugin for Terminal that turns it into a Quake-style console that slides down on a key combination. This is tremendously useful for development because I ...
3
votes
2answers
1k views

Terminal: Path to Network Drive in Applescript

I am trying copy a file up to a network drive in AppleScript. Normally I would do.. do script "mv ~/Desktop/file.txt ~/Folder/file.txt" What is the correct path to a network drive? I normally ...
7
votes
2answers
466 views

Multiuser GNU screen sessions

I am attempting to set up multi user screen sessions on Mac OS 10.7.3 and I run into the error Attach attempt with invalid pid(xxx)!. If set it up as follows: Initial configuration of system: Make ...
8
votes
1answer
2k views

How can I initiate a Google Voice phone call from the command line?

Thanks to Brett Terpstra I can easily send an SMS through Google Voice in Terminal, but now I want to be able to initiate a phone call via Termainal too. There is no Google Voice API (yet?) so I know ...
2
votes
3answers
247 views

How do I delete all files from a directory tree where the filename contains special characters such as öäüß

I have a problem with my backup program which means that I need to delete all files and folders in a specific directory tree where the filename contains special characters, in my case the German ones ...
12
votes
2answers
6k views

How can I find the serial number on a mac programmatically from the terminal?

What command can I use to retrieve the system's serial number from the unix command line? As uname will output some information about the software and hardware, I would like to retrieve the serial ...
3
votes
2answers
419 views

Add shortcut for multiple terminal commands?

I find myself doing this too often - navigate to a folder, "Open Terminal Here", then "mate .", then "python -m SimpleHTTPServer" I was wondering if it's possible to add a button to the finder ...
1
vote
2answers
530 views

Mac OS X Lion Terminal

I have a question about my terminal. When I started out working with Rails on my Mac terminal, I would have lines that looked like this as the route for my $: Nicholass-MacBook-Pro:sample_app ...
7
votes
3answers
9k views

How do I mount ejected external USB flash storage?

Suppose that we connect our flash USB drive to a MacBook, then eject this storage from Finder sidebar. Now I want to remount this storage without unplugging and replugging it into the computer, but ...
3
votes
1answer
1k views

How can I change the modified date of a symlink?

I would like to change the modified date of a symlink. The symlink points to a directory so it cannot be a hardlink. The following command works fine in the terminal for an actual directory, but it ...
3
votes
2answers
1k views

Is there a way to turn on and off the Mouse Keys feature using AppleScript or a terminal command?

I'm running Mac OS X 10.7.2. Is there a way to run an AppleScript or terminal command that quickly turns on or off the "mouse keys" feature under the Universal Access tab? Ideally I'm looking for a ...
7
votes
2answers
3k views

Make ls command sort by file type (e.g. directories and file extension)

How do I make ls sort by file type (e.g. directories first and then by file extension)? The answers suggested in (Super User) Make ls sort by file type result in unknown option errors from ls.
0
votes
3answers
281 views

Why does Terminal ignore capital “B”?

this happens to me from time to time: when I am using the Terminal, suddenly the terminal starting to ignore the capital 'B', regular 'b' works fine, other capital letter work fine. other applications ...
0
votes
1answer
1k views

Why can't you create/open multiple instances of iTunes?

In terminal, the open -n ~/Applications/iTunes doesn't create a new instance of iTunes, just switches to the one already open. Why?
8
votes
4answers
3k views

Remotely SSH to IP address in home network

I've got a device at home I want to SSH to from work. The device has port 22 open locally and I have port 22 opened on my AirPort Extreme. However, on the AirPort Extreme it says the open 22 port only ...
2
votes
0answers
224 views

C and C++ executables freeze in Lion, remotely hosted on Ubuntu box [closed]

I'm trying to compile and run some very simple C and C++ code in Lion. Compilation works fine. Running the executable leads to the 'spinning beach ball of death.' Force-quitting out of Terminal ...
17
votes
5answers
8k views

Can I view system stats in the Terminal?

The widget iStat Pro allows to monitor different system stats like CPU usage network bandwidth in/out memory usage ... How can I view such system stats in the Terminal?
2
votes
4answers
800 views

List the extensions installed in Safari for Mac OS X, and state whether each one is enabled

I'd like a list, from which text can be copied. (Not a screenshot of preferences.) This information does not appear in any of the following: Safari System Profiler in Snow Leopard System ...
10
votes
3answers
1k views

Is there a way to auto-complete the open command in Terminal?

I frequently use the open -a command in Terminal to open applications via ssh. How do I make it auto-complete an application's name?
9
votes
2answers
4k views

What should I do when the menu bar seems frozen/unresponsive?

Several times the menu bar on my Mac has frozen and I've had to restart the whole computer. I know that there must be a better way to fix a frozen menu bar than restarting. How can I kill the menu bar ...
6
votes
3answers
3k views

Script to raise a single window to the front

In a script I'm trying to find the Terminal.app window containing a specific tty device and raise that window to the top. Here's what I have in Applescript so far: tell application "System Events" ...
1
vote
0answers
82 views

why does less seem to think my terminal has more lines than it does?

Don't know if this is really an OS X question, but: less seems to insist that my terminal (whether I'm using the builtin Terminal or iTerm2) has more lines than are actually displayed, and so the top ...
3
votes
3answers
555 views

Terminal shortcut keys

I've recently immigrated from Ubuntu to Mac OSX Snow Leopard. I use the terminal (iterm2) extensively, and I am a great fan of shortcut keys. The standard shortcut keys (which work in any GUI ...
3
votes
2answers
628 views

How to wake the screen from terminal?

I often have my MacBook Pro in clamshell mode attached to the second monitor. On my first monitor I have Windows machine and I use Synergy-Foss software to share only one mouse+keyboard between them. ...
7
votes
1answer
2k views

Change Network location from terminal

I have a two locations set up on my macBook. One for normal use and another for when I use a proxy, which I start from the command line. It would be very useful for me to be able to switch network ...
2
votes
1answer
85 views

'script' command in terminal, looking for a flush open

When I use 'script' on a unix terminal the -f option flushes the data straight to the file - from the man page "-f Flush output after each write. This is nice for telecooperation: One person does ...
1
vote
3answers
1k views

How can I create a folder named like the current date in bash

So I'm messing around in my .bashrc making different aliases and playing with my prompt. I'm trying now to make an alias that will move into a specific directory, make a new directory based on the ...
1
vote
2answers
242 views

How can I get Unix (brew/xcode/vim) acting like Unix under Lion?

I "upgraded" from Snow Leopard with Homebrew and vim both chugging along happily, to Lion. Now vim hangs/segfaults, and when I invoke brew, it complains xcode is missing, and continues to do so after ...
2
votes
1answer
236 views

Long command in terminal.app cause a bug

If I am in the last line of Terminal.app and enter a long command, it does not create new line, but instead overwrites the same line. How can I solve this bug?