About 3,390,000 results
Open links in new tab
  1. How does one find the "user/owner" of a file/directory and "Date ...

    Jan 15, 2024 · To get the owner of a file or directory, you need an extra calculated property called 'Owner' and the value you get by using Get-Acl. @{Name = 'Owner'; Expression = {(Get-Acl …

  2. Mastering PowerShell: Get File Owner with Ease

    To retrieve the owner of a specific file, you can execute one of the simplest commands in PowerShell: In this command, `Get-Acl` fetches the ACL for the specified file, while `Select …

  3. How to find owner and group of a directory? - Ask Ubuntu

    Jan 29, 2014 · Run ls with the -l flag to show the owner and group-owner of files and directories in the current directory (or in a specific named directory). ~$ ls -l drwxr-xr-x 2 owner group 4096 …

  4. How can I view the owner for a file from PowerShell?

    To view this information, you can use PowerShell's get-acl cmdlet, as follows: get-acl boot.wimThat command returns the owner of a file or folder, along with other items, including …

  5. How to get the File owner using PowerShell - ShellGeek

    Jun 21, 2022 · To list file owners for all the files in the specified folders, use the Get-ChildItem cmdlet with Recurse parameter to recursively get items in the folder. The Get-ChildItem cmdlet …

  6. How to Get File Owner Using PowerShell - Active Directory Tools

    To get file owner using PowerShell, you can use the Get-Acl or Get-Item cmdlets. These commands retrieve the Access Contol List (ACL) of a file or directory and then access the …

  7. 3 Ways to Find File Owner in Linux - howtouselinux

    Aug 22, 2023 · Procedure to Find file owner in Linux. Open the terminal. Type ls -l and press Enter. This will show a list of all the files in the current directory with their permissions, owner, …

  8. Powershell script to find file ownership on Linux Share

    Feb 9, 2021 · Get-ChildItem G:\ * -Force -Recurse | Where-Object { !$_.PSIsContainer } | Sort-Object length -descending | Where {$_.FullName -notlike "*\61fe102665b86194ce4f\*"} | …

  9. 5 Essential Ways to Find File Owners in Linux

    Apr 17, 2023 · We will explore five ways to find the owner of a file or directory in Linux. These methods include using commands like ls, stat, find, locate, grep, and awk.

  10. shell script - Find the owner of a directory or file, but only return ...

    Feb 20, 2011 · echo "The current directory is owned by $username." echo "The current directory is owned by the current user." There are some caveats with the ls | awk approach too …

Refresh