Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

How to print screen in Mac OS X

Answer:

1. To print the whole screen in Mac OS X, try

Press down Apple key ⌘ + Shift + 3 at the same time

2. To print an active window

Press down Apple key ⌘ + Shift + 4 at the same time

When you see the mouse changed to +, press the space key in your keyboard.

3. To print a portion of your screen

Press down Apple key ⌘ + Shift + 4 at the same time

When you see the mouse changed to +, move your mouse to select the portion .

How to make desktop icons snap to grid on Mac OSX

Answer:

To make desktop icons on Mac OSX snap to grid, follow the steps below:

1. Click anywhere on the desktop

2. Select "Show View Options"

3. At the row "Arrange By", select "Snap to Grid"

That's all what you need.

Suggested Mercurial .hgignore settings for XCode projects

Answer:

Save the following lines as .hgignore and put it under the root of your project root directory, Mercurial will ignore them automatically.

^build/*
\.mode1v3
\.pbxuser
\.DS_Store
^\.*

Install Git in Mac using MacPort

Answer:

To install Git in Mac using MacPort, following the method below:

1. Search if Git is available

# port search git

2. You will found the package named "git-core", go ahead to install it

# sudo port install git-core

That's all.

Copy the output from Mac OSX Terminal to clipboard

Answer:

To copy the output in Mac OSX Terminal to clipboard, you can use the the command pbcopy

# date | pbcopy

The paste it into your favorite editor.