Questions tagged [terminal]

Questions about the Terminal application or its terminal emulation should use this tag. Use **command-line** for questions about shells or command-line programs that do not specifically involve Terminal.

Filter by
Sorted by
Tagged with
38 votes
5 answers
67k views

Log out other user w/o first switching to that user

My wife use separate accounts and quick user switching on a MBP running 10.6. Sometimes I want to log her out to free up some RAM, but I'd like to avoid logging in as her, logging out, then logging ...
user avatar
15 votes
5 answers
13k views

Why don't my arrow keys work in vim under iTerm?

They work just fine if I use Terminal and start a vim session, but under iTerm I have to resort to using H-J-K-L to do left-up-down-right movement. In both Terminal and iTerm TERM=xterm-color. My ....
user avatar
  • 44.3k
19 votes
2 answers
5k views

ctrl-o behavior in Terminal.app

I often use the ⌃+O shortcut in bash (from "Learning the bash Shell"): [G]o back to [a command in history] and press ⌃+O instead of ↩. This will execute the command and bring up the next command in ...
user avatar
2 votes
2 answers
4k views

Changing the color of the path in Terminal.app [duplicate]

I would like the CasebashMac:bfgenv chris$ part of the following line to appear in a different color in my terminal. CasebashMac:bfgenv chris$ python
user avatar
  • 4,163
15 votes
5 answers
9k views

Open new terminal window in current space, regardless of other open terminals in other spaces

When using Spaces on Mac OS X trying to open a new terminal instance results in focus being pulled to whatever space has the most recently accessed terminal window. With Finder I can click on the ...
user avatar
2 votes
2 answers
2k views

Command Line method to backup using two Time Machine disks

Does anyone know of a command line method to select the active Time Machine disk? I would like to alternate between two backup disks for redundancy. I would like this to be automated, presumably via ...
user avatar
5 votes
4 answers
5k views

Automatically quit Terminal when typing exit

Scenario I use terminal to SSH a lot, however would like the Terminal App to quit when the last Tab closes using exit. I already have the terminal window itself set to close on successful exit, ...
user avatar
  • 6,465
5 votes
3 answers
1k views

When is the locate database updated?

I use the locate command in Terminal regularly. When does its database get updated? On other systems, I could run updatedb as root to force it to update. Note: I know using mdfind to search with ...
user avatar
  • 193
9 votes
2 answers
9k views

Where is the terminal application on the filesystem?

I want to be able to launch a Terminal window using JiTouch, which allows me to make a gesture open a file, so I want to know the location of the Terminal app so that I can open it.
user avatar
  • 4,163
25 votes
13 answers
22k views

Start/stop internet sharing from a script?

Is there a way to start/stop internet sharing from the command line or maybe an apple script? The thing is that I move around my laptop between home and work. At one place I get wireless internet (...
user avatar
7 votes
4 answers
4k views

Is it possible to hide the scrollbar in Terminal?

In the 10.4 or maybe 10.5 versions of Terminal.app it was possible to hide the scrollbar completely. Does anyone know if this is still possible in the 10.6 version of Terminal.app?
user avatar
7 votes
2 answers
4k views

Decompressing .sit file

I have recently downloaded a .sit archive file. Is there a way to decompress it at the command line?
user avatar
  • 227
3 votes
2 answers
2k views

Installing mc (midnight commander) without root access?

How do I do that? The normal installers (with .pkg files) ask for an admin password. It is possible to run normal mac software without admin access, but how do I run and install this shell software?
user avatar
  • 861
21 votes
7 answers
17k views

OS X Terminal equivalent of Ctrl+Left / Ctrl+Right

In Windows and Linux I could always hit ctrl+← or ctrl+→ to skip a word to the left or right in the terminal. In text editors it seems that ⌥+←/→ works, but no dice ...
user avatar
9 votes
3 answers
19k views

Where are bash profile startup files?

I know that you can have a .profile or .bashrc file in your home folder to customise Mac OS X 10.6.4 Terminal bash startup. Every time I start up Terminal, there is a line that tells me "You've got ...
user avatar
  • 5,255
97 votes
7 answers
178k views

Are my permissions for /usr/local/ correct?

I’m using HomeBrew for my port needs (seems a bit “cleaner” than MacPorts). I can install without sudoing (which is great), but the man linking step seems to require it (/usr/local/share/man/man3 is ...
user avatar
  • 3,454
6 votes
2 answers
3k views

Equivalent to alt-. in terminal

I am curious as to whether there is an equivalent to the Alt-. command on Mac. On my computer it inserts the following character: ≥, instead of showing the preceding lines final parameter.
user avatar
  • 4,163
2 votes
3 answers
202 views

Tools for making Finder easier to use? [closed]

I need the following tools for Finder. Launch a Terminal from Finder. Copy a path information from Finder. Make a new file from Finder. (not a new directory) Any hints?
user avatar
  • 5,454
6 votes
3 answers
4k views

Is there a way to remotely restart Finder (or wake-up the desktop) from SSH?

Over the last few months I've found my MacBook Pro is getting increasingly unwilling to wake-up if it's gone to sleep of it's own accord - not when I put it to sleep deliberately, but when the machine ...
user avatar
  • 2,040
2 votes
2 answers
3k views

How to skip system hotkeys when using terminal emacs?

I like to run GNU emacs in a Terminal window under Mac OS X 10.6.4. Unfortunately, whenever I hit a hot key for emacs I often "trip" on an OS X system hot key. For instance, when I hit ⌃ + space in ...
user avatar
  • 5,255
11 votes
5 answers
5k views

How can I Open Multiple Customized Terminal Shells?

How can I customized Terminal so that when I open the application it opens several shell tabs? If possible I would like to also have it run a different environment script for each tab. Example: Run ...
user avatar
137 votes
8 answers
436k views

How can I mount an SMB share from the command line?

I would like to mount an SMB network share from the command line (terminal); how would I go about that? I am using Mac OS X 10.6.4.
user avatar
  • 1,535
5 votes
2 answers
3k views

Is there a usable iOS4 Terminal App?

Mobile Terminal 426 appears to be the only non-crashing iOS4 Terminal App. Unfortunately it's missing all of its convenience features, like gestures. Are there alternatives?
user avatar
  • 153
5 votes
4 answers
2k views

Opening a new Terminal window when it's running on another desktop

I open a lot of terminal windows. I also make use good use of tabs & multiple desktops. Normally I launch Terminal.app with Spotlight. But if Terminal is already running on another desktop, it ...
user avatar
82 votes
19 answers
308k views

Is there a way to start a specific application with a keyboard short cut? [duplicate]

Sort of like the Windows+R command in the windows world? That actually just lets you run a command but you get the idea.
user avatar
  • 3,185
9 votes
1 answer
6k views

Turn on Back To My Mac via a Script or Command Line

The VPN software I use for work (IPSecuritas) requires me to turn off Back To My Mac to start it's connection, so I frequently turn off Back To My Mac in order to use my VPN connection (the program ...
user avatar
  • 7,758
404 votes
133 answers
243k views

Got any tips or tricks for Terminal in Mac OS X?

One tip or trick per answer. My favorite is open . Opens the folder you're currently browsing in Finder. You can also pass URLs, images, documents or else to open. If you specify a program name ...
376 votes
12 answers
310k views

How can I configure Mac Terminal to have color ls output?

How can I configure Mac Terminal to have color ls output? I am using MacOS 10.5
user avatar

1
117 118 119 120
121