$ find <directory name> -name '*.pyc' -delete
#Search
$ find ~/project -name *.pyc
/Users/xxx/project/django1.5/mysite/mysite/__init__.pyc
/Users/xxx/project/django1.5/mysite/mysite/settings.pyc
/Users/xxx/project/django1.5/mysite/mysite/urls.pyc
/Users/xxx/project/django1.5/mysite/mysite/wsgi.pyc
#Delete
$ find ~/project -name *.pyc -delete
#Search
$ find ~/project -name *.pyc
None
Recommended Posts