encyclopegia.org

Alias (Mac OS)

In classic Mac OS System 7 and later, and in macOS, an alias is a small file that represents another object in a local, remote, or removable file system and provides a dynamic link to it.[src] The target object may be moved or renamed, and the alias will still link to it (unless the original file is recreated; such an alias is ambiguous and how it is resolved depends on the version of macOS).[src] In Windows, a "shortcut", a file with a .lnk extension, performs a similar function.[src] It is similar to the Unix symbolic link, but with the distinction of working even if the target file moves to another location on the same disk (in this case it acts like a hard link, but the source and target of the link may be on different filesystems, and the target of the link may be a directory).[src] As a descendant of BSD, macOS supports Unix symbolic (and hard) links as well.[src]

In classic Mac OS System 7 and later, and in macOS, an alias is a small file that represents another object in a local, remote, or removable file system and provides a dynamic link to it.[src] The target object may be moved or renamed, and the alias will still link to it (unless the original file is recreated; such an alias is ambiguous and how it is resolved depends on the version of macOS).[src] In Windows, a "shortcut", a file with a .lnk extension, performs a similar function.[src] It is similar to the Unix symbolic link, but with the distinction of working even if the target file moves to another location on the same disk (in this case it acts like a hard link, but the source and target of the link may be on different filesystems, and the target of the link may be a directory).[src] As a descendant of BSD, macOS supports Unix symbolic (and hard) links as well.[src] // This function checks whether a file matches the alias magic number.[src] public static boolean checkForMacAliasFile(File inputFile) throws FileNotFoundException, IOException { // Only files can be aliases.[src] // Do not test directories; they will be false.[src] if (inputFile.isFile()) { byte[] bookmark = new byte[] { 0x62, 0x6F, 0x6F, 0x6B, 0x00, 0x00, 0x00, 0x00, 0x6D, 0x61, 0x72, 0x6B, 0x00, 0x00, 0x00, 0x00 }; long length = inputFile.length(); if (length > 16) { byte[] result = new byte[16]; FileInputStream fis = new FileInputStream(inputFile); fis.read(result); fis.close(); return Arrays.equals(result, bookmark); } } return false; } There is a github repo with working C++ code here.[src] ==Managing aliases== ==Relation to BSD symbolic and hard links== Unix and similar operating systems provide two features very similar to macOS aliases: symbolic links and hard links.[src] When using the macOS Finder, links are displayed and treated largely like macOS aliases, and even carry an identical "Kind" attribute.[src] However, when using the shell command line, macOS aliases are not recognized: for example, you cannot use the cd command with the name of an alias file.[src] This is because an alias is implemented as a file on the disk that must be interpreted by an API while links are implemented within the filesystem and are thus functional at any level of the OS.[src] There is currently no pre-installed command to resolve an alias to the path of the file or directory it refers to.[src] However, a freely available C program makes use of the Mac Carbon APIs to perform this task.[src] Given that, commands such as cd can be set up to check for aliases and treat them just like symbolic or hard links.[src] ==References== ==External links== System 7 aliases — Article about System 7 aliases, from 1992[src]

22 sentences · 22 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Alias (Mac OS)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/alias-mac-os. Accessed 28 November 2026.

Chicago

"Alias (Mac OS)." encyclopegia.org. Accessed November 28, 2026. https://encyclopegia.org/wiki/alias-mac-os.

APA

encyclopegia.org. (2026). Alias (Mac OS). Retrieved November 28, 2026, from https://encyclopegia.org/wiki/alias-mac-os

Accessed November 28, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Mac operating system

stub · references available

Mac

stub · references available

Mac Gerdts

stub · references available

Alias

stub · references available

z/OS

stub · references available

Áed mac Cináeda

stub · references available

Mac mini

stub · references available

Luau MTV: Nando Reis & Os Infernais

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1374029473 · 0.5 · snapshot enwiki-001374029473

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.