📄File Extension
Also known as Filename Extension, File Suffix
The ending after the dot in a file name, like .pdf. It hints at what kind of file it is.
Think of it like
Think of it like a label on a jar. It tells you what is inside before you open it.
Example
Emma double-clicks budget.xlsx. Her computer sees .xlsx and opens it in her spreadsheet app.
Why it matters
Extensions decide which app opens a file. Some systems hide them, and that lets a fake file pass as a safe one.
Definition
Example code
console
$ ls
notes.txt photo.png report.pdfCommon mistake
Key takeaways
- 1After the last dot. The extension is the final part of the name.
- 2Picks the app. The system opens the matching program.
- 3Only a hint. The bytes inside are the truth.