CMD

How to find File and Folder Ownership information using Command Prompt

How to find File and Folder Ownership information using Command Prompt

This step by step guide will show you how you can find the File & Folder Ownership information using Command Prompt. It is possible to check the ownership of a single directory, all sub-directories, and files with the help of this guide. For your information, you can use this trick on almost any Windows version.

Find File & Folder Ownership information using CMD

To find the File & Folder Ownership information using Command Prompt, follow these steps:

  1. Open Command Prompt on your computer
  2. Navigate to the desired folder
  3. Use DIR command switch
  4. Find the ownership information

To get started, you need to open the Command Prompt first. There are several methods to open the Command Prompt window on your Windows computer. The simplest way is to search for it in the Taskbar search box or press Win+R buttons together to open the Run box, type cmd in it and hit Enter.

After opening the Command Prompt, you need to use the DIR command switch. Next, you need to navigate to the folder where the target file or folder is located.

Say, for example, you have a folder on your Desktop, and it is named as TWC. To navigate to this folder, you need to enter this command-

cd C:\Users\\Desktop\TWC

Now, if you want to check the ownership details of the TWC folder only, enter this command-

dir /q /ad

or

dir /ad

If you want to check the ownership details of all files included in the TWC folder, you have to enter this command-

dir /q

You will some columns as shown in the following image-

The fourth column contains the owner's name.

As all the files are under one user account or owner, it is showing the same name. If you have multiple files and owners, you can find the difference in the same column.

This command also shows the number of files, folders or directories, and the respective size so that you can perform the next task according to your requirements.

Related reads:

How to Install and Play Doom on Linux
Introduction to Doom The Doom Series originated in the 90s after the release of the original Doom. It was an instant hit and from that time onwards th...
Vulkan for Linux Users
With each new generation of graphics cards, we see game developers push the limits of graphical fidelity and come one step closer to photorealism. But...
OpenTTD vs Simutrans
Creating your own transport simulation can be fun, relaxing and extremely enticing. That's why you need to make sure that you try out as many games as...