Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to hide every .pyc file from Nautilus. I use Ubuntu 10.04.

What could I do?

share|improve this question
    
It sounds like you're trying to solve a completely different problem which has nothing to do with hiding files at all. –  Ignacio Vazquez-Abrams Oct 18 '10 at 17:32
    
"rm -r *.pyc" would "hide" all those pesky files and free up some space at the same time. Pity they'd reappear next time you ran the program. –  Mokubai Oct 18 '10 at 17:32
add comment

2 Answers

up vote 2 down vote accepted

One option would be to not create these files at all. See this thread http://stackoverflow.com/questions/154443/how-to-avoid-pyc-files

You can also quickly delete these files from Nautilus by pressing ctrl+s, entering *.pyc pattern and hitting delete key.

share|improve this answer
    
Sounds very acceptable, thanks. –  juanefren Oct 19 '10 at 17:00
add comment

You can add all the .pyc filenames to a .hidden file in the same directory. Requires some maintenance, but if you're like me you do a lot more modifying of existing files than creating new ones.

share|improve this answer
    
Does this work on Mac OS or only Linux ? –  Trickster Jun 10 at 8:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.