LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-19-2008, 12:20 PM   #1
eleftheros
LQ Newbie
 
Registered: Dec 2008
Location: Scottsboro, AL
Distribution: Ubuntu and Fedora
Posts: 2

Rep: Reputation: 0
Why do some files end in .d?


Hello. I am curious about why some files end in .d. I noticed that most (if not all) exist in /etc. Is there a reason behind this? I did some Googling but haven't found a satisfactory answer.

Any information would be appreciated. Thanks!

-Stephanie
 
Old 12-19-2008, 12:25 PM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
Hi,

That's 'd' for daemon.

You can always find out what a file is by typing:
$ file <filename>

Hope that clears things up for you.
 
Old 12-19-2008, 12:31 PM   #3
eleftheros
LQ Newbie
 
Registered: Dec 2008
Location: Scottsboro, AL
Distribution: Ubuntu and Fedora
Posts: 2

Original Poster
Rep: Reputation: 0
Ahh! Thank you for clearing that up!

-Stephanie
 
Old 12-19-2008, 01:07 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
On many systems the *.d "files" are "directories" containing files related to the * part of the name. Do a ls -l (or, if you're using a GUI, look at the icon) to distinguish between "files" and "directories." (Of course, on Linux system a "directory" - like almost everything else - is just a file with defined contents. But that's a different topic.)

Of course the file command will also show that.

Here's an example (the "d" at the start of the output line means "directory"):
Code:
$ ls -ld /etc/*.d
drwxr-xr-x  2 root root 4096 2008-12-14 07:55 /etc/bash_completion.d
drwxr-xr-x  2 root root 4096 2008-10-29 08:32 /etc/chkconfig.d
drwxr-xr-x  2 root root 4096 2008-12-07 14:50 /etc/cron.d
<snip>
$ file /etc/cron.d
/etc/cron.d: directory
 
Old 12-19-2008, 01:22 PM   #5
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Eco is correct. The ".d" convention originally, long-ago meant "Unix startup daemon" (for example, the "cron.d", as PTentholme pointed out).

You can read further details here (see Section 9.3):
http://www.debian.org/doc/debian-policy/ch-opersys.html

You can also read details about all the standard Linux directories (the standard Linux "FHS") here:
http://www.redhat.com/docs/manuals/l...ystem-fhs.html
 
  


Reply


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
Files with ~ mark at the end bkcreddy17 Programming 7 11-27-2008 05:35 AM
display files don't end with . powah Linux - General 3 06-08-2007 02:32 PM
Question about files with ~ at the end Murkhadh Linux - Newbie 5 02-17-2007 12:12 AM
what exactly are files that end in .so rolandkirk55 Linux - Newbie 4 09-07-2004 05:05 PM


All times are GMT -5. The time now is 02:43 PM.

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