Skip to content

Instantly share code, notes, and snippets.

@xeoncross
Created May 4, 2011 18:33
Show Gist options
  • Save xeoncross/955732 to your computer and use it in GitHub Desktop.
Save xeoncross/955732 to your computer and use it in GitHub Desktop.
Linux Commands
// chmod only files (leaving directories as-is)
find . -type f -exec chmod 644 {} \;
// CHMOD only directories (leave files as-is)
find . -type d -exec chmod 755 {} \;
// Convert a folder of PSD images to PNG (or JPG) previews (requires ImageMagick to be installed)
convert *.psd[0] -set filename:orig %t %[filename:orig].png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment