Filename
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]
Search WikiMD
Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD
WikiMD's Wellness Encyclopedia |
Let Food Be Thy Medicine Medicine Thy Food - Hippocrates |
Translate this page: - East Asian
中文,
日本,
한국어,
South Asian
हिन्दी,
தமிழ்,
తెలుగు,
Urdu,
ಕನ್ನಡ,
Southeast Asian
Indonesian,
Vietnamese,
Thai,
မြန်မာဘာသာ,
বাংলা
European
español,
Deutsch,
français,
Greek,
português do Brasil,
polski,
română,
русский,
Nederlands,
norsk,
svenska,
suomi,
Italian
Middle Eastern & African
عربى,
Turkish,
Persian,
Hebrew,
Afrikaans,
isiZulu,
Kiswahili,
Other
Bulgarian,
Hungarian,
Czech,
Swedish,
മലയാളം,
मराठी,
ਪੰਜਾਬੀ,
ગુજરાતી,
Portuguese,
Ukrainian
Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. 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