Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The lsof manpage says the following about the TYPE column.

TYPE is the type of the node associated with the file - e.g., GDIR, GREG, VDIR, VREG, etc.

Can someone please explain (or point me to a link which explains) what these mean. I have tried googling on these but all the links take me to the lsof man page only.

If you find a link, do tell me how you googled it :)

share|improve this question
up vote 3 down vote accepted

Types starting with V are virtual types. That is, there is no corresponding inode on any physical disk but only a vnode in a virtual filesystem (like /proc). It seems those types only belong to BSD-like systems (AIX, Darwin, FreeBSD, HPUX, Sun etc.) and won't occur on a Linux system. As with the non-virtual types, DIR stands for directory and REG for a regular file.

I couldn't find the meaning of GDIR and GREG as they even don't appear in the lsof source code. But I guess they just stand for the non-virtual (generic?) directories and files.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.