Knowledge

Directory (computing)

Source 📝

214: 20: 138: 328: 276:
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. Many operating systems also have the concept of "smart folders"
201:, Unix systems treat directories as a type of file. Caveats include not being able to write to a directory file except indirectly by creating, renaming and removing file system objects in the directory and only being able to read from a directory file using directory-specific library routines and 97:
are often used to describe the relationship between a subdirectory and the directory in which it is cataloged, the latter being the parent. The top-most directory in such a filesystem, which does not have a parent of its own, is called the
157:, meaning subdirectories were not supported; there were only a group of top-level directories, each containing files. In modern systems, a directory can contain a mix of files and subdirectories. 141:
Diagram of a hierarchical directory tree. The root directory is here called "MFD", for Master File Directory. Usually a file can only be in one directory at a time, but here File 2 is
175:
in which they execute. Typically, file names accessed by the program are assumed to reside within this directory if the file names are not specified with an explicit directory name.
300:
refers to the way a structured list of document files and folders are stored on the computer. The distinction can be due to the way a directory is accessed; on Unix systems,
569: 186:
or project directory, thus isolating their activities from all other users. In early versions of Unix the root directory was the home directory of the
544: 281:
that reflect the results of a file system search or other operation. These folders do not represent a directory in the file hierarchy. Many
734: 234: 285:
allow the creation of folders to organize email. These folders have no corresponding representation in the filesystem structure.
577: 1137: 900: 1142: 622: 1132: 943: 433: 389:
For local filesystems, DNLC entries normally expire only under pressure from other more recent entries. For
339: 727: 358:
Operating systems that support hierarchical filesystems (practically all modern ones) implement a form of
1077: 876: 786: 531:
The path specifies the disk name, or location, and all of the drawers that lead to the specified file.
1084: 681: 888: 261: 78: 1089: 796: 781: 720: 656: 390: 308: 1104: 1019: 953: 776: 363: 213: 8: 993: 983: 933: 423: 154: 71: 81:(that is, one in which files and directories are organized in a manner that resembles a 19: 988: 978: 871: 599: 623:"Organization and Retrieval of Records Generated in a Large-Scale Engineering Project" 1111: 864: 453: 359: 269: 172: 153:, the file systems either had no support for directories at all or had only a "flat" 24: 1067: 960: 948: 926: 791: 630: 367: 242: 168: 161: 1057: 1009: 548: 394: 198: 150: 106: 397:
is necessary to ensure that entries have not been invalidated by other clients.
1024: 970: 883: 833: 828: 648: 497: 487: 448: 443: 438: 278: 273: 183: 82: 67: 137: 50:, and possibly other directories. On many computers, directories are known as 1126: 1094: 1036: 1029: 859: 743: 477: 246: 179: 47: 1099: 1072: 1062: 854: 808: 467: 312: 305: 282: 118: 634: 938: 823: 813: 771: 757: 406: 257: 230: 202: 122: 77:
Files are organized by storing related files in the same directory. In a
74:
that lists the phone numbers of all the people living in a certain area.
43: 327: 921: 238: 233:
used in offices, and used in a hierarchical file system design for the
126: 125:
as the desktop environment – is "inode/directory". This is not an
706: 1014: 895: 818: 766: 761: 187: 142: 110: 63: 35: 849: 803: 428: 712: 59: 27: 1052: 472: 85:), a directory contained inside another directory is called a 482: 383: 114: 160:
A reference to a location in a directory system is called a
371: 113:
systems – including but not limited to systems using
682:"Close-To-Open Cache Consistency in the Linux NFS Client" 492: 218: 190:, but modern Unix usually uses another directory such as 245:' desktop environments. Folders are often depicted with 46:
cataloging structure which contains references to other
304:
is usually referred to as a directory when viewed in a
627:
Proceedings of the Eastern Joint Computer Conference
1124: 620: 249:which visually resemble physical file folders. 237:(ERMA) Mark 1 published in 1958 as well as by 728: 735: 721: 529:. Commodore-Amiga. July 1991. p. 46. 602:. The Linux man-pages project. 2021-03-22 264:metaphor that is used to represent it (a 709:by The Linux Information Project (LINFO) 315:, users may sometimes call it a folder. 235:Electronic Recording Machine, Accounting 212: 205:that return records, not a byte-stream. 136: 18: 16:File system structure for locating files 542: 109:media type for directories within many 1125: 676: 674: 311:, but if accessed through a graphical 149:Historically, and even on some modern 716: 621:Barnard III, G. A.; Fein, L. (1958). 70:. The name derives from books like a 649:""Xerox Star User Interface (1982)"" 412: 322: 671: 30:window showing a directory listing. 13: 742: 208: 178:Some operating systems restrict a 14: 1154: 700: 145:so it appears in two directories. 600:"readdir(3) — Linux manual page" 326: 252:There is a difference between a 659:from the original on 2021-12-21 318: 296:is more appropriate. The term 241:, is used in almost all modern 229:, presenting an analogy to the 901:Hidden file / Hidden directory 641: 614: 592: 562: 543:Leonard, Thomas (2018-10-02). 536: 518: 378:(DNLC), although it is called 374:world, this is usually called 171:, programs have an associated 1: 944:Filesystem Hierarchy Standard 574:Behavior Genetics Association 511: 434:Filesystem Hierarchy Standard 7: 1078:Comparison of file managers 877:List of filename extensions 545:"Shared MIME-info Database" 400: 376:Directory Name Lookup Cache 132: 10: 1159: 127:IANA registered media type 66:or the traditional office 1085:File system fragmentation 1045: 1002: 969: 909: 842: 750: 576:. c. 2002. Archived from 527:Using The AMIGA Workbench 288:If one is referring to a 217:Sample folder icon (from 889:Extended file attributes 797:Proprietary file formats 262:graphical user interface 79:hierarchical file system 1138:File system directories 1090:File-system permissions 707:Definition of directory 525:"Chapter 1: Tutorial". 1143:File system management 570:"Everything is a File" 290:container of documents 222: 146: 31: 1133:Computer file systems 635:10.1109/AFIPS.1958.75 216: 182:access only to their 140: 22: 1105:File synchronization 954:Semantic file system 777:List of file formats 391:network file systems 272:uses the concept of 934:Directory structure 551:. Non-regular files 424:Directory structure 395:coherence mechanism 155:directory structure 72:telephone directory 872:Filename extension 655:. 28 August 2009. 338:. You can help by 223: 194:for this purpose. 147: 32: 1120: 1119: 1112:File verification 865:Filename mangling 792:Open file formats 580:on March 10, 2012 508: 507: 454:Working directory 356: 355: 270:Microsoft Windows 268:). For example, 260:concept, and the 243:operating systems 173:working directory 169:operating systems 25:Microsoft Windows 1150: 1068:Data compression 949:Grid file system 927:Temporary folder 917:Directory/folder 737: 730: 723: 714: 713: 694: 693: 691: 689: 684:. Citi.umich.edu 678: 669: 668: 666: 664: 645: 639: 638: 618: 612: 611: 609: 607: 596: 590: 589: 587: 585: 566: 560: 559: 557: 556: 540: 534: 533: 522: 413: 370:lookups. In the 351: 348: 330: 323: 303: 197:In keeping with 193: 151:embedded systems 23:Screenshot of a 1158: 1157: 1153: 1152: 1151: 1149: 1148: 1147: 1123: 1122: 1121: 1116: 1058:File comparison 1041: 1010:File descriptor 998: 965: 905: 838: 782:File signatures 746: 741: 703: 698: 697: 687: 685: 680: 679: 672: 662: 660: 647: 646: 642: 619: 615: 605: 603: 598: 597: 593: 583: 581: 568: 567: 563: 554: 552: 549:X Desktop Group 541: 537: 524: 523: 519: 514: 509: 403: 352: 346: 343: 336:needs expansion 321: 301: 279:virtual folders 274:special folders 211: 209:Folder metaphor 199:Unix philosophy 191: 135: 107:freedesktop.org 17: 12: 11: 5: 1156: 1146: 1145: 1140: 1135: 1118: 1117: 1115: 1114: 1109: 1108: 1107: 1102: 1092: 1087: 1082: 1081: 1080: 1070: 1065: 1060: 1055: 1049: 1047: 1043: 1042: 1040: 1039: 1034: 1033: 1032: 1027: 1017: 1012: 1006: 1004: 1000: 999: 997: 996: 991: 986: 981: 975: 973: 967: 966: 964: 963: 958: 957: 956: 951: 946: 936: 931: 930: 929: 924: 913: 911: 907: 906: 904: 903: 898: 893: 892: 891: 884:File attribute 881: 880: 879: 869: 868: 867: 862: 857: 846: 844: 840: 839: 837: 836: 834:Zero-byte file 831: 829:Temporary file 826: 821: 816: 811: 806: 801: 800: 799: 794: 789: 784: 779: 769: 764: 754: 752: 748: 747: 744:Computer files 740: 739: 732: 725: 717: 711: 710: 702: 701:External links 699: 696: 695: 670: 640: 613: 591: 561: 535: 516: 515: 513: 510: 506: 505: 501: 500: 498:tree (command) 495: 490: 488:pushd and popd 485: 480: 475: 470: 464: 463: 458: 457: 456: 451: 449:Virtual folder 446: 444:Root directory 441: 439:Home directory 436: 431: 426: 420: 419: 411: 410: 409: 402: 399: 354: 353: 333: 331: 320: 317: 210: 207: 184:home directory 134: 131: 68:filing cabinet 48:computer files 28:command prompt 15: 9: 6: 4: 3: 2: 1155: 1144: 1141: 1139: 1136: 1134: 1131: 1130: 1128: 1113: 1110: 1106: 1103: 1101: 1098: 1097: 1096: 1095:File transfer 1093: 1091: 1088: 1086: 1083: 1079: 1076: 1075: 1074: 1071: 1069: 1066: 1064: 1061: 1059: 1056: 1054: 1051: 1050: 1048: 1044: 1038: 1037:Symbolic link 1035: 1031: 1028: 1026: 1023: 1022: 1021: 1018: 1016: 1013: 1011: 1008: 1007: 1005: 1001: 995: 992: 990: 987: 985: 982: 980: 977: 976: 974: 972: 968: 962: 959: 955: 952: 950: 947: 945: 942: 941: 940: 937: 935: 932: 928: 925: 923: 920: 919: 918: 915: 914: 912: 908: 902: 899: 897: 894: 890: 887: 886: 885: 882: 878: 875: 874: 873: 870: 866: 863: 861: 860:Long filename 858: 856: 853: 852: 851: 848: 847: 845: 841: 835: 832: 830: 827: 825: 822: 820: 817: 815: 812: 810: 807: 805: 802: 798: 795: 793: 790: 788: 785: 783: 780: 778: 775: 774: 773: 770: 768: 765: 763: 759: 756: 755: 753: 749: 745: 738: 733: 731: 726: 724: 719: 718: 715: 708: 705: 704: 683: 677: 675: 658: 654: 650: 644: 636: 632: 628: 624: 617: 601: 595: 579: 575: 571: 565: 550: 546: 539: 532: 528: 521: 517: 504: 499: 496: 494: 491: 489: 486: 484: 481: 479: 478:dir (command) 476: 474: 471: 469: 466: 465: 461: 460: 459: 455: 452: 450: 447: 445: 442: 440: 437: 435: 432: 430: 427: 425: 422: 421: 417: 416: 415: 414: 408: 405: 404: 398: 396: 392: 387: 385: 381: 377: 373: 369: 365: 361: 350: 347:December 2013 341: 337: 334:This section 332: 329: 325: 324: 316: 314: 310: 307: 299: 295: 291: 286: 284: 283:email clients 280: 275: 271: 267: 263: 259: 256:, which is a 255: 250: 248: 244: 240: 236: 232: 228: 220: 215: 206: 204: 200: 195: 189: 185: 181: 176: 174: 170: 165: 163: 158: 156: 152: 144: 139: 130: 128: 124: 120: 116: 112: 108: 103: 101: 96: 92: 89:. The terms 88: 84: 80: 75: 73: 69: 65: 61: 57: 53: 49: 45: 41: 37: 29: 26: 21: 1100:File sharing 1073:File manager 1063:File copying 916: 910:Organisation 855:8.3 filename 809:Sidecar file 787:Magic number 686:. Retrieved 661:. Retrieved 652: 643: 626: 616: 606:November 27, 604:. Retrieved 594: 582:. Retrieved 578:the original 573: 564: 553:. Retrieved 538: 530: 526: 520: 502: 468:cd (command) 388: 379: 375: 357: 344: 340:adding to it 335: 319:Lookup cache 313:file manager 306:command line 297: 293: 289: 287: 265: 253: 251: 226: 224: 203:system calls 196: 177: 166: 159: 148: 119:KDE Plasma 5 104: 99: 94: 90: 87:subdirectory 86: 76: 55: 51: 39: 33: 939:File system 824:System file 814:Sparse file 772:File format 758:Binary file 688:19 November 663:19 November 407:File folder 292:, the term 258:file system 231:file folder 143:hard linked 123:ROX Desktop 102:directory. 44:file system 1127:Categories 1046:Management 971:Operations 922:NTFS links 843:Properties 555:2023-03-13 512:References 366:of recent 239:Xerox Star 1015:Hard link 896:File size 819:Swap file 767:Data file 762:text file 629:: 59–63. 584:April 30, 302:/usr/bin/ 298:directory 254:directory 225:The name 188:root user 111:Unix-like 64:workbench 60:analogous 40:directory 36:computing 1020:Shortcut 850:Filename 804:Metafile 657:Archived 462:Commands 429:Filename 418:Concepts 401:See also 167:In many 133:Overview 1003:Linking 653:YouTube 360:caching 309:console 56:drawers 52:folders 1053:Backup 1030:Shadow 503: 473:chroot 380:dcache 294:folder 266:folder 227:folder 180:user's 91:parent 1025:Alias 994:Write 984:Close 751:Types 483:mkdir 384:Linux 247:icons 192:/root 121:, or 115:GNOME 95:child 62:to a 54:, or 42:is a 989:Read 979:Open 961:Path 690:2014 665:2014 608:2022 586:2021 372:Unix 368:path 162:path 105:The 100:root 93:and 83:tree 38:, a 631:doi 493:pwd 382:on 364:RAM 362:to 342:. 277:or 219:KDE 34:In 1129:: 760:/ 673:^ 651:. 625:. 572:. 547:. 393:a 386:. 221:). 164:. 129:. 117:, 58:, 736:e 729:t 722:v 692:. 667:. 637:. 633:: 610:. 588:. 558:. 349:) 345:(

Index


Microsoft Windows
command prompt
computing
file system
computer files
analogous
workbench
filing cabinet
telephone directory
hierarchical file system
tree
freedesktop.org
Unix-like
GNOME
KDE Plasma 5
ROX Desktop
IANA registered media type

hard linked
embedded systems
directory structure
path
operating systems
working directory
user's
home directory
root user
Unix philosophy
system calls

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.