Directory

From Hackepedia
Revision as of 08:21, 17 July 2010 by 91.33.230.191 (talk) (reading directories within a program)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

A directory is a container in a filesystem that holds files. Directories have permission like files but must have the execute bit set in order for a program or human to cd into it and list its contents.

Programming

See the opendir(3) manpage on how to read directories within a C program.