The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
TAHI Test Suite 3.0.13 (IPv6 Conformance Test Tool branch) iBot Software Releases - RSS News 0 04-06-2008 09:20 AM
test if there are files in directory RSAM2007 UNIX for Advanced & Expert Users 1 10-17-2007 01:52 PM
Keithley Introduces Linux-Based RF Parametric Test Systems - Test and Measurement.com iBot UNIX and Linux RSS News 0 07-23-2007 07:30 AM
how to test filename is file or directory balireddy_77 Shell Programming and Scripting 1 11-01-2006 06:20 AM
How to test directory availibility santuna HP-UX 3 09-30-2005 05:40 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #8  
Old 12-27-2007
Registered User
 

Join Date: Dec 2007
Posts: 5
Quote:
Originally Posted by vikashtulsiyan View Post
buddy ls -a is for viewing hidden files. my question is that is there any way we can make ".file" a normal visible file.. one u can see wid ls command
a quick way to solve your prob is you can customize your .profile to add an ls alias which lists all files including hidden by default.
Reply With Quote
Forum Sponsor
  #9  
Old 12-27-2007
Sivaswami's Avatar
Registered User
 

Join Date: Mar 2007
Location: India
Posts: 58
1) to make the file visible. Please remove the . from the file name.
2) when you remove . the file name turns to file.
3) but there is already a file with the name "file".
4) So you have to rename the .file to some other name.

so try

mv .file file1

it should be working !!!

Thx,
Siva.
Reply With Quote
  #10  
Old 12-27-2007
Sivaswami's Avatar
Registered User
 

Join Date: Mar 2007
Location: India
Posts: 58
I Hope there is no other soln. than renaming.
Because Unix directory does not supports 2 files with same name
so you can append a symbol like % infront of .file like %file
or you can rename to another file.
to make it visible.

Thx,
siva.
Reply With Quote
  #11  
Old 12-27-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
In PC-DOS and hence OS/2 and Windows, hidden is an attribute of a directory entry.

In UNIX there is merely a convention to treat files with a leading period as hidden.
Reply With Quote
  #12  
Old 12-27-2007
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,326
Quote:
Originally Posted by porter View Post
In PC-DOS and hence OS/2 and Windows, hidden is an attribute of a directory entry.

In UNIX there is merely a convention to treat files with a leading period as hidden.
Exactly! test and .test are totally different filenames. They have nothing to do with each other except that they are in the same filesystem and in the same directory.

Code:
bash-3.00# cd /tmp
bash-3.00# touch test .test
bash-3.00# ls -lid test .test
  37946100 -rw-r--r--   1 root     other          0 Dec 28 03:41 .test
  36778413 -rw-r--r--   1 root     other          0 Dec 28 03:41 test
As you can see, the inode numbers are different, making these different files, not representations of the same file.
Reply With Quote
  #13  
Old 12-27-2007
Registered User
 

Join Date: Dec 2007
Posts: 42
then doesnt it sound like an error in UNIX system. that we actually have to change file names to make them visible.

like suppose one installed program reads from the file /home/vik/impdata

then one day i find that i have confidential data in impdata and want to make it hidden. in that case. in that case that program too will stop working as the file name has changed.

some of you might think am dragging this issue a little too further but i really believe that this is not the correct way( rename) to make a file hidden
Reply With Quote
  #14  
Old 12-27-2007
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,441
It does not seem like an error in the filesystem to me.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




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


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

Content Relevant URLs by vBSEO 3.2.0