Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

ATTRIB

From Wikipedia, the free encyclopedia
Computer command in various operating systems
attrib
TheReactOSattrib command
DevelopersIntel,IBM,Microsoft,DR,Datalight,Novell, Phil Brutsche, ReactOS Contributors
Initial release1984, 40–41 years ago (DOS version)
Operating systemISIS-II,PC DOS,MS-DOS,MSX-DOS,SISNE plus,OS/2,eComStation,ArcaOS,Windows,DR DOS,ROM-DOS,FreeDOS,ReactOS,SymbOS
PlatformCross-platform
TypeCommand
LicenseFreeDOS, ReactOS:GPLv2

Incomputing,ATTRIB is acommand inIntelISIS-II,[1]DOS,IBMOS/2,[2]MicrosoftWindows[3] andReactOS[4] that allows the user to change various characteristics, or "attributes" of acomputer file ordirectory. The command is also available in theEFI shell.[5]

History

[edit]

Severaloperating systems provided a set of modifiable file characteristics that could be accessed and changed through a low-levelsystem call. For example, as of releaseMS-DOS 4.0, the first sixbits of the file attributebyte indicated whether or not a file was read-only (as opposed to writeable), hidden, a system file, a volume label, a subdirectory, or if the file had been "archived" (with the bit being set if the file had changed since the last use of theBACKUP command).[6] However, initial releases of the operating system did not provide user-level method for reading or changing these values.[7]

The initial version of theATTRIB command for DOS was first included in version 3.0 ofPC DOS, with functionality limited to changing the read-only attribute.[7] Subsequent versions allowed the read-only, hidden, system and archive bits to be set.[8]MS-DOS version 3.3 added the capability of recursive searching through subdirectories to display attributes of specified files.[9]

Digital ResearchDR DOS 6.0[10] andDatalightROM-DOS[11] also include an implementation of theATTRIB command.

TheFreeDOS version was developed by Phil Brutsche and is licensed under theGPLv2.[12]

Uses

[edit]

Setting the read-only bit of a file provided only partial protection against inadvertent deletion: while commands such asdel anderase would respect the attribute, other commands such asDELTREE did not.[13] Changing the system attribute was not possible in early versions of Windows, thus requiring use ofATTRIB.[13] Similarly, a system crash in early versions of Windows could lead to a situation where a temporary file had the read-only bit set and was additionally (and irrevocably) locked by the Windows OS; in this instance, booting into DOS (thus avoiding the Windows lock) and unsetting the read-only attribute withATTRIB was the recommended way of deleting the file.[14] Manipulating the archive bit allowed users to control which files were backed up using theBACKUP command.[7]

See also

[edit]

References

[edit]
  1. ^ISIS II Users Guide
  2. ^"JaTomes Help - OS/2 Commands". Archived fromthe original on 2019-04-14. Retrieved2019-07-27.
  3. ^Microsoft TechNet Attrib article
  4. ^reactos/attrib.c at master · reactos/reactos · GitHub
  5. ^"EFI Shells and Scripting".Intel. Retrieved2013-09-25.
  6. ^IBM Disk Operating System Version 4.00 Technical Reference (1st ed.). July 1988. p. 3:5.
  7. ^abcPetzold, Charles (June 10, 1986)."Changing DOS File Attributes".PC Magazine. pp. 249–262.
  8. ^"DOS Attrib".Encyclopedia. PC Magazine. Archived fromthe original on 2012-03-02. Retrieved2007-08-02.
  9. ^"Using ATTRIB, CHKDSK, or DIR Command to Locate Files". Microsoft. Archived fromthe original on 2014-09-01. Retrieved2017-11-01.
  10. ^"DR DOS 6.0 User Guide Optimisation and Configuration Tips"(PDF). Archived fromthe original(PDF) on 2019-09-30. Retrieved2019-08-13.
  11. ^"Datalight ROM-DOS User's Guide"(PDF).www.datalight.com.
  12. ^"FreeDOS 1.2 Updates Package - attrib (FreeDOS Base)". Ibiblio.org. 2003-07-01. Retrieved2022-09-08.
  13. ^abO'Reilly, Tim; Mott, Troy; Glenn, Walter J. (1999).Windows 98 in a Nutshell: A Desktop Quick Reference. O'Reilly. pp. 303–306.ISBN 1-56592-486-X.
  14. ^Jones, James G.; Landes, Craig (2003).A+ Exam Cram 2: Windows 2000 Directory Services Infrastructure. Que. pp. 309–310.ISBN 0-7897-2867-2.

Further reading

[edit]

External links

[edit]
Wikibooks has a book on the topic of:Guide to Windows Commands
Ecosystem
Interpreters
Terminals
File system navigation
File management
Archiving
Disk management
Processes
Registry
User environment
File contents
Scripting
Networking
Maintenance and care
Boot management
Software development
Miscellaneous
Retrieved from "https://en.wikipedia.org/w/index.php?title=ATTRIB&oldid=1256066632"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp