You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

💡 Did you know?

⏺ If you can't accept iCloud Terms and Conditions... Learn more >

⏺ If you don't see your iCloud notes in the Notes app... Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

The item can't be replaced because it's invisible

All files disappeared from my desktop. I had a recent backup and rstored the files from Time Machine to a different folder. Trying to copy the files back to desktop but for each file I get a message "The item <filename> can't be replaced because it's invisible. How did my desktop files all become invisible? And how do I make them visible again?

MacBook Pro 16″, macOS 14.7

Posted on Sep 30, 2024 5:51 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 3, 2024 11:15 AM

I had a look at this and have found a solution: in the Finder, press the key combination Command-Shift-<full stop>.

That should display the items on the desktop. Pressing it again makes them disappear.

I made the items visible again by opening the Terminal, changing to the directory of the Desktop and then executing the command chflags with -R and the parameter nohidden. First for a single file to test: chflags -R nohidden sometextfile.txt


I didn't have to kill and restart the Finder, but that may also be an option once the chflags command has been completed.


That seemed to do the trick, so I ran it against the others (./) can be run recursively against all files in the directory:

cd ~/Desktop
chflags -R nohidden ./
killall Finder


4 replies
Question marked as Top-ranking reply

Oct 3, 2024 11:15 AM in response to mhertenberger

I had a look at this and have found a solution: in the Finder, press the key combination Command-Shift-<full stop>.

That should display the items on the desktop. Pressing it again makes them disappear.

I made the items visible again by opening the Terminal, changing to the directory of the Desktop and then executing the command chflags with -R and the parameter nohidden. First for a single file to test: chflags -R nohidden sometextfile.txt


I didn't have to kill and restart the Finder, but that may also be an option once the chflags command has been completed.


That seemed to do the trick, so I ran it against the others (./) can be run recursively against all files in the directory:

cd ~/Desktop
chflags -R nohidden ./
killall Finder


Oct 3, 2024 10:52 AM in response to Lorner

Very strange - I have encountered exactly the same situation: all the items on my desktop, with the exception of the Macintosh HD and an external drive are no longer showing up. Trying to create a folder with the same name as the one that was there before fails, because the folder already exists. In Terminal, the files and folders show up, so they are obviously still around. Something in the Finder has hidden them...

The item can't be replaced because it's invisible

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.