LFN

Stands for "Long Filename." LFN is an extension to the "short filename" standard used in DOS, which only allowed eight uppercase characters plus a three-character file extension. LFN filenames can be up to 255 characters long, including the file extension, which may be longer or shorter than three characters. They can include lowercase and uppercase characters, as well as spaces, numbers, and symbols.

Microsoft introduced long filename support with the VFAT file system in 1994. VFAT was first included with Windows NT 3.5 and later in Windows 95. To maintain backward compatibility with the previous FAT file system, Microsoft provided an automatic way to shorten long filenames using a tilde followed by a number. If the shortened filename conflicted with another filename, the number would be incremented by one. For example:

  • EXAMPLE.DOC → EXAMPLE.DOC
  • Example.doc → EXAMPLE.DOC
  • Sample File.doc → SAMPLE~1.DOC
  • Sample File copy.doc → SAMPLE~2.DOC
  • Verylongfilename.txt → VERYLO~1.TXT

NOTE: While Windows, macOS, and Unix have supported long filenames for over two decades, a filename may still be truncated if the file is copied or edited by a Windows system using the FAT file system.

Updated October 22, 2018 by Per C.

quizTest Your Knowledge

What do Unix and Linux computers use the Samba software for?

A
Connect to network folders shared by Windows computers
0%
B
Locate and repair file system errors
0%
C
Automatically download and install software updates
0%
D
Create a remote desktop connection to another computer
0%
Correct! Incorrect!     View the Samba definition.
More Quizzes →

The Tech Terms Computer Dictionary

The definition of LFN on this page is an original definition written by the TechTerms.com team. If you would like to reference this page or cite this definition, please use the green citation links above.

The goal of TechTerms.com is to explain computer terminology in a way that is easy to understand. We strive for simplicity and accuracy with every definition we publish. If you have feedback about this definition or would like to suggest a new technical term, please contact us.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email.

Questions? Please contact us.