Linux

Delete All base on filename extension in folder and subfolders

Using Terminal and Find command. find . -iname ‘*.jpg’ -type f -exec…

Using Terminal and Find command.

find . -iname '*.jpg' -type f -exec rm -f {} \;

This command starts in the current directory, recursing through the entire subtree, looking for files only that end with ‘.jpg’. It will delete any such files.

find – the find program
. – search the subtree starting in the current directory
-iname ‘*.jpg’ – find all elements that match the shell pattern ‘*.jpg’. This should be done case-INsensitively
-type f – only match files
-exec rm -f {} \; – execute the command “rm -f {}” for each matched file, where ‘{}’ is replaced with the name of the matched file.

Also adding an -delete it should do the same.

find /yourdirectory -iname '*.jpg' -delete

OS X Mountain Lion

Show hidden files Mac OS X 10.8 Mountain Lion

NOTE: If the following command didn’t work, just simply change TRUE/FALSE to…

NOTE: If the following command didn’t work, just simply change TRUE/FALSE to YES/NO.

To enable hidden files/folders in finder windows:

  1. Open Finder
  2. Open the Utilities folder
  3. Open a terminal window
  4. Copy and paste the following line in:
    defaults write com.apple.finder AppleShowAllFiles TRUE
  5. Press return
  6. Now hold ‘alt’ on the keyboard and right click on the Finder icon
  7. Click on Relaunch
You should find you will now be able to see any hidden files or folders. One you are done, perform the steps above however, replace the terminal command in step 4 with:
defaults write com.apple.finder AppleShowAllFiles FALSE
Access and Use Emoji in Mac OS X

Access and Use Emoji in Mac OS X

Emoji are extremely popular picture characters and emoticons that are an integral…

Access and Use Emoji in Mac OS X
Access and Use Emoji in Mac OS X

Emoji are extremely popular picture characters and emoticons that are an integral part of Japanese tech culture and communication, and now with OS X Lion onward (yes, Mountain Lion and 10.9 too), the Emoji character set is available to everyone on a Mac regardless of your localization settings. They’re quickly taking the world by storm with their inclusion on the iPhone and iPad keyboards as well, and using them on the Mac is a fun way to emphasize dialog and messaging between people. Some of the characters are pretty funny so even if you have no intention on using them they’re fun to browse through.

Install OS X Snow Leopard in VMware Windows 7

The following step by step guide will help you in installing Mac…

The following step by step guide will help you in installing Mac OS X 10.6 Snow Leopard as a guest virtual machine in Windows 7. You’ll need to have a system with an Intel processor which supports hardware virtualization, original OS X Snow Leopard retail disk, VMware Workstation 7 and Windows 7, Vista or XP installed as host operating system. If you meet all these requirements, you can then install OS X Snow Leopard as a VM under Windows and can enjoy the best of both worlds.

How to delete a Boot Camp partition

If you’ve installed Windows via Boot Camp, and now want to delete…

If you’ve installed Windows via Boot Camp, and now want to delete it and restore the space to your main Mac hard drive, this brief tutorial will guide you through the steps to do just that.

It’s actually quite easy to remove the Windows drive and reclaim all the hard drive space, the only “problem” is that Apple doesn’t make it an obvious process.

NOTE: by deleting your Windows Boot Camp partition, you will of course be deleting all of the data on that partition. Make sure to back up anything on your “Windows drive” before you proceed. Your OS X partition will not be erased and you won’t lose any data from it.