Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-24-2012, 03:49 PM   #1
LQ Newbie
Registered: Oct 2011
Posts: 1

Rep: Reputation: Disabled
Using '_' or '-' to separate parts of object names (e.g. files)

Dear LinuxQuestionsOrg Community,

Please tell me the prescribed best practice for naming objects such as files folders, or other objects requiring user naming. Is it better to use an '_' or a '-' to separate the parts of a name?

For example, if I wanted to define a folder for the Linux Questions Org Community should I define the folder as 'Linux_Questions_Org_Community',or 'Linux-Questions-Org-Community' or does it matter and come down to personal preference?

To extend my question about naming standards, please also recommend whether it is best to use upper case letters for each part of a name, as Iíve used in the above examples.

I want to be a virtuous Linux practitioner and abide by community best practices.

Thank you much!
Old 02-24-2012, 04:01 PM   #2
LQ Guru
Registered: Apr 2005
Posts: 5,818

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
Honestly, it is really up to you. A dash and an underscore are allowed in filenames. Just don't use restricted characters that are interpreted by your shell, such as &, *, etc. And always remember, linux is case senstive; If you use capital letters in your filenames or whatever, then they are actual capital letters.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Names Pipes... or how to get two separate applications to interact LXer Syndicated Linux News 0 06-29-2009 06:00 AM
Encoding separate audio channels to separate files omnio Linux - Software 0 06-01-2007 08:46 AM
Looking for a tool to auto crop and separate images in to separate files.. mlsfit Linux - Software 2 08-06-2006 04:13 PM
How do I point several domain names to seperate parts of my root server in Plesk 7? mohawx Linux - Newbie 2 03-19-2006 06:58 PM
SAMBA: display of share names is OK but files names are wrong superandrzej Linux - Software 5 02-02-2004 10:14 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration