questions narrowly about terminal.app alone should use this tag. Please consider using **command-line** for any question not specifically about the native terminal app

learn more… | top users | synonyms

3
votes
2answers
353 views

Single Click in Terminal to Select Text

I've been searching for a while on this one and the only answers I can dig up are "use X11"...so I thought I would bring it to the experts. Is there a way to configure mouse gestures/actions in the ...
1
vote
3answers
55k views

Access Applications directory in Terminal

I'm really new to command line and I'm trying to access my Applications directory within Terminal. By default, I am stuck in my user directory but Applications is a child of the "Macintosh HD". ...
28
votes
6answers
6k views

Disable Command-W in the terminal

Is there any way to disable Command+W in the terminal? On several occasions I have accidentally closed a terminal window containing important information when I meant to close a Safari tab and did ...
1
vote
1answer
962 views

Saving files on lost focus in console Vim

I have been trying to setup the console version of vim to save any changed files when the Terminal window loses focus. Following these instructions does not work. Am I to assume that maybe the ...
24
votes
8answers
18k views

When I open Terminal, I get an “I have no name!” prompt

Suddenly, this morning, I open a Terminal window and I get this: I have no name!@macbook:~$ whoami 502 ** I am not a number! I am a human being! ** What gives? Anyone know what I need to do to ...
3
votes
2answers
2k views

Will a Perl script still run after I log out of my user account?

I have started a Perl script from the terminal that runs in the background: >perl myScript.pl & If I logout, will it stop my script from running? Thanks!
12
votes
7answers
11k views

sourcing bash profile for root users

Apologies in advance if this question is going to annoy the hell out of everyone as I appreciate, it's been asked in various ways many times before. Please be assured, I have read the archives and ...
0
votes
1answer
157 views

Change a Mac Mission Control wallpaper using the terminal

I can use Automater to change the wallpaper of the current "space" im in, but I can't tell it to change another space. Any thoughts?
5
votes
1answer
8k views

Howto merge files after using split command from terminal?

I've split a large file with the split command from a terminal and copied it from a usb-stick to my macbook. This results in couple of files named 'xaa', 'xab', 'xac'. How do I merge them together ...
1
vote
1answer
862 views

Terminal.app ignores ~/.profile file settings

Terminal started to ignore profile file settings, which I didn't change in a long time. How can I force Terminal to respect the file again? I tried to delete and recreate but it didn't help... My ...
6
votes
4answers
3k views

Is there a better way to shutdown/restart OSX?

Whenever I want to shutdown/restart OSX I click on the menu, select shutdown, and then click the box for not saving the session, and then click OK. Then there's always at least one program that ...
3
votes
2answers
3k views

Paste text stored on Clipboard to a variable using pbpaste

I have some text stored on my clipboard. I want to store this text onto a shell script "variable". So something like: ls -altr > pbcopy tmp="something" pbpaste > $tmp # this doesn't get the ...
3
votes
2answers
2k views

Mac terminal shows 'null' for host name at the prompt

I've got a new Mac and I've noticed on the terminal I get a null instead of some kind of name there before on my previous computer. Last login: Fri Mar 9 10:14:57 on ttys000 (null):~ Macuser$ I'm ...
0
votes
1answer
942 views

unable to run ddd on mac

I am trying to install ddd debugger on my MAC. It installed fine, however when I try to run it I get the following error: bash-3.2$ ddd test Error: No `Ddd' application defaults file To resolve this ...
2
votes
1answer
1k views

How to use zsh and bash on iTerm2 at the same time?

Zsh is better than bash(obviously), but for some reason, from time to time I have to use bash. I am wondering is there any way for me to use them together without changeing them manually? What I ...
10
votes
5answers
3k views

Option + click in iTerm

In Terminal, Option + click allows me to place my cursor at any point on the current line-- great for editing really long commands. How can I do this in iTerm2? Update: According to this page, the ...
3
votes
1answer
2k views

How do I restore a previous version of my ssh keypair files?

I was following the Github tutorial and I generated a new SSH key pair. But now when I'm online, Google keeps throwing up SSL errors (and so does everywhere else with SSL, for that matter). What ...
0
votes
1answer
1k views

What is the Apple_PubSub_Socket_Render environment variable for?

After running: env ; #from with in terminal I see the following output: ... Apple_PubSub_Socket_Render=/tmp/launch-pc2V6P/Render ... What is this environment variable used for? Not really ...
1
vote
1answer
842 views

What is the TERM_PROGRAM and TERM_PROGRAM_VERSION environment variables used for?

After running: env ; #from with in terminal I see the following output: TERM_PROGRAM=Apple_Terminal ;#Not sure Terminal.app TERM_PROGRAM_VERSION=273 ;#The CFBundleVersion of Terminal.app ...
5
votes
3answers
2k views

Force Terminal to Use Gedit for any Text Editing - not vim

I'm learning to program. While following this mission, I typed git commit, which opened up vim. I don't know or want to know vim (no offense to vim lovers). I'd like to have: terminal open gedit ...
20
votes
4answers
26k views

How can I kill a process by its name?

Sometimes I notice that the process Python hung up. Then I'll kill it via the Activity Monitor and everything is fine. I'd like to kill that process in the Terminal instead. However, looking up the ...
5
votes
3answers
9k views

How can I mount an encrypted disk from the command line?

When I type diskutil mount disk3 in the terminal, it says Volume(s) mounted successfully. However, the disk is not mounted and I can confirm this by opening the GUI of Disk Utility.app and also the ...
3
votes
1answer
530 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
442 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
788 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 ...
9
votes
4answers
39k 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?
45
votes
10answers
14k 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 ...
4
votes
1answer
1k 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
752 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 ...
19
votes
1answer
4k 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?
5
votes
3answers
6k 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
1k 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 ...
6
votes
4answers
15k 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
89 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
1k 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?
6
votes
3answers
2k 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
177 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
113 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 ...
17
votes
3answers
19k 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
4k 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
554 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 ...
8
votes
3answers
2k 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
3k 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
593 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
320 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 ...
20
votes
2answers
19k 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
586 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 ...