- Always show hidden files in Finder
defaults write com.apple.finder AppleShowAllFiles -bool true killall FinderOr press Cmd + Shift + . in any Finder window to switch them on and off.
- List hidden files in the terminal
ls -la
Check it worked
- Check the Finder setting
defaults read com.apple.finder AppleShowAllFilesYou should see 1.
Undo it
- Hide them again
defaults write com.apple.finder AppleShowAllFiles -bool false killall Finder
- List hidden files in the terminal
ls -laIn the Files app, press Ctrl + H to show or hide them.
- Show hidden files and file extensions in File Explorer
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name Hidden -Value 1 Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name HideFileExt -Value 0 Stop-Process -Name explorer -ForceFile Explorer restarts by itself in a second or two.
- List hidden files in PowerShell
Get-ChildItem -Force
Check it worked
- Check the setting
Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name Hidden, HideFileExtHidden should be 1 and HideFileExt should be 0.
Undo it
- Hide them again
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name Hidden -Value 2 Stop-Process -Name explorer -Force