> > Is there a standard naming convention for files and directories in
> > Linux? I heard at some point that directories should be upper case
> > (i.e. - "Files") and files should be lowercase (i.e. - "myfile"). Also
> > are there any issues with spaces versus underscores. Does anyone know
> > of any howtos that address this??
> File names can be what ever you choose to use, just remember that
> Linux is case sensitive.
> RedHat Redhat redhat # these are not the same file.
> It is generally a bad practice to use spaces in filenames though it
> can be done.
> If you want to see why try this in a empty directory.
> touch this is a test
> Then try it like this.
> touch "this is a test"
Usually, unix files are written in low-case because it's easier (no
need to do gymnastic to reach shift!). By the same token, the dash (-)
may be more used than the underscore (_).
But then, you're entirely free to choose your own conventions.
For example, I name my Modula-2 files by the name of the module, which
is case sensitive like unix and for which I use a convention like:
PjbMyModule, which gives files: PjbMyModule.mi and PjbMyModule.md
(module implementation and module definition). But otherwise, I tend
to use lower-case and dashes.
Otherwise, there are some standard for the standard top-level
directory names. Filesystem Hierarchy Standard, FHS:
http://www.pathname.com/fhs/
--
__Pascal_Bourguignon__ http://www.informatimago.com/
----------------------------------------------------------------------
There is a fault in reality. Do not adjust your minds. -- Salman Rushdie