The Definition and Function of a 'System File'

Instructions on revealing hidden system files

What to Know

  • Windows system files are important files used by the operating system.
  • System files are hidden by default and are stored in the Windows folders, among others.
  • To see system files, use File Explorer Options to enable the visibility of hidden files and protected OS files.

This article explains what system files are and where they are stored in Windows, plus how to view them if you need to.

What Is a System File?

A system file is any file with the system attribute turned on. It implies that Windows or some other program sees the item as being crucial to the overall function of the operating system.

Files and folders that have this attribute toggled on should usually be left alone. Changing, deleting, or moving them could cause instability or complete system failure. For this reason, system files typically also have the read-only attribute and hidden attribute flipped on as well.

The most common system files you might have heard of on a Windows computer include kernel32.dll, msdos.sys, io.sys, pagefile.sys, ntdll.dll,, hal.dll, and ntldr.

Although they sound similar, a system file is different from a file system.

Where Are System Files Stored?

Most Windows computers are configured by default not to display system files in normal file searches or in folder views. This is a good thing—there are very few good reasons to be messing with system files in any way.

These files exist mainly in the Windows folder, but can be found in any other places too, like the Program Files folder.

The root folder of the drive Windows is installed to (usually the C drive) has a number of common system files and folders, like hiberfil.sys, swapfile.sys, System Recovery, and System Volume Information.

System files exist in non-Windows operating systems, too, like on PCs with macOS or Linux.

How to Show Hidden System Files in Windows

Two things must be done before you can see system files in Windows: 1) show hidden files and folders; 2) show protected operating system files. Both options are available in the same place, making this process pretty easy.

Before continuing, we reiterate that there is little if any good reason for the average computer user to enable the display of system files. We only include this information because you may be dealing with a problem in Windows that can only be fixed by accessing a particular system file as part of a troubleshooting process. We highly recommend reversing these steps once you're finished working.

There are several ways to show system files in Windows, but the following process works equally well in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP, so we'll go with that route for simplicity's sake:

  1. Open Command Prompt.

  2. Type control folders, and then press Enter.

  3. From the View tab, choose Show hidden files, folders, and drives.

  4. Uncheck Hide protected operating system files, and then confirm the action with Yes.

    Windows 11 File Explorer options
  5. Select OK.

See How to Show or Hide Hidden Files and Folders if you need more help doing that, or are interested in some of the other ways to go about it.

You may notice that, after performing the steps above, system files and folders, as well as anything else with the hidden attribute turned on, will be dimmed when they show up in Windows. This is so you know they are important files that you shouldn't normally see, and not just regular files like documents, music, etc.

More Information on System Files

The system file attribute cannot be toggled on and off as easily as other file attributes like archive files and compressed files can. The attrib command must be used instead.

The system attribute, like any other file attribute, can be manually set on any file or folder of your choosing. This doesn't mean, however, that the data suddenly takes on an important role in the overall function of the operating system.

In other words, if, for example, you save an image file to your computer and then turn the system attribute on for that file, your computer won't crash after you delete this file. It was never an actual system file, at least not in the sense that it was an integral part of the operating system.

When deleting system files (which we hope you realize by now you shouldn't ever do), Windows will require a confirmation that you really do want to remove it. This is true for actual system files from Windows as well as for files that you've manually toggled the system attribute on for.

While we're on the topic... you normally cannot delete a system file that is actively being used by Windows. This type of file is considered a locked file and won't be able to be changed in any way.

Windows will often store multiple versions of system files. Some are used as backups, while others may be old, previous versions.

It's possible for a computer to become infected with a virus that changes the file attribute of your regular data (non-system files) to ones that have the hidden or system attribute toggled on. If this happens, it's safe to turn off the system or hidden attribute to regain visibility and use the files normally.

System File Checker (SFC) is a tool included in Windows that can repair corrupt system files. Using this tool to replace a system file that's been damaged, or is missing, will often restore a computer back to working order.

Was this page helpful?