Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8703245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:50:11+00:00 2026-06-13T02:50:11+00:00

Does linux/Ubuntu OS creates a table, which keeps the entry of every file with

  • 0

Does linux/Ubuntu OS creates a table, which keeps the entry of every file with its absolute address that is stored on the hard drive?

Just curious to know, because I am planning to make a file searcher program.

I know there are terminal commands like find etc, but as I will program in C I was thinking if there any such thing Ubuntu OS does, if so, how can I access that table?

Update:

As some people mentioned there is no such thing, then If I want to make a file searcher program, I would have to search each and every folder of every directory, starting program root directory. The resultant program will be very sluggish and will perform poorly! So is there a better way? Or my way is good!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T02:50:12+00:00Added an answer on June 13, 2026 at 2:50 am

    The “thing” you describe is commonly called a file system and as you may know there’s a choice of file systems available for Linux: ext3, ext4, btrfs, Reiser, xfs, jffs, and others.

    The table you describe would probably map quite well onto the inode-directory combo.

    From my point of view, the entire management of where files are physically located on the harddisk is none of the user’s business, it’s strictly the operating system’s domain and not something to mess with unless you have an excellent excuse (like you’re writing a data recovery program) and very deep knowledge of the file system(s) involved. Moreover, in most cases a file’s storage will not be contiguous, but spread over several locations on the disk (fragments).

    But the more important question here is probably: what exactly do you hope to achieve by finding files this way?

    EDIT: based on OP’s comment I think there may be a serious misunderstanding here – I can’t see the link between absolute file addresses and a file searcher, but that may be due to a fundamental difference between our respective understanding of “absolute address” in the context of a file system.

    If you just want to look at all files in the file system you can either

    1. perform a recursive directory read or
    2. use the database prepared by updatedb as suggested by SmartGuyz

    As you want to look into the files anyways – and that’s where almost all runtime will be spent on – I can’t think of any advantage 2) would have over 1) and 2) has the disadvantage to have an external dependency, in casu the file prepared by updatedb must exist and be very fresh.

    An SO question speaking about more advanced ways of traversing directories than good old opendir/readdir/closedir : Efficiently Traverse Directory Tree with opendir(), readdir() and closedir()

    EDIT2 based on OP’s question addendum: yes, traversing directories takes time, but that’s life. Consider the next best thing, ie locate and friends. It depends on a “database” that will be updated regularly (typically once daily), so all files that were added or renamed after the last scheduled update will not be found, and files that were removed after the last scheduled update will be mentioned in the database although they don’t exist anymore. Assuming locate is even installed on the target machine, something you can’t be sure of.

    As with most things in programming, it never hurts to look at previous solutions to the same problem, so may I suggest you read the documentation of GNU findutils?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is a process in Linux (Ubuntu) that opens a file for reading but
I want to trace the modification history of a specific file. Does linux have
What does the Linux /proc/meminfo Mapped topic mean? I have seen several one-liners that
The linux file command does a very good job in recognising file types and
I have a problem which appears when using Ubuntu Linux/Gnome, but seemingly not on
I've found that my test application does not generate a correct dump file when
In a repository that was created in Ubuntu Linux and compiled under OpenJDK 6,
I'm trying to compile a .cpp file using g++ in Linux Ubuntu 10.10 and
Does linux have commands allow me to push my regularly used commands into a
Does Linux automatically re-claim all memory used by an applications immediately? If so then

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.