What is the "/.vol" directory for?
--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Cool Puzzler LoFi
--
Chapters
00:00 What Is The &Quot;/.Vol&Quot; Directory For?
00:26 Accepted Answer Score 16
01:07 Thank you
--
Full question
https://superuser.com/questions/163941/w...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#macos #mac #path #logicaldrive
#avk47
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Cool Puzzler LoFi
--
Chapters
00:00 What Is The &Quot;/.Vol&Quot; Directory For?
00:26 Accepted Answer Score 16
01:07 Thank you
--
Full question
https://superuser.com/questions/163941/w...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#macos #mac #path #logicaldrive
#avk47
ACCEPTED ANSWER
Score 16
Per this page about invisible files on Mac OS X:
This pseudo-directory is used to access files by their ID number (aka inode number) rather than by name. For example, /.vol/234881034/105486 is file #105486 on volume #234881034.
You can find the volume id and inode using stat
. An example, using /etc/hosts
:
$ head -3 /etc/hosts
##
# Host Database
#
$ stat /etc/hosts
234881026 23347035 -rw-r--r-- 1 root wheel 0 1035 "Jul 15 10:11:35 2010" "May 30 20:55:10 2010" "May 30 20:55:11 2010" "May 30 20:47:32 2010" 4096 8 0 /etc/hosts
$ head -3 /.vol/234881026/23347035
##
# Host Database
#