LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-05-2012, 06:57 AM   #1
slowerogue
Member
 
Registered: Oct 2012
Posts: 93

Rep: Reputation: Disabled
what is /etc ~


hi guys
today i found out my vmware rhel has another directory name /etc~
so now i m having /etc and /etc~

what does etc~ do..?
any help pls?
 
Old 12-05-2012, 07:04 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,614

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Quote:
what does etc~ do..?
It is a back up copy of an old directory "/etc". It is a general convention in gnu/*nix that a suffix symbol " ~ " is appended to an old copy of file or folder before certain task makes any changes. For example: if you run some utilities to change /etc/X11/xorg.conf (in former days) the utility automatically creates first a back up "/etc/X11/xorg.conf~ or xorg.conf.old" before it writes new entries into the configuration file. Now since /etc is mainly a configuration directory you may have run certain utility that sought to alter /etc contents and thus created a copy "/etc/~" of the old.

Hope that helps.

Good luck.
 
2 members found this post helpful.
Old 12-05-2012, 07:49 AM   #3
slowerogue
Member
 
Registered: Oct 2012
Posts: 93

Original Poster
Rep: Reputation: Disabled
hi thanks for the explanation
i found out my /etc has modprobe.d, but my /etc~ has modprobe.conf and modprobe.conf~

why my /etc doesnt have modprobe.conf, why modprobe.conf...i thought every system has it, or i have accidentally deleted it perhaps?
 
Old 12-05-2012, 11:22 AM   #4
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,614

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Quote:
why my /etc doesnt have modprobe.conf, why modprobe.conf...i thought every system has it, or i have accidentally deleted it perhaps?
Because /etc/modprobe.d/ is a folder the contains user-defined module configurations; the daemon reads from that folder. At load up the init reads from scripts (/etc/rc.d/rc.modules in my Slackware --don't know what distro you are in right now) and loads what modules are commanded to be loaded, and any special configurations found at /etc/modprobe.d/ folder is given priority and honor; in the absence of anything found therein the modules previously loaded stand as unmodified by the user.

So if you still need that module.conf in the backup "/etc~" you may only copy manually from that into the current /etc and the same shall take effect in the next load up.

Hope that helps.

Good luck.
 
1 members found this post helpful.
Old 12-05-2012, 07:59 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
That sounds like an upgraded system.
It used to be the convention that modprobe settings were set in /etc/modprobe.conf (a file).
In more recent systems, that has been changed (replaced) to allowing multiple files inside a new dir /etc/modprobe.d
 
Old 12-06-2012, 11:56 PM   #6
slowerogue
Member
 
Registered: Oct 2012
Posts: 93

Original Poster
Rep: Reputation: Disabled
i see, thank you guys
 
  


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




All times are GMT -5. The time now is 04:24 AM.

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