LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
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
 
Old 12-12-2007, 05:30 PM   #2
rsashok
Member
 
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, 06:43 PM   #3
matthewg42
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?
 
  


Reply



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 02:57 PM
Compress dir keep file/dir permissions powadha Linux - General 1 11-14-2006 07:07 PM
Q. moving /bin dir files to /dev dir?? Texas_student Linux - Software 2 03-26-2006 11:42 PM
Share configuratin dir (.dir) for 3 accounts on local computer LiNuXkOlOnIe Linux - Software 5 01-08-2006 03:36 AM
howto make a dir shared that is not in my home dir Schmurff Linux - Newbie 2 06-19-2004 07:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:51 PM.

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