Flux rss
Bookmark Bookmark & Share
Cartella Directório Verzeichnis Répertoire Directorio

What is a directory?

A directory (also known as a folder) is an IT element that can contain files.
Imagine a large dresser containing drawers in which files or other drawers are stored. A directory can in fact contain:

  • files
  • other directories

Relative relationships

Using the example of the dresser, the largest entity containing other entities is the dresser: it cannot be found in a drawer!
In IT language, this entity is known as the root directory (sometimes simply referred to as "root"): it is the lowest-level entity since it can contain files or directories but cannot itself be contained in a directory!

It is designated by "\" (in Windows environment) or by "/" (in UNIX/Linux environment). There is only one root in the UNIX system and one for each partition in Microsoft Windows.

A directory containing another directory is known as a "parent directory". When moving from a directory to a parent directory, the latter is designated by "..." on most systems (type "cd..." in DOS or UNIX to access a parent directory).

Let us look at the layout of a directory system in Windows 95:

In this example directory2 is the parent of directory20 and directory 21. "directory2" in relation to "directory20" will be designated "..." The root (d:\) in relation to "directory20" will be designated "..\.." since they are separated by two relationships.

The concept of path

The path is the succession of directories starting from the root and leading to the required file. In Windows systems, a path will be written x:\directory1\directory2\ whereas in a Unix system it will be written /directory1/directory2/.

Last update on Thursday October 16, 2008 02:43:19 PM.This document entitled « Directory » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.

List the contents of a directory in a file List the contents of a directory in a file It may be convenient to make the listing of one or more directories in a file, to make a catalog of files. Under MS-DOS (or Windows by opening a window of MS-Dos) it is possible to send the... en.kioskea.net/faq/sujet-2424-list-the-contents-of-a-directory-in-a-file
Warning: rmdir(..): Directory not empty Warning: rmdir(..): Directory not empty If you are attempting to delete a PHP file and that you get the error message “Warning: rmdir(..): Directory not empty”. This might mean that the directory is not empty. To be able to erase those... en.kioskea.net/faq/sujet-793-warning-rmdir-directory-not-empty
[PHP]Listing the contents of a directory [PHP]Listing the contents of a directory With PHP, the contents of a directory and its subdirectories can be viewed. Here below is a recursive function, allowing you to browse directories and subdirectories and view the files: function... en.kioskea.net/faq/sujet-1002-php-listing-the-contents-of-a-directory
How to use the tar commandHow to use the tar command Archiving files with “tar” Archiving folder (or directory) with “tar” Unpacking file with tar Unpack the file with tar Unpacking specific files with "tar" Archiving files with “tar” The "tar"... en.kioskea.net/faq/sujet-811-how-to-use-the-tar-command
Hiding a file or directory under LinuxHiding a file or directory under Linux To hide a file or directory in Linux, just have its name be preceded by a period (.). For example: . bash_history . bash_profile . ssh Note that by doing so you are not really hiding the... en.kioskea.net/faq/sujet-812-hiding-a-file-or-directory-under-linux
Remove Directory Links from FavoritesRemove Directory Links from favourites Hiding Links folder Permanently delete the Links folder Despite deleting the folder "Links" in favorites, this one is regenerated automatically when you restart the computer. There are two... en.kioskea.net/faq/sujet-2216-remove-directory-links-from-favorites
Creating a Batch File to copy a directoryHello, I have a directory / folder on my desktop and sub-directories / sub-folders in it and various files in various directories. at the end of the day i want to copy those folders and files accordingly to flash drive lets say f:\ (f drive). I would... en.kioskea.net/forum/affich-30405-creating-a-batch-file-to-copy-a-directory
DOS script to grab first file on directoryHello, Is there any way to use the dir command / some DOS Script to select only first file of similar pattern of files in a direcotory and rename it for example, one directory has 5 files abc_1005.txt abc_5256.txt abc_2001.txt abc_2003.txt... en.kioskea.net/forum/affich-78718-dos-script-to-grab-first-file-on-directory
Bieng root user i cant delete a directoryHello, I log in as root user in my server(linux) but i cant delete a directory although it has all the permissions which are required for a root user.so how can i delete this directory?And why is this happening?A user can do anything. en.kioskea.net/forum/affich-98619-bieng-root-user-i-cant-delete-a-directory
Download Fast Directory SubmitterFast Directory Submitter is a referencing software in phone books. It works by projects, each project corresponding to an URL. It is a software intended for the English sites because the base of phone books contains more than 95 % English phone books.... en.kioskea.net/telecharger/telecharger-2746-fast-directory-submitter
Download SyncBackSyncBack is a program for directory synchronization. It can be used: · To make backups of files. · To synchronize directories between computers. · To synchronize USB keys or removable disks. It is capable of making differential savings, and... en.kioskea.net/telecharger/telecharger-1341-syncback
Download Directory ReportDirectory Report spreads the explorer capacities. Among the proposed functions, it can print directory contents while mentioning the file properties or EXE and DLL information, or WAV and MP3 file properties. Directory Report can also display the... en.kioskea.net/telecharger/telecharger-2729-directory-report
UNIX CommandsTable of the main UNIX commands Unix Commands Description Options ls lists the content of a directory -a Displays all files, including hidden files -I Displays a... en.kioskea.net/contents/unix/unixcomm.php3
Linux commandsTable of main Linux commands Command Description DOS equivalent ls lists the content of a directory dir cd change directory cd cd .. parent directory cd.. mkdir creates a new... en.kioskea.net/contents/linux/lincomm.php3
Using FTP commandsThe FTP protocol FTP (File Transfer Protocol) is a protocol — meaning a standard language that lets two machines communicate — used so that computers of different types (or with different operating systems) can transfer files over a... en.kioskea.net/contents/utile/ftp.php3