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
5 votes
3 answers
4k views

Launch terminal in new window by default

Is it possible to set up Terminal to launch a new window by default? I recently came from running Ubuntu and I normally open hundreds of terminals a day. It's a pain to have to always right-click on ...
Morgan O'Neal's user avatar
5 votes
1 answer
722 views

Why is mdfind only returning my most recently accessed files?

I've imported most of a javascript code base via mdimport (using the packaged SourceCode.mdimporter provided by Xcode) and it succeeds. However, mdfind only ever returns to me at most two results, ...
Felix Fung's user avatar
6 votes
2 answers
6k views

Firing up Terminal from an Automator Workflow?

I quite often use the python -m SimpleHTTPServer command in the Terminal to fire up a webserver for testing apps. Having just learned the basics of the Automator, I figured this would be a great use ...
littlecharva's user avatar
141 votes
3 answers
279k views

How can I list and edit all defined aliases in Terminal?

A friend who owned my current Mac before me created a lot of alias commands. Is there a way to list all defined aliases and the command that is associated with them? And if so, am I able to edit ...
MattStacey's user avatar
  • 1,607
11 votes
3 answers
4k views

How can I specify delimiters in Terminal for word and character selection before copying and pasting?

I am new to Mac and still struggling to be productive with fewer clicks and keys... When I use Terminal and click on a word, I would like the delimiter to be only space and not other characters like ....
xyz's user avatar
  • 3,923
8 votes
1 answer
2k views

Show text in large type on the screen via terminal

I can put large text on the center of my screen with certain apps, such as Address Book (click on a phone number and choose "Show in Large Type") or using Quicksilver (type some text and choose the "...
Lorin Hochstein's user avatar
201 votes
10 answers
231k views

What is the difference between iTerm2 and Terminal?

I keep hearing that iTerm2 is much better than Terminal. However, when I downloaded iTerm2, I didn't see what made it preferable over Terminal. What are the differences between these two apps?
daviesgeek's user avatar
  • 38.9k
2 votes
2 answers
325 views

Booting for imaging

Our corp is implementing Macs for the first time. We are using Casper to manage them. Unfortunately our Computing Security folks will not allow a Mac Server with NetBoot on our network, which puts ...
p_owen's user avatar
  • 21
11 votes
2 answers
4k views

Adding movie-style sound effects to the Terminal

I want to have movie style sound effects in the terminal. You know, when every keystroke and line emits a cool little beep. (Something like this.) I've used KeyClick, but that's only for keyboard ...
chrismanderson's user avatar
6 votes
1 answer
472 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?
Kiezpro's user avatar
  • 1,263
7 votes
5 answers
12k views

Where is nmblookup in Lion?

I'm trying to call nmblookup in a Terminal on Lion, but it's not available. How can I lookup NMB hostnames from the Terminal now?
remino's user avatar
  • 173
13 votes
5 answers
2k views

Is there a way to get Terminal on Lion to start up cleanly (without the buffered history)?

How can I prevent Terminal from showing me my old output when it starts? I would like it to always start with a clean window.
guidoism's user avatar
  • 277
1 vote
3 answers
4k views

I used to be able to use g++ from the terminal, but now it's missing. I still have XCode installed

I used to be able to use g++ from the terminal to compile c++ programs, but now when I try to use it, I get -bash: g++: command not found General advice on the internet was to install XCode, but ...
cstack's user avatar
  • 131
3 votes
3 answers
2k 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 ...
JeremyT's user avatar
  • 31
5 votes
2 answers
6k views

How to recover .profile on Mac OS?

I have mis-configured ~/.profile while adding new environment variable. I want to restore my original .profile for my Mac OS, I am not mac expert please help me. None of my shell command is working ...
irfan's user avatar
  • 51
5 votes
2 answers
3k views

How can I use tmutil to figure out which files just got deleted?

I'm on Lion and until ten minutes ago I didn't know that the nifty new tmutil existed. But now I'm a little uncertain with all its options and sub-commands which to use to try and figure out what went ...
John Munsch's user avatar
3 votes
2 answers
4k views

Osascript error

I was messing around with some external libraries, and for some reason when I enter any Osascript command, I now get this error (before it did work): 2011-09-07 19:13:43.306 osascript[1083:707] ...
JShoe's user avatar
  • 5,149
1 vote
2 answers
426 views

How can I re-route Cocoa applications through ssh -X?

Is is possible to re-route Cocoa applications through ssh -X? I like being able to route X applications, but I want to route Cocoa applications too. Any ideas?
daviesgeek's user avatar
  • 38.9k
45 votes
10 answers
45k views

How can I quickly navigate through man pages in the Terminal

Is there any way to quickly scroll through text-heavy output in Terminal such as man pages ? Using the up and down arrows only move the screen one line at a time; is there any way to scroll faster?
JFW's user avatar
  • 4,584
5 votes
2 answers
11k views

Emacs Ctrl-x ctrl-s command not working in Terminal.app

I am having issue when connecting to my school's unix remotely via Terminal (SSH) and attempting to edit code in emacs on my Mac. I have a Macbook Pro running Mac OS 10.6. I use the emacs that is ...
Bret Moore's user avatar
14 votes
3 answers
8k views

How do I make symbolic links invisible in the Finder?

I use SetFile via the terminal to render files and folders invisible inside Finder windows. This does not appear to work on symbolic links: the symlink destination is made invisible, rather than the ...
Annika Backstrom's user avatar
30 votes
2 answers
21k views

What is the difference between .command, .tool, and .sh file extensions?

I saw a couple of questions about executing command line scripts? I saw that the .command and .tool extensions were mentioned. I have always used .sh. What is the difference between these different ...
daviesgeek's user avatar
  • 38.9k
25 votes
4 answers
13k views

How do I send C-/ (that is, control-slash) to the terminal?

I'm trying to run Emacs in a terminal. I've turned on the "use option as meta" in terminal preferences and so it's about 95% working right. The key sequence ctrl-/ (or in Emacs notation C-/) is "undo"...
Kevin Peterson's user avatar
2 votes
3 answers
6k views

-Bash command not found appearing every time I start terminal [duplicate]

every time I start my terminal, it always says "-bash: .: command not found" twice. Does anyone know how I can get rid of that?
David Mann's user avatar
8 votes
5 answers
14k views

How do I rename the Downloads folder (in Lion)?

For whatever perverse reasons I wish to rename the Downloads folder to Temp. I would also be happy with a way of making it appear to me, in both the GUI and the CLI, as Temp. I am aware I can do this ...
Vladimir Sotirov's user avatar
2 votes
2 answers
2k views

How can I mount a drive with Truecrypt through a script based on its UUID?

I keep an external drive on my desk at work that I used as an off-site (ie not at home) backup. Because it could easily get taken I have a partition on it encrypted with TrueCrypt. I've got a script ...
arandomlypickedname's user avatar
1 vote
1 answer
1k views

sudo dscacheutil -flushcache = ?Invalid command [closed]

I'm getting the following response when I try and run dscacheutil -flushcache ?Invalid command
Chase Florell's user avatar
6 votes
3 answers
338 views

Moving folder to Trash in Finder is not synchronized with Terminal

I tried to delete a folder which I access via terminal.app. Though the Finder moved the folder to the Trash, I was still able to see the contents and edit the file from terminal. created a textfile ...
palaniraja's user avatar
2 votes
1 answer
7k views

Details of the proxy address which is being used by Mac

Is it possible to get the proxy address that my system is currently using in order to populate HTTP_PROXY variable from command line ? I would like a command so that I could set it in my .bashrc file....
Sairam's user avatar
  • 5,736
22 votes
6 answers
79k views

How can I save SSH Bookmarks in Terminal?

I've recently become infatuated with TotalTerminal and am tempted to switch from iTerm back to Terminal just so I can use it, except that I rely heavily on a half dozen SSH bookmarks in iTerm. Is ...
jb510's user avatar
  • 933
1 vote
2 answers
492 views

Is there a way to search my Samsung SCH-R500 phone through a Terminal window?

I have my Samsung SCH-R500 phone connected to my computer via bluetooth. Though when I go to browse in the 'Bluetooth File Exchange' software, nothing comes up. So, I was wondering if I can navigate ...
James Litewski's user avatar
16 votes
2 answers
11k views

What option should I give the sudo command to have the password asked through a graphical interface?

This problem has ben bugging me for a while now. Every now and then, I need to write a script file that should execute sudo commands. I do not necessarily know in advance that I will run as sudo so I ...
apouche's user avatar
  • 500
7 votes
1 answer
4k views

Using screencapture when remotely logged in to a headless mac via ssh

I'm trying to use screencapture from the terminal, when logged in over ssh, to a mac that has no screen attached. I can screen share to the machine, so I'd like to capture the same display. However ...
ocodo's user avatar
  • 1,673
5 votes
2 answers
893 views

Terminal doesn't show badge - how to enable?

Opposite to another question here I want the badge count to appear. I have the "resume" function enabled in my Lion. Is there another setting that's responsible for the badge? To clarify I run tail -...
Michal M's user avatar
  • 3,796
7 votes
1 answer
25k views

How do I remove a user via single user mode in 10.7?

I occasionally will setup a user's machine that has been in for repair beyond the simple re-install of the OS. For example: install a new hd, install the OS, create a user, install updates and then ...
ivonesh's user avatar
  • 615
2 votes
3 answers
3k views

How can I send email through a Terminal window?

I'm trying to figure out some basic Terminal commands, so I thought I'd try out 'mail.' I opened a Terminal window and entered the following: mail (my email address) (The Terminal then said "...
James Litewski's user avatar
47 votes
11 answers
259k views

"-bash: ls: command not found"

I installed the most recent update to OS X Lion (10.7). After I did that, my terminal won't recognize normal commands. I typed ls and got: -bash: ls: command not found I figured I'd try to add usr/...
LuxuryMode's user avatar
3 votes
1 answer
199 views

Problem with "Open With" menu

I ran this command in Terminal, which supposedly clears all duplicate applications from the "Open With…" menu and now many of my files are just showing up as blank images (.zip files, .dmg files, .rar,...
daviesgeek's user avatar
  • 38.9k
0 votes
2 answers
2k views

Lion Terminal remembers sudo password after quitting

I've been using Lion since its release, and I noticed today, for the first time, that Terminal did not prompt me for a password when I typed in a sudo command, if I close and reopen Terminal within ...
user avatar
4 votes
3 answers
4k views

How do I delete a locked, invisible file in the Trash?

On an external disk (that contains a clone), the /.Trashes/501/Users/myusername/Desktop folder contains (within some subfolders) a locked invisible file that I cannot delete. The whole folder starting ...
noirdesir's user avatar
4 votes
5 answers
16k views

How do I get Terminal to remember previous commands after closing window in SL 10.6.8?

Any way to enable scrollbacks after you quit the window? Even if the app itself is still running, closing the window and opening a new one doesn't work. I am SURE it used to work on my old Mac, but I ...
Dan's user avatar
  • 177
98 votes
5 answers
72k views

Is bash in OSX case-insensitive?

Are bash commands on OSX case insensitive? I type "which TR" and it shows /usr/bin/TR, though there is no such binary there. Same thing for other binaries, when capitalized. Or is Terminal.app maybe ...
verboze's user avatar
  • 1,138
1 vote
2 answers
3k 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 ...
Rob's user avatar
  • 11
4 votes
6 answers
8k 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 ...
user avatar
6 votes
1 answer
4k views

Why does my Terminal window close automatically? [closed]

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 ...
John's user avatar
  • 61
1 vote
2 answers
3k 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. ...
user avatar
4 votes
2 answers
2k 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.
blargh's user avatar
  • 86
1 vote
2 answers
305 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 | ...
Aliou's user avatar
  • 177
0 votes
2 answers
2k 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 ?
Aliou's user avatar
  • 177
4 votes
3 answers
9k 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 = "%B%m:%n ...
DarenW's user avatar
  • 5,143

1
124 125
126
127 128
130