The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Filesystems, Disks and Memory
Google UNIX.COM


Filesystems, Disks and Memory Questions involving NAS, SAN, RAID, Robotic Libraries, backups, etc go here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Hidden control characters in a Unix Text File! kewl_guy Shell Programming and Scripting 6 1 Week Ago 10:09 AM
Finding Hidden files and protecting the folder containing hidden files from deletion pochaw Shell Programming and Scripting 4 12-21-2007 09:33 PM
How to check for hidden file Raynon Shell Programming and Scripting 8 09-06-2007 01:00 AM
Make a Hidden File gandhevinod UNIX Desktop for Dummies Questions & Answers 1 02-15-2005 08:59 AM
File and Directory Names become hidden dbinsol1 UNIX for Advanced & Expert Users 10 05-29-2002 06:58 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-14-2005
Registered User
 

Join Date: Jan 2005
Location: Hyderabad
Posts: 8
Stumble this Post!
How to make a file Hidden

Please tell me how to make a file hidden whose name is not starting with (.) dot ( Sorry I am Biginer)

Last edited by gandhevinod; 02-15-2005 at 01:34 AM.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-15-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,445
Stumble this Post!
Unix doesn't support the notion of a hidden file. Even having a leading dot only hides the file from people who prefer to not see it. Almost everyone knows about "ls -a" and so on. Seeing a filename depends on reading the directory that contains it. So making a directory unreadable will "hide" all of the files it contains. There are a very few funky tricks to render files "hidden". Here is one...

One sure way to hide a file is to ensure that it has no filenames. A program can create a file, and then unlink it. No other program can now open the file. But the file will not disappear until every program that has it open closes it, perhaps by exiting. This happens a lot and it's probably the number one way that junior admins accidentally hide files from themselves. A filesystem will fill up and the admin will see a very large file called, say, huge.log. At this point he will do a "rm huge.log". But if a program still has that log file open, the space will not be freed. Until the program closes the file or exits, the space is still used. I suppose that we can call that file "hidden".

The other techniques all require root and cannot be generally applied. And they are not great ideas anyway so I won't mention them.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:01 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0