<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mac Tricks &#187; shortcuts</title>
	<atom:link href="http://www.mactricks.net/category/shortcuts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mactricks.net</link>
	<description>A daily blog featuring Mac tricks, tips, shortcuts and downloads</description>
	<lastBuildDate>Wed, 21 Jul 2010 02:06:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>OS X Command Line</title>
		<link>http://www.mactricks.net/tips-tricks/os-x-command-line/</link>
		<comments>http://www.mactricks.net/tips-tricks/os-x-command-line/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 22:52:58 +0000</pubDate>
		<dc:creator>sergio</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[shortcuts]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">http://www.mactricks.net/?p=90</guid>
		<description><![CDATA[To many people the command line is a daunting thing that is not something to be tampered with. Believe me when i say that its time to put your fears behind you, and delve into the world of simplifying some of your basic tasks through the command line. You will be surprised to know how many useful [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-91" title="OS X Terminal Commands" src="http://www.mactricks.net/wp-content/uploads/2009/12/Screen-shot-2009-12-01-at-4.51.01-PM-150x150.png" alt="OS X Terminal Commands" width="100" height="100" />To many people the command line is a daunting thing that is not something to be tampered with. Believe me when i say that its time to put your fears behind you, and delve into the world of simplifying some of your basic tasks through the command line. You will be surprised to know how many useful utilities and functions can be performed in that little black box, many of which seem even simpler and more useful then their GUI counterparts. Ready, set, type!<span id="more-90"></span></p>
<p>To use the command line in OS X, browse to Applications -&gt; Utilities -&gt; Terminal. Once the box opens up, all you have to do is type in the appropriate command(s) and hit enter. Here are some commands that we think are really useful to know.</p>
<p><strong>SSH</strong></p>
<p>A gem found in many *nix distros, and every version of OS X, SSH allows you to remotely and securely administrate your (or any other) system. A basic usage would be &#8220;ssh 192.168.1.1 -l admin&#8221;. The &#8220;192.168.1.1&#8243; being the IP or domain you wish to connect to, &#8220;-l&#8221; meaning the next word is the login name, &#8220;admin&#8221; being the username. It will then prompt you for a password and voila, you are connected! For more ssh examples and functions, check out this <a href="http://www.stocksy.co.uk/articles/Mac/ssh_on_mac_os_x/">Mac ssh</a> article.</p>
<p><strong>Top</strong></p>
<p>Top is one of my personal favorite commands. Since OS X is based on *nix, top is obviously an included utility. It allows you to view all running processes, system resource usage, and much more. Give it a try, just type &#8220;top&#8221; into the Terminal.</p>
<p><strong>ifconfig</strong></p>
<p>ifconfig is another great *nix utility which allows you to view information regarding your network connections. It is by far the easiest and quickest way to get MAC addresses&#8217;s, IP addresses&#8217;s, and any other kind of networking info. Try it out, just type &#8220;ifconfig&#8221; into the Mac Terminal.</p>
<p><strong>softwareupdate</strong></p>
<p><span style="padding: 0px; margin: 0px;">This utility allows you  to perform the same function as Software Update&#8230; in the Apple menu. But instead it is done inside of the terminal rather then using the GUI. Type “softwareupdate -i -a” to install all available updates for your Mac, or just “softwareupdate -i -r&#8221; to install recommended updates only.</span></p>
<p><span style="padding: 0px; margin: 0px;">These of course, are only some of my favorite command line utilities. You can type &#8220;bash&#8221; to start the bash shell and you will have access to all the bash utilities. Here is a comprehensive list of functions and utilities available on the Mac.</span></p>
<pre>a
  alloc     List used and free memory
  awk       Find and Replace text within file(s)
b
  basename  Convert a full pathname to just a filename
  bash      Bourne-Again SHell
  bless     Set volume bootability and startup disk options.
  bzip      Compress or decompress files
c
  cal       Display a calendar
  cat       Display the contents of a file
  chflags   Change a file or folder's flags
  chgrp     Change group ownership
  chmod     Change access permissions
  chown     Change file owner and group
  chroot    Run a command with a different root directory
  cksum     Print CRC checksum and byte counts
  clear     Clear terminal screen
  cmp       Compare two files
  comm      Compare two sorted files line by line
  cp        Copy one or more files to another location
  cron      Daemon to execute scheduled commands
  crontab   Schedule a command to run at a later date/time
  cut       Divide a file into several parts
d
  date      Display or change the date &amp; time
  dc        Desk Calculator
  dd        Data Dump - Convert and copy a file
  defaults  Set preferences, show hidden files
  df        Display free disk space
  diff      Display the differences between two files
  diff3     Show differences among three files
  dig       DNS lookup
  dirname   Convert a full pathname to just a path
  diskutil  Disk utilities - Format, Verify, Repair
  ditto     Copy files and folders
  dot_clean Remove dot-underscore files
  drutil    Interact with CD/DVD burners
  dscacheutil Query or flush the Directory Service/DNS cache
  dscl      Directory Service command line utility
  du        Estimate file space usage
e
  ed        A line-oriented text editor (edlin)
  env       Set environment and run a utility
  expand    Convert tabs to spaces
  expect    Programmed dialogue with interactive programs
            Also see AppleScript
  expr      Evaluate expressions
f
  false     Do nothing, unsuccessfully
  fc        Fix command (history)
  fdisk     Partition table manipulator for Darwin UFS/HFS/DOS
  file      Determine file type
  find      Search for files that meet a desired criteria
  fmt       Reformat paragraph text
  fold      Wrap text to fit a specified width
  fsck      Filesystem consistency check and repair
  fsaclctl  Filesystem enable/disable ACL support
  fs_usage  Filesystem usage (process/pathname)
  ftp       Internet file transfer program
g
  GetFileInfo Get attributes of HFS+ files
  getopt    Parse positional parameters
  goto      Jump to label and continue execution
  grep      Search file(s) for lines that match a given pattern
  groups    Print group names a user is in
  gzip      Compress or decompress files
h
  head      Display the first lines of a file
  hdiutil   Manipulate iso disk images
  hostname  Print or set system name
i
  id        Print user and group names/id's
  info      Help info
  install   Copy files and set attributes
j
  join      Join lines on a common field
k
  kextfind  List kernel extensions
  kickstart Configure Apple Remote Desktop
  kill      Stop a process from running
l
  l         List files in long format (ls -l)
  last      Indicate last logins of users and ttys
  launchctl Load or unload daemons/agents
  ll        List files in long format, showing invisible files (ls -la)
  less      Display output one screen at a time
  lipo      Convert a universal binary
  ln        Make links between files (hard links, symbolic links)
  locate    Find files
  logname   Print current login name
  login     log into the computer
  lpr       Print files
  lprm      Remove jobs from the print queue
  lpstat    Printer status information
  ls        List information about file(s)
  lsregister Reset the Launch Services database
  lsbom     List a bill of materials file
  lsof      List open files
m
  man       Help manual
  mdfind    Spotlight search
  mdutil    Manage Spotlight metadata store
  mkdir     Create new folder(s)
  mkfifo    Make FIFOs (named pipes)
  more      Display output one screen at a time
  mount     Mount a file system
  mv        Move or rename files or directories
n
  net       Manage network resources
  netstat   Show network status
  networksetup Network and System Preferences
  nice      Set the priority of a command
  nohup     Run a command immune to hangups
  ntfs.util NTFS file system utility
o
  onintr    Control the action of a shell interrupt
  open      Open a file/folder/URL/Application
  osacompile Compile Applescript
  osascript Execute AppleScript
p
  passwd    Modify a user password
  paste     Merge lines of files
  pbcopy    Copy data to the clipboard
  pbpaste   Paste data from the Clipboard
  pico      Simple text editor
  ping      Test a network connection
  pkgutil   Query and manipulate installed packages
  plutil    Property list utility
  pmset     Power Management settings
  pr        Convert text files for printing
  printenv  Print environment variables
  ps        Process status
  pushd     Save and then change the current directory
q
  quota     Display disk usage and limits
r
  rcp       Copy files between machines
  reboot    Stop and restart the system
  rev       Reverse lines of a file
  rm        Remove files
  rmdir     Remove folder(s)
  rpm       Remote Package Manager
  rsync     Remote file copy - Sync file tree (also RsyncX)
s
  say       Convert text to audible speech
  screen    Multiplex terminal, run remote shells via ssh
  screencapture Capture screen image to file or disk
  sdiff     Merge two files interactively
  security  Administer Keychains, keys, certificates and the Security framework
  sed       Stream Editor
  setfile   Set attributes of HFS+ files
  shutdown  Shutdown or restart OS X
  sleep     Delay for a specified time
  softwareupdate System software update tool
  sort      Sort text files
  split     Split a file into fixed-size pieces
  stop      Stop a job or process
  su        Substitute user identity
  sudo      Execute a command as another user
  sum       Print a checksum for a file
  sw_vers   Print Mac OS X operating system version
  system_profiler  Report system configuration
  systemsetup Computer and display system settings
t
  tail      Output the last part of files
  tar       Tape ARchiver
  tee       Redirect output to multiple files
  textutil  Manipulate text files in various formats (Doc,html,rtf)
  time      Measure Program Resource Use
  touch     Change file timestamps
  tr        Translate, squeeze, and/or delete characters
  traceroute Trace Route to Host
  true      Do nothing, successfully
  tty       Print filename of terminal on stdin
u
  ufs.util  Mount/unmount UFS file system
  umask     Users file creation mask
  umount    Unmount a device
  uname     Print system information
  unexpand  Convert spaces to tabs
  uniq      Uniquify files
  units     Convert units from one scale to another
  users     Print login names of users currently logged in
  uuencode  Encode a binary file
  uudecode  Decode a file created by uuencode
  uuidgen   Generate a Unique ID (UUID/GUID)
  uucp      Unix to Unix copy
v
  vi        Text Editor
w
  wc        Print byte, word, and line counts
  where     Report all known instances of a command
  which     Locate a program file in the user's path
  who       Print all usernames currently logged on
  whoami    Print the current user id and name (`id -un')
  write     Send a message to another user
x
  xargs     Execute utility - passing arguments
  yes       Print a string until interrupted</pre>
<p>Let me know if you have any suggestions, i will add/correct as needed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mactricks.net/tips-tricks/os-x-command-line/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Intel Mac Startup Key Commands</title>
		<link>http://www.mactricks.net/tips-tricks/intel-mac-startup-key-commands/</link>
		<comments>http://www.mactricks.net/tips-tricks/intel-mac-startup-key-commands/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 05:12:38 +0000</pubDate>
		<dc:creator>sergio</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[shortcuts]]></category>
		<category><![CDATA[eject]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[optimize]]></category>
		<category><![CDATA[recover]]></category>
		<category><![CDATA[startup commands]]></category>

		<guid isPermaLink="false">http://www.mactricks.net/?p=82</guid>
		<description><![CDATA[Apple doesn&#8217;t exactly make it obvious that you can hold down keys to access or activate special functions during startup. Throughout the years people have used these to fix various issues with their Mac&#8217;s ranging from stuck discs to a computer that doesn&#8217;t boot. Some of these commands have changed throughout the years, while others [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-83" title="OS X Startup Commands" src="http://www.mactricks.net/wp-content/uploads/2009/11/home_key-150x150.jpg" alt="OS X Startup Commands" width="90" height="90" />Apple doesn&#8217;t exactly make it obvious that you can hold down keys to access or activate special functions during startup. Throughout the years people have used these to fix various issues with their Mac&#8217;s ranging from stuck discs to a computer that doesn&#8217;t boot. Some of these commands have changed throughout the years, while others have remained the same. Do keep in mind though, the following list is for Intel Mac&#8217;s only, some of these might work on a PPC Mac but we offer no guarantee&#8217;s.<span id="more-82"></span></p>
<p>Here&#8217;s the list, with the key combination on the left and the effect it has on the right.</p>
<ul>
<li>Option &#8211; Display all bootable volumes (Startup Manager)</li>
<li>Shift &#8211; <span>Perform Safe Boot</span> (start up in Safe Mode)</li>
<li>C &#8211; Start from a bootable disc</li>
<li>T &#8211; Start in FireWire target disk mode</li>
<li>N &#8211; Start from NetBoot server</li>
<li>X &#8211; Force Mac OS X startup (if non-Mac OS X startup volumes are present)</li>
<li>Command V &#8211; Start in Verbose Mode</li>
<li>Command S &#8211; Start in Single User Mode</li>
<li>Option Command P R (until you hear two beeps) &#8211; Reset NVRAM</li>
<li>Eject or F12 &#8211; Eject all removable media (DVD,Floppy,Etc)</li>
</ul>
<p>Know of any more? Let us know in the comments and we&#8217;ll add them to the list!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mactricks.net/tips-tricks/intel-mac-startup-key-commands/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Remove Duplicates in iTunes</title>
		<link>http://www.mactricks.net/tips-tricks/remove-duplicates-in-itunes/</link>
		<comments>http://www.mactricks.net/tips-tricks/remove-duplicates-in-itunes/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 18:04:44 +0000</pubDate>
		<dc:creator>sergio</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[shortcuts]]></category>
		<category><![CDATA[iTunes]]></category>
		<category><![CDATA[optimize]]></category>

		<guid isPermaLink="false">http://www.mactricks.net/?p=77</guid>
		<description><![CDATA[Sick of seeing duplicate songs in iTunes? It seems to happen all the time when i download mix tapes (free legal ones of course). Luckily for us, iTunes provides two features for removing duplicate songs that are really easy to use, and shouldn&#8217;t take too long (unless you have a lot of dupes). The first feature just looks [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-79" title="iTunes duplicate songs" src="http://www.mactricks.net/wp-content/uploads/2009/11/hear_me_now-150x150.jpg" alt="iTunes duplicate songs" width="100" height="100" />Sick of seeing duplicate songs in iTunes? It seems to happen all the time when i download mix tapes (free legal ones of course). Luckily for us, iTunes provides two features for removing duplicate songs that are really easy to use, and shouldn&#8217;t take too long (unless you have a lot of dupes). The first feature just looks for similar songs with a similar length and title, while the second is a bit more complicated and looks for exact duplicates, meaning the same name, album, length, etc. Here is how it works.<span id="more-77"></span></p>
<p><strong>Display duplicate songs in iTunes</strong></p>
<p>Navigate to &#8220;File -&gt; Show Duplicates&#8221; and iTunes will show you all similar songs, but not necessarily &#8221;exact duplicates&#8221;</p>
<p><img class="aligncenter size-full wp-image-78" title="iTunes show duplicates" src="http://www.mactricks.net/wp-content/uploads/2009/11/Screen-shot-2009-11-25-at-11.51.04-AM.png" alt="iTunes show duplicates" width="438" height="395" /></p>
<p><strong>Display EXACT duplicate songs in iTunes</strong></p>
<p>Just as easy as the above, but you must hold down the Alt / Option key while selecting Show Duplicates in the File menu.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mactricks.net/tips-tricks/remove-duplicates-in-itunes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Screenshots Explained</title>
		<link>http://www.mactricks.net/tips-tricks/screenshots/</link>
		<comments>http://www.mactricks.net/tips-tricks/screenshots/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 21:26:44 +0000</pubDate>
		<dc:creator>sergio</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Utilities]]></category>
		<category><![CDATA[shortcuts]]></category>
		<category><![CDATA[grab]]></category>
		<category><![CDATA[screenshot]]></category>

		<guid isPermaLink="false">http://www.mactricks.net/?p=1</guid>
		<description><![CDATA[If you&#8217;ve ever used Windows, you know taking a screenshot of your current desktop or application is as easy as hitting the &#8216;Print Screen&#8217; key. Unfortunatly, those of us familiar with the Mac operating system and Apple hardware have never had the luxury of such a key. The big guys haven&#8217;t left us hanging though, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-10 alignleft" title="OS X Screenshot" src="http://www.mactricks.net/wp-content/uploads/2009/11/screenshot.jpg" alt="OS X Screenshot" width="100" height="68" />If you&#8217;ve ever used Windows, you know taking a screenshot of your current desktop or application is as easy as hitting the &#8216;Print Screen&#8217; key. Unfortunatly, those of us familiar with the Mac operating system and Apple hardware have never had the luxury of such a key. The big guys haven&#8217;t left us hanging though, Mac actually features many more standard screenshot features then any other operating system out there.<span id="more-1"></span></p>
<p>The easiest way to take a screenshot on your Mac is to use the Grab application located in /Applications/Utilities/Grab. Once you have started Grab all you have to do is click on the Capture menu and select the option that best represents what you want to capture on your screen.</p>
<p>The slightly more advanced, but significantly more ergonomical way of taking screenshots, is to use keyboard shortcuts! Here are the shortcuts and their corresponding actions:</p>
<ul>
<li>Command-Shift-3: Take a screenshot of the screen then save it as a file on the desktop</li>
<li>Command-Shift-4, then select an area: Take a screenshot of an area and save it as a file on the desktop</li>
<li>Command-Shift-4, then space, then click a window: Take a screenshot of a window and save it as a file on the desktop</li>
<li>Command-Control-Shift-3: Take a screenshot of the screen then save it to the clipboard</li>
<li>Command-Control-Shift-4, then select an area: Take a screenshot of an area then save it to the clipboard</li>
<li>Command-Control-Shift-4, then space, then click a window: Take a screenshot of a window then save it to the clipboard</li>
</ul>
<p>You can also take a screenshot through the Terminal, by typing:</p>
<pre style="color: black; background-color: #f9f9f9; line-height: 1.1em; padding: 1em; border: 1px dashed #2f6fab;">screencapture -iW ~/Desktop/screen.jpg</pre>
<p>Depending on what version of OS X you have, the screenshot will be saved in a different format. In OS X 10.2 (Jaguar), the screenshot was saved as a JPEG (.jpg). In 10.3 (Panther) they changed it to PDF (.pdf). Later with 10.4 (Tiger) and on all screenshots are saved as PNG (.png).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mactricks.net/tips-tricks/screenshots/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
