Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-12-2007, 01:13 PM   #1
LQ Newbie
Registered: Nov 2007
Posts: 7

Rep: Reputation: 0
filldir and dir.c


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,
Old 12-12-2007, 06:30 PM   #2
Registered: Nov 2006
Location: USA, CA
Distribution: RedHat, Debian
Posts: 202

Rep: Reputation: 31
If you don't want certain files to be listed, then just do:
ls -l | grep -v "file_i_do_not_want_to_see"
Old 12-12-2007, 07:43 PM   #3
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Macska, Why do you want to do this?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command to display /dir, /dir/sub, /dir/sub/files knockout_artist Linux - Newbie 9 10-25-2007 03:57 PM
Compress dir keep file/dir permissions powadha Linux - General 1 11-14-2006 08:07 PM
Q. moving /bin dir files to /dev dir?? Texas_student Linux - Software 2 03-27-2006 12:42 AM
Share configuratin dir (.dir) for 3 accounts on local computer LiNuXkOlOnIe Linux - Software 5 01-08-2006 04:36 AM
howto make a dir shared that is not in my home dir Schmurff Linux - Newbie 2 06-19-2004 08:54 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration