mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-22 03:02:25 +00:00
Update cheatsheets
This commit is contained in:
21
osx/setfile
Normal file
21
osx/setfile
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, osx]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# setfile
|
||||
|
||||
> Sets file attributes on files in an HFS+ directory.
|
||||
> More information: <https://ss64.com/osx/setfile.html>.
|
||||
|
||||
- Set creation date for specific files:
|
||||
|
||||
`setfile -d "{{MM/DD/YYYY HH:MM:SS}}" {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
- Set modification date for specific files:
|
||||
|
||||
`setfile -m "{{MM/DD/YYYY HH:MM:SS}}" {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
- Set modification date for symlink file (not to linked file itself):
|
||||
|
||||
`setfile -P -m "{{MM/DD/YYYY HH:MM:SS}}" {{path/to/file1 path/to/file2 ...}}`
|
||||
Reference in New Issue
Block a user