Filename

From WikiMD's Food, Medicine & Wellness Encyclopedia

Dir command in Windows Command Prompt
EMule v.049b

Filename or file name is a name used to uniquely identify a computer file stored in a file system. Different file systems impose different restrictions on filename lengths and the allowed characters within filenames.

Overview[edit | edit source]

A filename may include one or more of these components:

  • Base name: The primary name of the file.
  • Extension: A suffix at the end of the filename that indicates the file format or the usage of the file. It is usually separated from the base name by a dot ('.').
  • Path: The location of the file within the file system, consisting of a sequence of directory names leading to the file name itself.

Filename Components[edit | edit source]

Base Name[edit | edit source]

The base name represents the main identifier for the file. It is what users most frequently use to refer to the file. The base name can include any character supported by the file system, except for the directory separator (such as '/' on UNIX-like systems or '\\' on Windows systems) and characters explicitly disallowed by the file system.

Extension[edit | edit source]

The extension of a file is typically a two to four-character suffix that specifies the file's type or intended use. Common examples include .txt for plain text files, .jpg for JPEG image files, and .exe for executable programs on Windows. Not all file systems require the use of file extensions.

Path[edit | edit source]

The path specifies the file's location within the file system's directory structure. It includes the sequence of directories that must be traversed to reach the file, usually ending with the file name itself. Paths can be absolute, specifying a location in relation to the root of the file system, or relative, specifying a location in relation to the current working directory.

File Naming Conventions[edit | edit source]

File naming conventions vary between operating systems. However, there are some general practices:

  • Avoid using special characters that are reserved by the operating system or file system.
  • Use file extensions that accurately represent the file type.
  • Keep filenames to a reasonable length, though this depends on the file system's limitations.

File Systems and Filename Limitations[edit | edit source]

Different file systems have different limitations for filenames:

  • FAT32: Up to 255 characters, with some reserved characters not allowed.
  • NTFS: Up to 255 characters, supports a broader range of characters than FAT32.
  • ext3/ext4: Up to 255 bytes for filenames, with no restrictions on the characters used, except for '/' and null character.

See Also[edit | edit source]

Wiki.png

Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes

Search WikiMD


Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro) available.
Advertise on WikiMD

WikiMD is not a substitute for professional medical advice. See full disclaimer.

Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.


Contributors: Prab R. Tumpati, MD