Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 3 down vote accepted

One option would be to not create these files at all. See this thread

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

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 ? – J4cK Jun 10 '14 at 8:01

Just need to open a bash terminal and run:

ls *.py[co] >> .hidden


share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .