LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   filldir and dir.c (https://www.linuxquestions.org/questions/linux-newbie-8/filldir-and-dir-c-606332/)

Macska 12-12-2007 12:13 PM

filldir and dir.c
 
Hi,

When I do the ls command or the ls -a command I do not want certian
to be listed. I cannot solve this problem by modifying the ls command. What I think I can do is in fs/ext3/dir.c, set a flag to prevent the file from displaying if the name of the filname in the inode equals a certain value. I thought filldir() could do this for me?

What does filldir() do in linux?
And is their a function in dir.c that can prevent the file from being visually displayed (ie make the file invisible)?

I hope someone can help me.

Thank you,
Macska

rsashok 12-12-2007 05:30 PM

If you don't want certain files to be listed, then just do:
ls -l | grep -v "file_i_do_not_want_to_see"

matthewg42 12-12-2007 06:43 PM

Macska, Why do you want to do this?


All times are GMT -5. The time now is 12:02 AM.