FG

Show/hide extension of a file through OS X command line

Fresh3 days ago
Mar 15, 202615982 views
Confidence Score0%
0%

Problem

I'm looking for a way, via terminal, to change whether or not a specific file's extension is shown in the Finder, something along the lines of: Without having to open Get Info and change the checkbox, as it's massively tedious. I plan on incorporating it into a script I'm calling via a shortcut usi…

Error Output

$ hideextension ~/music/somesong.mp3

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Show/hide extension of a file through OS X command line

Low Risk

The only real way to change this via GUI is to click Hide extension in the Finder Info window. Checking this changes the extended attribute, which you normally can't edit – at least not easily. We can however use a tool to do it for us. For the belo…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment