Blog Archives

#MacOsX : Terminal Cheat Sheet

If you are a *nix geek like me you can’t but love the command prompt.
One of the best tool to improve the plain old terminal is an utility called tmux. You can install through Homebrew.
Now, there are many commands to remember to play nicely with the terminal, and sometimes a little remind might be useful, that’s why cheat sheets exist.
Here is mine, enjoy.

#MacOsX : How Cut & Paste Works in Mac OS X

Yep, Mac world is only about Drag & Drop but if you feel nostalgic of PC’s world you can move files the old way, just do this:

  • selct file/files and hit

    Command + C

  • move to another location an hit

    Command + Option + V

#MacOsX : Reset NVRAM, PRAM and SMC

Sometimes after a software (system) or hardware upgrade even Macs can have some problems; if you have tried every solution without success you could try this.

Every Mac stores certain settings in a special memory area even if it is turned off. On Intel-based Macs, this is stored in memory known as NVRAM; on PowerPC-based Macs, this is stored in memory known as PRAM.

Resetting NVRAM and PRAM may solve lot of problems and could be required if you upgrade SSD or Mac firmware (more tips on SSDs here).

Another step to try is Resetting the System Management Controller (SMC). An SMC reset should only be attempted after all other standard troubleshooting has been performed.

 

 

#MacOSX : Taking Screenshots

You will be surprised but even without stamp key on the keyboard you can take screenshots whitout 3rd party apps! 😀

There are several keyboard combinations that can be used to take screenshots in Mac OS X. The SystemUIServer process handles these commands.

  • Command-Shift-3: take a screenshot of the screen, and save it as a file on the desktop.
  • Command-Shift-4, then select an area: take a screenshot of an area and save it as a file on the desktop.
  • Command-Shift-4, then space, then click a window: take a screenshot of a window and save it as a file on the desktop.
  • Command-Control-Shift-3: take a screenshot of the screen, and save it to the clipboard.
  • Command-Control-Shift-4, then select an area: take a screenshot of an area and save it to the clipboard.
  • Command-Control-Shift-4, then space, then click a window: take a screenshot of a window and save it to the clipboar.

From Mac OS X Leopard and later, the following keys can be held down while selecting an area (via Command-Shift-4 or Command-Control-Shift-4):

  • Space: to lock the size of the selected region and instead move it when the mouse moves.
  • Shift: to resize only one edge of the selected region.
  • Option: to resize the selected region with its center as the anchor point.

NOTE: different versions of Mac OS X have different formats for screenshots.

NOTE2: in Mac OS X 10.4 and later, the default screenshot format can be changed, by opening Terminal app and typing :
defaults write com.apple.screencapture type image_format
killall SystemUIServer

Where image_format is one of jpg, tiff, pdf, png, bmp or pict (among others). If you omit the second line, you will need to log out and in again for the change to take effect.