Home > Information Technology > File Management (Move, Delete, Copy, Find)

File Management (Move, Delete, Copy, Find)

Find any big files:
Do you maintain web server, and you worry if users trying to use your server to download movie file?
find . -size +60M

Find multiple filetypes:
find . -iname *.jpg -o -iname *.gif -o -iname *.pdf -o -iname *.png

Find then execute:
You want to search all .php files and then chmod to make them unreadable by other users?
find . -iname *.php -exec chmod 700 {} \;

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 

Trackbacks:0

Listed below are links to weblogs that reference
File Management (Move, Delete, Copy, Find) from Aji's Journal
TOP