Sometimes it’s annoying to access a directory with the folder name. Say I have a directory named
a b c d. Apart from using Tab, is there any way to access the folder without typing the name of the directory?
I know that Linux has a unique identifier every particular file. Can I use this to access the folder? I don’t know whether this can be actually done or how to do it.
I that think when Linux implements a filesystem, it compares two directory names’ uniqueness. So each directory must be unique in a space. But I think that it’s like a primary key in a database system. Is the primary key the name of the directory or is there some other unique identifier (perhaps some numbers stored “under the hood”)?
Try to think of this like a process. If you execute the command
ps on a terminal, it outputs a process list with the name and number of each process. You have to call that process with the process number. Similarly, is there a number for a directory so that you could call the directory with its number instead of calling it with its name?
On further investigation, I have found that each directory has a unique
inode. However, I have not so far found any built-in command to access a directory by its