The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Special Forums > Hardware > Filesystems, Disks and Memory
.
google unix.com



Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics 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 09-30-2008 02:09 PM
Finding Hidden files and protecting the folder containing hidden files from deletion pochaw Shell Programming and Scripting 4 12-22-2007 01:33 AM
How to check for hidden file Raynon Shell Programming and Scripting 8 09-06-2007 05:00 AM
Make a Hidden File gandhevinod UNIX Desktop for Dummies Questions & Answers 1 02-15-2005 12:59 PM
File and Directory Names become hidden dbinsol1 UNIX for Advanced & Expert Users 10 05-29-2002 10:58 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-15-2005
gandhevinod gandhevinod is offline
Registered User
  
 

Join Date: Jan 2005
Location: Hyderabad
Posts: 8
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 05:34 AM..
  #2 (permalink)  
Old 02-15-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:43 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0