How the tab command works in linux ?

i.e. it will complete the auto completion of the path by pressing only min. letters present in the path.

Where is the program for that in linux ?