All Topics  
Directory (file systems)

 

   Email Print
   Bookmark   Link






 

Directory (file systems)



 
 
In computing
Computing

Computing is usually defined as the activity of using and developing computer technology, computer hardware and computer software. It is the computer-specific part of information technology....
, a directory, folder
Folder

The term folder can refer to several different things:*File folder, a kind of folder that holds loose papers*Directory , a part of a computer file system often called a folder; see Directory #The folder metaphor...
, catalog, or drawer is a virtual container
Container

Container may refer to:* Packaging and labelling used to contain, store, and transport products, such as boxes, bottles, cans, etc.**See :Category:Containers for a more complete list ...
 within a digital file system
File system

In computing, a file system is a method for store and organize computer files and the data they contain to make it easy to find and access them....
, in which groups of files and other directories can be kept and organized.

A typical file system may contain thousands (or even hundreds of thousands) of directories. Files are kept organized by storing related files in the same directory. A directory contained inside another directory is called a subdirectory of that directory.






Discussion
Ask a question about 'Directory (file systems)'
Start a new discussion about 'Directory (file systems)'
Answer questions from other users
Full Discussion Forum



Encyclopedia


In computing
Computing

Computing is usually defined as the activity of using and developing computer technology, computer hardware and computer software. It is the computer-specific part of information technology....
, a directory, folder
Folder

The term folder can refer to several different things:*File folder, a kind of folder that holds loose papers*Directory , a part of a computer file system often called a folder; see Directory #The folder metaphor...
, catalog, or drawer is a virtual container
Container

Container may refer to:* Packaging and labelling used to contain, store, and transport products, such as boxes, bottles, cans, etc.**See :Category:Containers for a more complete list ...
 within a digital file system
File system

In computing, a file system is a method for store and organize computer files and the data they contain to make it easy to find and access them....
, in which groups of files and other directories can be kept and organized.

A typical file system may contain thousands (or even hundreds of thousands) of directories. Files are kept organized by storing related files in the same directory. A directory contained inside another directory is called a subdirectory of that directory. Together, the directories form a hierarchy
Hierarchy

A 'hierarchy' is an arrangement of items The word derives from the Greek language , from ?e?????? , "president of sacred rites, high-priest" and that from , "sacred" + , "to lead, to rule"....
, or tree structure.

Overview

A computer's file system can be visualized as a file cabinet, where high-level directories are represented by the drawers and lower-level subdirectories may be represented as file folders within the drawers.

Historically, and even on some modern embedded devices, the filesystems either have no support for directories at all or only have a flat directory structure, meaning subdirectories are not allowed; there is only a group of top-level directories each containing files. The first popular fully general hierarchical filesystem was that of UNIX
Unix

Unix is a computer operating system originally developed in 1969 by a group of American Telephone & Telegraph employees at Bell Labs, including Ken Thompson , Dennis Ritchie, Douglas McIlroy, and Joe Ossanna....
. This type of filesystem was an early research interest of Dennis Ritchie
Dennis Ritchie

Dennis MacAlistair Ritchie is an American computer science notable for his influence on C and other programming languages, and on operating systems such as Multics and Unix....
.

In modern times in Unix-like
Unix-like

A Unix-like operating system is one that behaves in a manner similar to a Unix system, while not necessarily conforming to or being certified to any version of the Single UNIX Specification....
 systems, especially Linux
Linux

Linux is a generic term referring to Unix-like computer operating systems based on the Linux kernel. Their development is one of the most prominent examples of free and open source software collaboration; typically all the underlying source code can be used, freely modified, and redistributed by anyone under the terms of the GNU GPL license...
, directory structure is defined by the Filesystem Hierarchy Standard
Filesystem Hierarchy Standard

The Filesystem Hierarchy Standard defines the main directories and their contents in most software systems using UNIX and Unix-like operating systems....
.

In many operating system
Operating system

An operating system is an interface between hardware and applications; it is responsible for the management and coordination of activities and the sharing of the limited resources of the computer....
s, programs have an associated current working directory in which they execute. Typically filenames accessed by the program are assumed to reside within this directory if the filenames are not specified with an explicit directory name.

Some operating systems restrict a user's
Computer User

Computer User is a computer magazine originally founded in 1982, and which after several owners and metamorphisis, is still in business today online as ....
 access to only their home directory
Home directory

In multi-user operating systems, a home directory is a directory which contains the personal Computer file of a given User of the system.Separating user data from system-wide data avoids redundancy and makes backups of important files relatively simple....
 or project directory, thus isolating their activities from all other users.

On Unix, directories are regarded as a type of file.

The folder metaphor

The name folder, presenting an analogy to the file folder
File folder

A file folder or folder is a kind of folder that holds loose papers together for organization and protection. File folders usually consist of a sheet of heavy paper stock or other thin, but stiff, material which is folded in half, and are used to keep paper documents....
 used in offices, and used originally by Apple Lisa
Apple Lisa

The Apple Lisa was a personal computer designed at Apple Computer, Inc. during the early 1980s.The Lisa project was started at Apple in 1978 and evolved into a project to design a powerful personal computer with a graphical user interface that would be targeted toward business customers....
, is used in almost all modern operating system
Operating system

An operating system is an interface between hardware and applications; it is responsible for the management and coordination of activities and the sharing of the limited resources of the computer....
s' desktop environments. Folders are often depicted with icon
Icon

An 'icon' is a religious work of art, most commonly a painting, from Eastern Christianity. More broadly the term is used in a wide number of contexts for an image, picture, or representation; it is a sign or likeness that stands for an object by signifying or representing it either concretely or by analogy, as in semiotics; by extension, ...
s which visually resemble physical file folders.

Strictly speaking, there is a difference between a directory which is a file system
File system

In computing, a file system is a method for store and organize computer files and the data they contain to make it easy to find and access them....
 concept, and the graphical user interface
Graphical user interface

A graphical user interface is a type of user interface which allows people to human-computer interaction such as computers; hand-held devices such as MP3 Players, Portable Media Players or Gaming devices; household appliances and office equipment....
 metaphor that is used to represent it (a folder). For example, Microsoft Windows uses the concept of special folders
Special Folders

On Microsoft Windows operating systems, Special Folders are folders which are presented to the user through an interface as an abstract concept, instead of an absolute folder path....
 to help present the contents of the computer to the user in a fairly consistent way that frees the user from having to deal with absolute directory paths, which can vary between versions of Windows, and between individual installations.

If you are referring to a container of documents, the term folder is more appropriate. If you are referring to the mechanism that tracks the document files, the term directory is the better choice.

See also

  • cd command
  • mkdir command
    Mkdir

    The mkdir command in the Unix, DOS, OS/2 and Microsoft Windows operating systems is used to make a new directory . In DOS, OS/2 and Windows the command is often abbreviated to md....
  • pushd and popd commands
    Pushd and popd

    In computing, pushd and popd are command in various Unix, DOS and Microsoft Windows command line interpreters such as Bash, cmd.exe, 4DOS/4NT and Windows PowerShell....
  • Root directory
    Root directory

    In computing file systems, the root directory is the first or top-most directory in a hierarchy. It can be likened to the root of a tree - the starting point where all branches originate....
     and the chroot
    Chroot

    A chroot on Unix operating systems is an operation that changes the apparent disk root directory for the current running process and its children....
     system call
  • Filename
    Filename

    A filename is a special kind of String used to uniquely identify a computer file stored on the file system of a computer. Some operating systems also identify directory in the same way....
  • Working directory
    Working directory

    In computing, the working directory of a process is a directory of a hierarchical file system, if any, dynamically associated with each process....
  • Web directory
    Web directory

    A web directory or link directory is a directory on the World Wide Web. It specializes in hyperlink to other web sites and Categorization those links....


External links

  • by The Linux Information Project (LINFO)