Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recycle File
#32
@NakedApe

Here's what i found out with why mv might not work properly on your system. Reason #1 sounds like it might be an issue, if it's a permission thing which is off by default.



While there isn't an "ARM-specific" block, modern macOS versions (which all ARM Macs run) have strict security protocols that often block the Terminal from interacting with the Trash folder.

Common reasons why mv file ~/.Trash/ fails:

1. Missing Full Disk Access
By default, the Terminal does not have permission to modify "protected" folders like ~/.Trash/, leading to "Operation not permitted" errors.

Fix: Go to System Settings > Privacy & Security > Full Disk Access and toggle the switch for Terminal to ON.

2. Incorrect Trash Path for External Drives
Each drive on a Mac has its own hidden trash folder. If the file you are moving is on an external drive, ~/.Trash/ (which is on your internal startup disk) might not be the correct destination for a simple "move".

Fix: For files on external volumes, the path is usually /Volumes/[DriveName]/.Trashes/[UserUID]/.
3. Folder Ownership or Corruption
Sometimes the .Trash directory itself has incorrect permissions or has become corrupted.

Verify: Run ls -ld ~/.Trash to see the permissions. It should be owned by your username with rwx permissions.
Fix: If it's missing or broken, you can recreate it by running mkdir ~/.Trash (though you may need to delete a corrupted one first with sudo rm -rf ~/.Trash).

4. Better Alternatives for CLI Deletion
Moving files to the Trash via mv is technically a "move," not a "delete." Most power users prefer these methods:
Permanent Delete: Use rm -rf [filename] to delete immediately without the Trash.
Third-Party Tools: Install trash via Homebrew (brew install trash), which allows you to run trash [filename] to safely send files to the system bin exactly like the Finder does.
Reply


Messages In This Thread
Recycle File - by SMcNeill - 02-27-2026, 10:20 PM
RE: Recycle File - by SMcNeill - 02-27-2026, 10:31 PM
RE: Recycle File - by SMcNeill - 02-27-2026, 11:16 PM
RE: Recycle File - by NakedApe - 02-28-2026, 12:36 AM
RE: Recycle File - by ahenry3068 - 02-28-2026, 01:12 AM
RE: Recycle File - by NakedApe - 02-28-2026, 01:03 AM
RE: Recycle File - by ahenry3068 - 02-28-2026, 01:06 AM
RE: Recycle File - by SMcNeill - 02-28-2026, 01:16 AM
RE: Recycle File - by NakedApe - 02-28-2026, 01:16 AM
RE: Recycle File - by ahenry3068 - 02-28-2026, 01:34 AM
RE: Recycle File - by ahenry3068 - 02-28-2026, 01:42 AM
RE: Recycle File - by SMcNeill - 02-28-2026, 01:53 AM
RE: Recycle File - by SMcNeill - 02-28-2026, 01:24 AM
RE: Recycle File - by NakedApe - 02-28-2026, 01:24 AM
RE: Recycle File - by SMcNeill - 02-28-2026, 01:33 AM
RE: Recycle File - by NakedApe - 02-28-2026, 01:33 AM
RE: Recycle File - by NakedApe - 02-28-2026, 01:39 AM
RE: Recycle File - by NakedApe - 02-28-2026, 01:43 AM
RE: Recycle File - by SMcNeill - 02-28-2026, 01:43 AM
RE: Recycle File - by NakedApe - 02-28-2026, 01:45 AM
RE: Recycle File - by SMcNeill - 02-28-2026, 01:50 AM
RE: Recycle File - by SMcNeill - 02-28-2026, 02:05 AM
RE: Recycle File - by NakedApe - 02-28-2026, 02:10 AM
RE: Recycle File - by SMcNeill - 02-28-2026, 02:14 AM
RE: Recycle File - by Pete - 02-28-2026, 04:09 AM
RE: Recycle File - by justsomeguy - 02-28-2026, 05:22 PM
RE: Recycle File - by SMcNeill - 02-28-2026, 05:35 PM
RE: Recycle File - by justsomeguy - 02-28-2026, 05:55 PM
RE: Recycle File - by SMcNeill - 02-28-2026, 07:07 PM
RE: Recycle File - by NakedApe - 02-28-2026, 07:42 PM
RE: Recycle File - by SMcNeill - 02-28-2026, 07:58 PM
RE: Recycle File - by SMcNeill - 02-28-2026, 08:12 PM
RE: Recycle File - by NakedApe - 02-28-2026, 10:23 PM
RE: Recycle File - by SMcNeill - 03-01-2026, 01:12 AM
RE: Recycle File - by SMcNeill - 03-01-2026, 02:36 AM
RE: Recycle File - by justsomeguy - 03-01-2026, 03:35 AM
RE: Recycle File - by SMcNeill - 03-01-2026, 04:26 AM
RE: Recycle File - by SMcNeill - 03-01-2026, 04:34 AM
RE: Recycle File - by NakedApe - 03-01-2026, 06:12 AM
RE: Recycle File - by SMcNeill - 03-01-2026, 07:14 AM
RE: Recycle File - by NakedApe - 03-01-2026, 02:34 PM
RE: Recycle File - by NakedApe - 03-01-2026, 03:13 PM
RE: Recycle File - by SMcNeill - 03-01-2026, 03:26 PM
RE: Recycle File - by NakedApe - 03-01-2026, 04:39 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)