|
|
.hidden for user folders
|
|
|
|
Grizzled Veteran
Join Date: Feb 2001
Location: Germany
Status:
Offline
|
|
hi everybody,
since installing xfree86, my home folder is cluttered with stuff. when working in the terminal, i don't really care, but when i'm in the finder, i don't want to see that.
so i thought, well great, just use /.hidden to add the names of files i don't want to see. didn't work, tried absolute paths and just plain file names. i also tried creating ~/.hidden -- didn't work, either.
(yes, i did a finder restart after every change)
any ideas how to hide certain files in the finder?
|
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Oct 2000
Location: Netherlands
Status:
Offline
|
|
Originally posted by seb2:
<STRONG>hi everybody,
since installing xfree86, my home folder is cluttered with stuff. when working in the terminal, i don't really care, but when i'm in the finder, i don't want to see that.
so i thought, well great, just use /.hidden to add the names of files i don't want to see. didn't work, tried absolute paths and just plain file names. i also tried creating ~/.hidden -- didn't work, either.
(yes, i did a finder restart after every change)
any ideas how to hide certain files in the finder?</STRONG>
As far as i know, it only works at the root level of your system. It is actually a nasty hack by apple to create a clear finder (to the user), yet to allow the BSD subsystem (UNIX) to stay compatible with other BSD variants.
You can of course use something like FileBuddy to set the invisible flag on folders and files. The reason Apple hasn't done this, is that you cannot set that flag for Unix aliasses. So they made a file in which they specified some filenames (UNIX aliasses) which are present at root, and the finder looks for this file at the root level and then doesn't display them.
DJ
DJ
|
Derk-Jan Hartman, Student of the University Twente (NL), developer of VLC media player
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Feb 2001
Location: Germany
Status:
Offline
|
|
(cough) why didn't i think of that? guess i've used the terminal too much...
thanks for the idea, works great!
still: is there a way to do this from the terminal? any ideas?
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Apr 2001
Location: New Mexico
Status:
Offline
|
|
Originally posted by The DJ:
<STRONG>
As far as i know, it only works at the root level of your system. It is actually a nasty hack by apple to create a clear finder (to the user), yet to allow the BSD subsystem (UNIX) to stay compatible with other BSD variants.
DJ</STRONG>
I deleted the .hidden file because I'm dumb and didn't realize what it did. I put another copy of the .hidden file back in the root directory of my drive, but even after rebooting, it won't seem to work. All those hidden files remain visible.
Any ideas how to make them hidden again?
|
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Feb 2001
Location: Germany
Status:
Offline
|
|
is it owned by root with read priviliges for ugo?
|
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Oct 2000
Location: Netherlands
Status:
Offline
|
|
This is what it should be
-r--r--r-- 1 root wheel 152 Sep 2 22:53 .hidden
contents
automount
bin
cores
Desktop DB
Desktop DF
Desktop Folder
dev
etc
lost+found
mach
mach_kernel
mach.sym
private
sbin
tmp
Trash
usr
var
VM Storage
Volumes
[ 11-28-2001: Message edited by: The DJ ]
|
Derk-Jan Hartman, Student of the University Twente (NL), developer of VLC media player
|
|
|
|
|
|
|
|
Mac Enthusiast
Join Date: Sep 2000
Status:
Offline
|
|
Originally posted by seb2:
<STRONG>still: is there a way to do this from the terminal? any ideas?</STRONG>
Assuming you have the developer tools installed, in /Developer/Tools/ there is a utility called SetFile. If you ln -s this utility into your /usr/bin directory, you will be able to run it from anywhere... (or you could just add /Developer/Tools to your $path)
For the practical application, let's say you want to hide the GNUStep folder which is in your home directory from the finder. Here you go:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>sudo SetFile -a V ~/GNUStep</font>[/code]
a relaunch of the Finder application is now all that stands between you and a hidden GNUStep folder.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|