i am tring to add a new feature to bash and the job need a func to get the directory name from the given inode value so how to got this work? i mean if there\'s some builtin fu
List the directory and get the inode of ..
then list that and find the name of the file there that has the inode you are looking for.
This is impossible without searching through the filesystem for a dir that contains a file with the given inode. Filenames are named references to inodes with no backlinks.