Directory: Difference between revisions

From Hackepedia
Jump to navigationJump to search
mNo edit summary
reading directories within a program
 
Line 1: Line 1:
A directory is a container in a filesystem that holds files.  Directories have [[permissions|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.
A directory is a container in a filesystem that holds files.  Directories have [[permissions|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.

Latest revision as of 08:21, 17 July 2010

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.