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

0
votes
3answers
252 views

grep syntax issue on Lion

I have a text file and looking for the single line bird. Using OS X Lion and grep 2.5.1. this works: grep '^bird' file.txt but this doesn't grep '^bird$' file.txt There is not a blank space ...
3
votes
1answer
131 views

Where is running terminal program scrollback located

I had multiple terminal programs running at same time and Terminal stopped responding. Now I wonder if there is any chance to get those session output/scrollback files and save them.
6
votes
1answer
5k views

Are there any keyboard shortcuts to switch between tabs in terminal?

Are there any keyboard shortcuts to switch between tabs in terminal?
1
vote
1answer
1k views

How can I press escape on a Bluetooth keyboard with my iPhone?

I sometimes use a BlueTooth keyboard with my iPhone, which is lovely for writing emails, but I run into difficulties when using terminal on the iPhone - I like to edit files with vi(m), which requires ...
5
votes
6answers
2k 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 ...
3
votes
2answers
1k views

What control character do I send to the terminal to make it delete a full word at a time?

I recently discovered that sending \033[5D and \033[5C sends the character to move a full word at a time, making mac os x terminal almost as awesome as the default ubuntu and debian terminals. So ...
3
votes
1answer
67 views

Order of parameters for command-line tools [duplicate]

Possible Duplicate: Can command-line commands be made insensitive to order of filenames and options? It looks like the OS X built-in command line tools, such as ls, du etc are rather strict ...
1
vote
2answers
799 views

What is your preferred way to start a (shell) script from the GUI?

I was wondering what ways there are to start a (shell) script from the GUI, e.g. double-clicking an icon in Finder or launching via Spotlight. This is not about opening a terminal and "manually" ...
0
votes
1answer
2k views

Git: command not found during Git installation (Mac OSX 10.6)

I am trying to install Git on my Mac (OSX 10.6) following the official Git tutorial. I had no problem until I had to set my username and my email. Every time I tried I got "-bash: git: command not ...
1
vote
3answers
933 views

How do I send files from one Mac to another via Terminal?

Is there a way to send a file in Terminal from one Mac to another? If I have a file on Mac A and I want to send it to Mac B via Terminal on Mac A, how do I do this?
2
votes
2answers
2k views

Why won't Subversion remember certificates?

I'm using Terminal and committing some data to a remote SVN server... every time I get the same message about a new certificate, and I choose to "permanently" accept the cert and it works. However, ...
0
votes
1answer
2k views

How can I replace the nmblookup command on Lion? [duplicate]

Possible Duplicate: Where is nmblookup in Lion? In Snow Leopard, I used to use the command nmblookup -U 172.16.0.10 -R domainPC | grep '<00>' | awk '{print $1}' Blindly upgrading to ...
2
votes
2answers
218 views

Where do these Terminal commands come from?

I don't know any specific term for these Terminal commands, so i want to give an example: defaults write com.apple.dock itunes-notifications -bool TRUE With this command, you can enable an ...
2
votes
1answer
937 views

List of (activated) fonts with shell command in os x

Is here any shell command for getting the list of activated fonts? Mean something like: some_font_util -activated -format 'file: name' for getting a list of activated fonts in a form: ...
2
votes
1answer
2k views

Turn on bluetooth via terminal/command line

How can I turn on bluetooth via the terminal / the command line?
3
votes
3answers
572 views

Enable full-screen mode for applications on Lion

There some applications which I can not yet run in full-screen mode. I particularly would need the OSX Terminal app and possible the TextEdit. However, after the upgrade they remained the same, and ...
0
votes
3answers
629 views

Make vim read the vimrc from ~/.vim/vimrc

This may not be the best place to ask this question but I'm having trouble getting vim to read my vimrc file. If I have it in the home directory as ~/.vimrc then it ready just fine but if I move it ...
5
votes
2answers
625 views

Smarter Bash Tab Completion

As a recent switcher from Ubuntu (Well recent switch backer if that's a word) I'm finding myself in the command line a lot more than when I was a mac user before. One thing I really loved about Ubuntu ...
1
vote
2answers
263 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?
8
votes
2answers
4k views

How can I delete saved commands from Terminal?

As all of you know, Mac OS X stores all commands that run from Terminal in Terminal itself, however, I want to delete (for example) the last 3 commands from the terminal. How can I do this?
0
votes
2answers
144 views

Gnu-info page exists, but is visible from neither emacs nor terminal

After installing gnuplot on Lion using 'brew gnuplot', the gnuplot info page appears at /usr/local/Cellar/gnuplot/4.4.3/share/info/gnuplot.info But in the info index page (M-x info) in emacs, I see ...
4
votes
3answers
3k views

How can I remove Firefox using terminal?

I'm a beginner with Mac OS X. Would somebody please tell me how to fully uninstall Firefox using Terminal on Mac OS X Lion? I'm experiencing hangs and crashes with Firefox 5.0.1, so I want to remove ...
0
votes
2answers
396 views

How would I restore Spotlight search to my menu bar? (10.7)

For some inexplicable reason, I decided to delete (not hide) Spotlight from my Mac via a terminal command. I downloaded the 10.7.2 update, hoping it would fix this by redownloading Spotlight, but it ...
4
votes
2answers
13k views

How do I convert a suitcase font?

I have a font set - Type: Font Suitcase I am sure I have used a terminal command to convert it to a TTF or OTF. I don't really want to pay for software to do so. What is the best way of converting ...
18
votes
3answers
2k views

Is there a way to suppress badge counts and the dock icon bounce for Terminal.app in Lion?

With the new state saving features (which I want to keep), the dock notifications are more aggrivating to me in Lion. Can I suppress the bounce and/or the notification badge functions? While I like ...
3
votes
2answers
2k views

How to clean ._AppleDouble files from unix packages?

Introduction Here's my problem. On occasion, I create the odd deb package using dpkg-deb (e.g., dpkg-deb --build "folder" file.deb). The problem is that any file with an extended attribute, carries ...
4
votes
1answer
490 views

Force Spotlight to index a normally un-indexed folder

Spotlight only indexes a limited number of folders and doesn't index all of the files on your system. This makes sense and for the average user this usually isn't a problem. However, I recently ...
2
votes
1answer
561 views

How can I kill or refresh Desktop Wallpaper with a Terminal command?

Is there a command for refreshing the Display Settings? Or, in specific, refreshing the Desktop Wallpaper?
3
votes
3answers
3k 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 = ...
3
votes
2answers
2k views

How can I add standard users to the print managers group?

I'm sysadmin for a small company; my users are on 10.6.8 (iMacs) and do not have admin rights for various reasons. The only times this is annoying is when a print job jams or otherwise does not go ...
3
votes
1answer
3k views

How do I create a new user in Lion from the Terminal?

The older method of: dscl . -create /Users/username doesn't work because /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist can't be found. From what I gather, OSX Lion doesn't use ...
7
votes
3answers
551 views

Any way to make Cmd-D “delete next word” rather than “split-pane” in Terminal

I am so used to using ⌘D to "delete-next-word" in emacs and xterm, that I automatically hit it in Terminal all the time, which rather annoyingly (to me, at least) causes the pane to split instead. ...
0
votes
2answers
1k 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 ?
1
vote
2answers
518 views

How do you list items with and without labels from the terminal?

Is there a command that can tell the label status (labels as applied in the info menu in the finder cmd+i) of an item from the command-line in OS X? Essentially, I just want to list all the items with ...
0
votes
1answer
829 views

Mount root of SMB Server

I have a Windows server that I want to backup all the Shares through a script automatically to my MacBook Pro running OSX 10.6.8. There is no common folder all the shares are in, they are just mounted ...
1
vote
0answers
93 views

My hostname is now out of sync

My hostname got out of sync with what it is set to in System Preferences - Sharing. From what I've read this is most likely related to a router having the ability to update my hostname. Anyhow, I've ...
4
votes
1answer
14k 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 ...
4
votes
1answer
663 views

Accented characters and terminal redirection

I'm having problems dealing with accented characters in file names in the Terminal. Consider the following: $ touch leão.png $ ls > test.txt $ open -a TextWrangler test.txt The accented ...
3
votes
3answers
7k views

Ping all IPs in LAN

How would I find out all the devices on my LAN by pinging them all in terminal? What would the code be?
5
votes
2answers
1k views

View laptop hardware statistics

How can I return the temperatures, fan speeds, etc, using Terminal?
5
votes
2answers
3k views

How can I install themes for Terminal?

I am rather new to Mac, but I am trying to get familiar with Terminal and I want to change its theme. I am a bit confused on how to go about installing Solarized themes I am seeing so much of around ...
2
votes
2answers
1k views

How do I undo overwriting my /usr/local/bin folder?

I think i overwrote my /usr/local/bin folder - any way to undo this? I was installing MacVim and did the following command: sudo mv mvim /usr/local/bin Now instead of copying mvim into my ...
2
votes
2answers
2k views

How can I exit “bash”?

I don't know how to get my .profile aliases back in to the terminal every time I try them, this error massage comes up: apaw:~ apaw$ cdp -bash: cdp: command not found How do i exit this -bash? I ...
0
votes
1answer
2k views

How do I use arguments together with bash aliases

Today, I learned the very handy trick: man [some command] -t | open -f -a Preview I'd like to create an alias in my .bash_profile file as a shortcut. In order for this to work, I need to pass an ...
4
votes
1answer
2k views

How can the 'mail' command be used?

I've had my first Mac for about five months now. Though, even when I was a full-on Windows user, I never did things through a command line; I was pretty much for the GUI all-the-way.. But now that I ...
1
vote
1answer
86 views

Sudo with Sidekick

Sidekick is a helpful little tool which adjusts the system settings based on geographical location. I added an action which will execute a sudo command-line command. The problem is that the Terminal ...
1
vote
1answer
450 views

Improvement to 'grep -h “BSD process name” /Library/Logs/DiagnosticReports/* | sort | uniq -c'

To track down the culprit for the frequent crashes of Lion, I ran: grep -h "BSD process name" /Library/Logs/DiagnosticReports/* | sort | uniq -c which produced: 1 BSD process name corresponding ...
0
votes
1answer
50 views

Customizing the shell prompt causes some quirks

I have customized the shell prompt with the following code in my ~/.bash_profile, but there is one quirk left I can't seem to fix: export PS1="\u:\[\e[32;1;32m\W\e[m\] \$ " (code is also on github) ...
0
votes
1answer
1k views

Change PHP $PATH setting?

How to change PHP $PATH setting? I am using MAMP 2.x, my terminal for PHP command is already set to the MAMP PHP 5.3.x, but now I want to change to PHP 5.2.x I have done this before, but i forget ...
4
votes
3answers
4k views

How do I use FTP via the command line to download all files?

I tried to use Filezilla and Cyberduck for file transfer over a simple FTP server. The problems I have is: Filezilla: When I use it for file transferring, I check the "Activity Monitor", the "% CPU" ...