HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

GetFileInfo — Get information about a file in an HFS+ directory. More information: <https://keith.github.io/xcode-

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandhfscliinformationfileaboutgetgetfileinfo
macos

Problem

How to use the GetFileInfo command: Get information about a file in an HFS+ directory. More information: <https://keith.github.io/xcode-man-pages/GetFileInfo.1.html>.

Solution

GetFileInfo — Get information about a file in an HFS+ directory. More information: <https://keith.github.io/xcode-man-pages/GetFileInfo.1.html>.

Display information about a given file:
GetFileInfo {{path/to/file}}


Display the [d]ate and time a given file was created:
GetFileInfo -d {{path/to/file}}


Display the date and time a given file was last [m]odified:
GetFileInfo -m {{path/to/file}}


Display the [c]reator of a given file:
GetFileInfo -c {{path/to/file}}

Code Snippets

Display information about a given file

GetFileInfo {{path/to/file}}

Display the [d]ate and time a given file was created

GetFileInfo -d {{path/to/file}}

Display the date and time a given file was last [m]odified

GetFileInfo -m {{path/to/file}}

Display the [c]reator of a given file

GetFileInfo -c {{path/to/file}}

Context

tldr-pages: osx/GetFileInfo

Revisions (0)

No revisions yet.