On Saturday 18 May 2019 04:15:32 am Felix Miata wrote: > Gene Heskett composed on 2019-05-18 03:46 (UTC-0400): > > Felix Miata wrote: > >> Does /var/log/journal/ exist? > > > > no, should it? > > It's the home of the optional persistent systemd journal. The option > is configured simply by its presence or not. I resisted it for several > years, but no more since over a year ago. > > >> If it does, try: > >> > >> journalctl | grep hid-common > > > > which says I should sudo it, and when I do, grep only finds itself > > in 3 stanza's with wrong syntax on the 2nd invocation: > > COMMAND=/bin/grep -Rhid-common > > "If it exists". Dunno what's expected when it doesn't exist. > > You seem to have picked up youngster's misusage of English. "3 > stanzas" do not possess "with wrong syntax". :-D
Sure they do, journalctl actually finds 6 instances of grep with slightly different syntax, I assume to catch all the corner cases. I only copy/pasted the obviously wrong one above. The lack of a space between the -R and the name its searching for is a syntax error, or should be, but was not reported as such. Here is the complete output of that command: root@coyote:~$ journalctl | grep hid-common May 17 23:08:14 coyote sudo[5114]: gene : TTY=pts/6 ; PWD=/home/gene ; USER=root ; COMMAND=/bin/grep hid-common /var/log/syslog May 17 23:08:44 coyote sudo[5132]: gene : TTY=pts/6 ; PWD=/home/gene ; USER=root ; COMMAND=/bin/grep hid-common /var/log/syslog May 17 23:11:13 coyote sudo[5204]: gene : TTY=pts/6 ; PWD=/var/log ; USER=root ; COMMAND=/bin/grep hid-common kern.log May 17 23:11:58 coyote sudo[5225]: gene : TTY=pts/6 ; PWD=/var/log ; USER=root ; COMMAND=/bin/grep hid-common alternatives.log amanda apache2 apt apt-cacher-ng aptitude auth.log auth.log.1 auth.log.2.gz bootstrap.log btmp clamav cups daemon.log daemon.log.1 daemon.log.2.gz debug debug.1 debug.2.gz dmesg dpkg.log exim4 faillog fontconfig.log fsck hp httpd installer kern.log kern.log.1 kern.log.2.gz lastlog lightdm lpr.log lpr.log.1 lpr.log.2.gz mail.err mail.err.1 mail.err.2.gz mail.info mail.info.1 mail.info.2.gz mail.log mail.log.1 mail.log.2.gz mail.warn mail.warn.1 mail.warn.2.gz messages messages.1 messages.2.gz samba speech-dispatcher syslog syslog.1 syslog.2.gz syslog.3.gz syslog.4.gz syslog.5.gz syslog.6.gz syslog.7.gz tdm.log tdm.log.1 tdm.log.2.gz tdm.log.3.gz tdm.log.4.gz unattended-upgrades user.log user.log.1 user.log.2.gz wtmp Xorg.0.log Xorg.0.log.old Xorg.1.log May 17 23:12:39 coyote sudo[5567]: gene : TTY=pts/6 ; PWD=/var/log ; USER=root ; COMMAND=/bin/grep -Rhid-common alternatives.log amanda apache2 apt apt-cacher-ng aptitude auth.log auth.log.1 auth.log.2.gz bootstrap.log btmp clamav cups daemon.log daemon.log.1 daemon.log.2.gz debug debug.1 debug.2.gz dmesg dpkg.log exim4 faillog fontconfig.log fsck hp httpd installer kern.log kern.log.1 kern.log.2.gz lastlog lightdm lpr.log lpr.log.1 lpr.log.2.gz mail.err mail.err.1 mail.err.2.gz mail.info mail.info.1 mail.info.2.gz mail.log mail.log.1 mail.log.2.gz mail.warn mail.warn.1 mail.warn.2.gz messages messages.1 messages.2.gz samba speech-dispatcher syslog syslog.1 syslog.2.gz syslog.3.gz syslog.4.gz syslog.5.gz syslog.6.gz syslog.7.gz tdm.log tdm.log.1 tdm.log.2.gz tdm.log.3.gz tdm.log.4.gz unattended-upgrades user.log user.log.1 user.log.2.gz wtmp Xorg.0.log Xorg.0.log.old Xorg.1.log May 17 23:12:53 coyote sudo[5979]: gene : TTY=pts/6 ; PWD=/var/log ; USER=root ; COMMAND=/bin/grep -R hid-common alternatives.log amanda apache2 apt apt-cacher-ng aptitude auth.log auth.log.1 auth.log.2.gz bootstrap.log btmp clamav cups daemon.log daemon.log.1 daemon.log.2.gz debug debug.1 debug.2.gz dmesg dpkg.log exim4 faillog fontconfig.log fsck hp httpd installer kern.log kern.log.1 kern.log.2.gz lastlog lightdm lpr.log lpr.log.1 lpr.log.2.gz mail.err mail.err.1 mail.err.2.gz mail.info mail.info.1 mail.info.2.gz mail.log mail.log.1 mail.log.2.gz mail.warn mail.warn.1 mail.warn.2.gz messages messages.1 messages.2.gz samba speech-dispatcher syslog syslog.1 syslog.2.gz syslog.3.gz syslog.4.gz syslog.5.gz syslog.6.gz syslog.7.gz tdm.log tdm.log.1 tdm.log.2.gz tdm.log.3.gz tdm.log.4.gz unattended-upgrades user.log user.log.1 user.log.2.gz wtmp Xorg.0.log Xorg.0.log.old Xorg.1.log Wordwrap screws it all up, so I put a line feed between instances. At 84, I think I do understand English, but it has more modifiers and variations that any other fairly common language on this ball of rock and water we arbitrarily call a planet. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene>