Re: OT: dotfile generalities (was Re: repeated system mail, /etc/.pwd.lock ?)
On Thu 06 May 2021 at 10:46:03 (-0400), Greg Wooledge wrote:
> On Thu, May 06, 2021 at 02:37:17PM +0000, davidson wrote:
> > > $ shopt -s globstar
> > > $ ls /etc/**/.[^.]*
> >
> > It now occurs to me that this still omits files like /etc/.a and
> > /etc/..metadotfile
>
> It doesn't omit .a . The * is allowed to match the empty string.
>
> > Instead,
> >
> > $ ls /etc/**/.{.?,[^.]}*
> >
> > does what I intend, which is to display all dotfiles under /etc. Seems
> > unduly complicated if you ask me, but it is what it is.
>
> find /etc -type f -name '.*'
Well, here are the files on my system:
# find /etc -type f -name '.*' -ls | sort -k 11
-rwx------ 84357 May 6 08:25 /etc/.etckeeper
-rw------- 932 Apr 3 2020 /etc/.gitignore
-rw-r--r-- 0 Apr 3 2020 /etc/.java/.systemPrefs/.system.lock
-rw-r--r-- 0 Apr 3 2020 /etc/.java/.systemPrefs/.systemRootModFile
-rw------- 0 Apr 3 2020 /etc/.pwd.lock
-rw-r--r-- 102 Jun 23 2019 /etc/cron.d/.placeholder
-rw-r--r-- 102 Jun 23 2019 /etc/cron.daily/.placeholder
-rw-r--r-- 102 Jun 23 2019 /etc/cron.hourly/.placeholder
-rw-r--r-- 102 Jun 23 2019 /etc/cron.monthly/.placeholder
-rw-r--r-- 102 Jun 23 2019 /etc/cron.weekly/.placeholder
-rw-r--r-- 0 Dec 19 2018 /etc/sensors.d/.placeholder
-rw-r--r-- 220 Apr 17 2019 /etc/skel/.bash_logout
-rw-r--r-- 3526 Apr 17 2019 /etc/skel/.bashrc
-rw-r--r-- 807 Apr 17 2019 /etc/skel/.profile
#
(I removed the node#, usage, #links and ownership for brevity.)
I have no argument with /etc/skel/ and the placeholders, obviously.
/etc/.etckeeper is a script for creating directories and resetting
ownerships/permissions in /etc/, and /etc/.gitignore is a list of
filename patterns that etckeeper is configured not to track.
Turning to the dot-directories with:
# ls -GlgAR /etc/\.[^\.]*/ (pruned and attached)
/etc/.git/ certainly contains configuration files as well as the
repository itself. I know nothing about java, and how /etc/.java
relates to /etc/java/.
Most of this stuff is protected from reading, but I don't see the
point in "hiding" them with dots.
Cheers,
David.
/etc/.git/:
total 244
-rw-r--r-- 1 17 May 6 08:25 COMMIT_EDITMSG
-rw-r--r-- 1 23 Apr 3 2020 HEAD
drwxr-xr-x 2 4096 Apr 3 2020 branches
-rw-r--r-- 1 92 Apr 3 2020 config
-rw-r--r-- 1 21 Apr 3 2020 description
drwxr-xr-x 2 4096 Apr 3 2020 hooks
-rw-r--r-- 1 206363 May 6 08:35 index
drwxr-xr-x 2 4096 Apr 3 2020 info
drwxr-xr-x 3 4096 Apr 3 2020 logs
drwxr-xr-x 260 4096 Apr 3 2020 objects
drwxr-xr-x 4 4096 Apr 3 2020 refs
/etc/.git/branches:
total 0
/etc/.git/hooks:
total 52
-rwxr-xr-x 1 478 Apr 3 2020 applypatch-msg.sample
-rwxr-xr-x 1 896 Apr 3 2020 commit-msg.sample
-rwxr-xr-x 1 3327 Apr 3 2020 fsmonitor-watchman.sample
-rwxr-xr-x 1 189 Apr 3 2020 post-update.sample
-rwxr-xr-x 1 424 Apr 3 2020 pre-applypatch.sample
-rwxr-xr-x 1 118 Apr 3 2020 pre-commit
-rwxr-xr-x 1 1638 Apr 3 2020 pre-commit.sample
-rwxr-xr-x 1 1348 Apr 3 2020 pre-push.sample
-rwxr-xr-x 1 4898 Apr 3 2020 pre-rebase.sample
-rwxr-xr-x 1 544 Apr 3 2020 pre-receive.sample
-rwxr-xr-x 1 1492 Apr 3 2020 prepare-commit-msg.sample
-rwxr-xr-x 1 3610 Apr 3 2020 update.sample
/etc/.git/info:
total 4
-rw-r--r-- 1 240 Apr 3 2020 exclude
/etc/.git/logs:
total 68
-rw-r--r-- 1 60021 May 6 08:25 HEAD
drwxr-xr-x 3 4096 Apr 3 2020 refs
/etc/.git/logs/refs:
total 4
drwxr-xr-x 2 4096 Apr 3 2020 heads
/etc/.git/logs/refs/heads:
total 64
-rw-r--r-- 1 60021 May 6 08:25 master
/etc/.git/objects:
total 1032
drwxr-xr-x 2 4096 Mar 27 13:03 00
[ … ]
drwxr-xr-x 2 4096 Jun 12 2020 ff
drwxr-xr-x 2 4096 Apr 3 2020 info
drwxr-xr-x 2 4096 Apr 3 2020 pack
/etc/.git/objects/00:
total 92
-r--r--r-- 1 13623 Jun 30 2020 1c2271807b14845a18e475364a48d9652a1ddd
[ … ]
-r--r--r-- 1 2697 Apr 3 2020 fac6f7df55d080c9804ea3386634bb906c531b
/etc/.git/objects/ff:
total 68
-r--r--r-- 1 62 Apr 3 2020 1f5877865a736c3c30efb1d8826aff909e078e
[ … ]
-r--r--r-- 1 380 Apr 3 2020 f8d813e0e033163e1ffe916f4cb8f0fd97f54b
/etc/.git/objects/info:
total 0
/etc/.git/objects/pack:
total 0
/etc/.git/refs:
total 8
drwxr-xr-x 2 4096 May 6 08:25 heads
drwxr-xr-x 2 4096 Apr 3 2020 tags
/etc/.git/refs/heads:
total 4
-rw-r--r-- 1 41 May 6 08:25 master
/etc/.git/refs/tags:
total 0
/etc/.java/:
total 4
drwxr-xr-x 2 4096 Apr 3 2020 .systemPrefs
/etc/.java/.systemPrefs:
total 0
-rw-r--r-- 1 0 Apr 3 2020 .system.lock
-rw-r--r-- 1 0 Apr 3 2020 .systemRootModFile
Reply to:
- References:
- Re: repeated system mail, /etc/.pwd.lock ?
- From: Darac Marjal <mailinglist@darac.org.uk>
- Re: repeated system mail, /etc/.pwd.lock ?
- From: Emanuel Berg <moasenwood@zoho.eu>
- Re: repeated system mail, /etc/.pwd.lock ?
- From: Kushal Kumaran <kushal@locationd.net>
- Re: repeated system mail, /etc/.pwd.lock ?
- From: Emanuel Berg <moasenwood@zoho.eu>
- Re: repeated system mail, /etc/.pwd.lock ?
- From: David Wright <deblis@lionunicorn.co.uk>
- Re: repeated system mail, /etc/.pwd.lock ?
- From: Greg Wooledge <greg@wooledge.org>
- Re: repeated system mail, /etc/.pwd.lock ?
- From: David Wright <deblis@lionunicorn.co.uk>
- Re: repeated system mail, /etc/.pwd.lock ?
- From: davidson <davidson@freevolt.org>
- OT: dotfile generalities (was Re: repeated system mail, /etc/.pwd.lock ?)
- From: davidson <davidson@freevolt.org>
- Re: OT: dotfile generalities (was Re: repeated system mail, /etc/.pwd.lock ?)
- From: Greg Wooledge <greg@wooledge.org>