Operating System - HP-UX
1820160 Members
2689 Online
109620 Solutions
New Discussion юеВ

How to turn a hidden file to unhide

 
ng_7
Regular Advisor

How to turn a hidden file to unhide

Hi,

May I know how to turn a hidden file to unhide ?

thanks

Regards
ng
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: How to turn a hidden file to unhide

Shalom,

ls -la filename

(or * to see the file, its not really hidden from root)

chmod a+r filename

Now its not hidden

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sajeev_1
Advisor

Re: How to turn a hidden file to unhide

hi Ng
think only way to unhide is to rename it with out (.) in the begining....
hope this helps

Thanks
Sajeev
A. Clay Stephenson
Acclaimed Contributor

Re: How to turn a hidden file to unhide

UNIX has no hidden files with one exception. If a process open()'s a file and then unlink()'s (unlink() is what underlies the rm command), the file is now completely invisible and completely usable but as soon as the last process which had the file open either close()'es it or terminates, the space occupied by the file is freed.

Now, any file that begins with "." is not displayed by the ls command unless the -a option is used. Another example of a hidden file, is a filename that consists entirely of whitespace or other non-printable ASCII characters; those can be seen via ls -b to display all non-printables via their octal equivalents.
If it ain't broke, I can fix that.