I have a usb drive plugged in my Macbook. And I found I have mis-deleted several files, so I
cd /Volumes/MyUsbDrive/.Trashes
and I find a directory named 501
, so I
cp -r 501 ~
from terminal, I can see the 501
directory was copied, but it is not visible from Finder. It has a long format of
drwxr-xr-x@
and even I changed the name of it, it does not display in Finder. All its contents are accessible from terminal through.
I use OS X 10.11.6.
Is it a bug in the OS X?
chflags nohidden 501
will make it displayed. And I suggest everyone to usels -alO
to check the flag attributes when your folder is not visible on OS X. – TonyTony Sep 12 '16 at 12:17open
the hidden directory-open ~/501
– fd0 Sep 12 '16 at 15:50