Useful bash commands: Difference between revisions
From RpWiki
Jump to navigationJump to search
New page: == Commands == === Change permissions on files and folders with find === find . -type f -exec chmod 664 {} \; find . -type d -exec chmod 755 {} \; |
add imagemagick |
||
| Line 4: | Line 4: | ||
find . -type f -exec chmod 664 {} \; | find . -type f -exec chmod 664 {} \; | ||
find . -type d -exec chmod 755 {} \; | find . -type d -exec chmod 755 {} \; | ||
=== Folder resize via imagemagick === | |||
for file in *.jpg; do convert $file -resize 1600x1600 /exportfoler/$file; done; | |||
Revision as of 19:30, 18 April 2010
Commands
Change permissions on files and folders with find
find . -type f -exec chmod 664 {} \;
find . -type d -exec chmod 755 {} \;
Folder resize via imagemagick
for file in *.jpg; do convert $file -resize 1600x1600 /exportfoler/$file; done;