UNIX "dot" files

Sun Visualization Products matthew at sunpix.UUCP
Thu Oct 26 05:26:37 AEST 1989


In article <554 at ncelvax.UUCP> cathy at ncelvax.UUCP (Cathy Benney) writes:
|
|	Hello. I have a question. Can anyone tell me why the
|	"dot" files- .cshrc, .login, .profile, etc., need to
|	have a "dot" as their first character?  What does that
|	do within the UNIX system?  Also, are there a limited
|	number of "dot" files, or can any file be assigned a
|	dot as its first character, and therefore take on some
|	special significance within the system?  (And if so, what
|	is that special significance?)
|
|	Thanks for taking time to respond.  I am working with 4.3 BSD.
|
|	-Cathy Benney-
|	-Port Hueneme, California-

The only special significance of files with a leading '.' (dot) is that they
are considered "normally" hidden.

The advantage of "normally" hidden files is that they don't clutter up your desktop
during normal operations. Try an 'ls' and then an 'ls -a', and see which one you'd
like all the time.

The only "special" files are '.' and '..'.  They are pointer to the current directory ('.')
and parent directory ('..').  They also make great shorthands for standard operations.

cd .. 

moves you to the current directories' parent directory.

cp /home/hishome/test .

makes a copy of file '/home/hishome/test' in the current directory.


As one instructor told me about UNIX(tm),

	"a file is a file, is a file .................."


-- 
Matthew Lee Stier                            |
Sun Microsystems ---  RTP, NC  27709-3447    |     "Wisconsin   Escapee"
uucp:  sun!mstier or mcnc!rti!sunpix!matthew |
phone: (919) 469-8300 fax: (919) 460-8355    |



More information about the Comp.unix.questions mailing list