Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #199880 > unrolled thread
| Started by | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| First post | 2018-09-07 21:50 +0200 |
| Last post | 2018-09-08 18:40 +0200 |
| Articles | 14 — 11 participants |
Back to article view | Back to linux.debian.user
Is there a log file of ...? Richard Owlett <rowlett@cloud85.net> - 2018-09-07 21:50 +0200
Re: Is there a log file of ...? Dan Purgert <dan@djph.net> - 2018-09-07 22:10 +0200
Re: Is there a log file of ...? Reco <recoverym4n@gmail.com> - 2018-09-07 22:10 +0200
Re: Is there a log file of ...? David Wright <deblis@lionunicorn.co.uk> - 2018-09-08 05:00 +0200
Re: Is there a log file of ...? Richard Owlett <rowlett@cloud85.net> - 2018-09-08 12:20 +0200
Re: Is there a log file of ...? Jude DaShiell <jdashiel@panix.com> - 2018-09-08 15:10 +0200
Re: Is there a log file of ...? Hans <hans.ullrich@loop.de> - 2018-09-08 15:30 +0200
Re: Is there a log file of ...? <tomas@tuxteam.de> - 2018-09-08 15:40 +0200
Re: Is there a log file of ...? Michael Wagner <wagner_m_bremen@web.de> - 2018-09-08 18:00 +0200
Re: Is there a log file of ...? <tomas@tuxteam.de> - 2018-09-08 18:20 +0200
Re: Is there a log file of ...? Michael Wagner <wagner_m_bremen@web.de> - 2018-09-08 21:50 +0200
Re: Is there a log file of ...? Brad Rogers <brad@fineby.me.uk> - 2018-09-09 08:00 +0200
Re: Is there a log file of ...? Jack Dangler <tdldev@gmail.com> - 2018-09-08 18:20 +0200
Re: Is there a log file of ...? Curt <curty@free.fr> - 2018-09-08 18:40 +0200
| From | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| Date | 2018-09-07 21:50 +0200 |
| Subject | Is there a log file of ...? |
| Message-ID | <wvuVr-45E-1@gated-at.bofh.it> |
Earlier today when launching a long used from a console rather than by clicking on an icon, I got a strange WARNING message. I reported it on a related Usenet group. I got a reply from a Windows user suggesting several things to investigate. A key sub-string, and its usage, caught my attention. I used the Mate Search Tool to locate any file with that sub-string. Found one. Rather than deleting it I just added some characters to the beginning of the filename. The purpose was to easily restore things to the original state. It _*APPARENTLY*_ solved my problem. Later a different path of investigation was suggested. I wish to restore the old filename to run a test of the 2nd suggestion. Real world intervenes - i.e. Murphy's Law By a weird chain of associations I was able discover its *NEW* name. Still not sure of its original name - but that's another issue to be explored on a different group. To repeat my subject line: "Is there a log file of ...?" In this case I know the file's extension and VERY approximately when the name was changed. In the appropriate time period I know that there were no more than a dozen files created/destroyed/renamed. Is there a relevant log file? TIA
[toc] | [next] | [standalone]
| From | Dan Purgert <dan@djph.net> |
|---|---|
| Date | 2018-09-07 22:10 +0200 |
| Message-ID | <wvveN-4ro-9@gated-at.bofh.it> |
| In reply to | #199880 |
Richard Owlett wrote: > [...] > Still not sure of its original name - but that's another issue to be > explored on a different group. > > [...] > > Is there a relevant log file? Logfile of "user mv'd fileA to Filea1? Nope. At least not unless you've aliased mv / cp / rm to log what they're up to. -- |_|O|_| Registered Linux user #585947 |_|_|O| Github: https://github.com/dpurgert |O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281
[toc] | [prev] | [next] | [standalone]
| From | Reco <recoverym4n@gmail.com> |
|---|---|
| Date | 2018-09-07 22:10 +0200 |
| Message-ID | <wvveN-4ro-15@gated-at.bofh.it> |
| In reply to | #199880 |
Hi. On Fri, Sep 07, 2018 at 02:46:31PM -0500, Richard Owlett wrote: > In this case I know the file's extension and VERY approximately when the > name was changed. > > In the appropriate time period I know that there were no more than a dozen > files created/destroyed/renamed. > > Is there a relevant log file? There is, but you had have to enable it first. It's called kernel audit facility, the package is "auditd". Reco
[toc] | [prev] | [next] | [standalone]
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Date | 2018-09-08 05:00 +0200 |
| Message-ID | <wvBDz-8o8-3@gated-at.bofh.it> |
| In reply to | #199880 |
On Fri 07 Sep 2018 at 14:46:31 (-0500), Richard Owlett wrote:
> Earlier today when launching a long used from a console rather than by
> clicking on an icon, I got a strange WARNING message.
Is that an indication that you were expecting some difference in
the result of launching (un)said command?
If so, starting with a script command might be advisable; this
will capture the console dialogue in a file (default "typescript").
> I reported it on a related Usenet group. I got a reply from a Windows
> user suggesting several things to investigate. A key sub-string, and
> its usage, caught my attention. I used the Mate Search Tool to locate
> any file with that sub-string. Found one. Rather than deleting it I
> just added some characters to the beginning of the filename. The
> purpose was to easily restore things to the original state. It
> _*APPARENTLY*_ solved my problem. Later a different path of
> investigation was suggested.
>
> I wish to restore the old filename to run a test of the 2nd suggestion.
>
> Real world intervenes - i.e. Murphy's Law
> By a weird chain of associations I was able discover its *NEW* name.
> Still not sure of its original name - but that's another issue to be
> explored on a different group.
I'm not quite sure why, given the new name, you can't recognise the
difference between what you typed at the beginning of the filename
and the remaining original part. That is, unless the file was called
ydjhsmjeieeiigeiujqkmq and you prefixed it with udcrxaglskqnebkf.
But ho hum…
> To repeat my subject line: "Is there a log file of ...?"
> In this case I know the file's extension and VERY approximately when
> the name was changed.
>
> In the appropriate time period I know that there were no more than a
> dozen files created/destroyed/renamed.
This would be very useful in future if you were unsure of the name and
location of the file sporting its new name. One way to locate those
files is like this:
$ find / -type f -cmin -2880 -a -cmin +1440 -print | less
will find files whose status information was modified between 24 and
48 hours ago. If you renamed a file, that should affect the ctime.
You can choose your numbers appropriately and focus the search by
changing / to something more specific, or even adding -name \*.ext
where ext is the known extension.
> Is there a relevant log file?
Not in arrears. That's why it's worth copy/pasting the lines around
the warning when you post it, rather than taking the zero-content
approach as here and elsewhere. Then you could just look back at
the post. Similarly for the script. (I use the bash function
{ script "typescript-$HOSTNAME-$(date +%Y-%m-%d-%H-%M-%S)-$1" }
so that script is labelled and also can't overwrite the same file
"typescript" each time you invoke it.)
Cheers,
David.
[toc] | [prev] | [next] | [standalone]
| From | Richard Owlett <rowlett@cloud85.net> |
|---|---|
| Date | 2018-09-08 12:20 +0200 |
| Message-ID | <wvIvn-46R-7@gated-at.bofh.it> |
| In reply to | #199891 |
On 09/07/2018 09:53 PM, David Wright wrote: > On Fri 07 Sep 2018 at 14:46:31 (-0500), Richard Owlett wrote: >>[snip] >> In the appropriate time period I know that there were no more than a >> dozen files created/destroyed/renamed. > > This would be very useful in future if you were unsure of the name and > location of the file sporting its new name. One way to locate those > files is like this: > > $ find / -type f -cmin -2880 -a -cmin +1440 -print | less > > will find files whose status information was modified between 24 and > 48 hours ago. If you renamed a file, that should affect the ctime. > You can choose your numbers appropriately and focus the search by > changing / to something more specific, or even adding -name \*.ext > where ext is the known extension. That's what I want. Thank you.
[toc] | [prev] | [next] | [standalone]
| From | Jude DaShiell <jdashiel@panix.com> |
|---|---|
| Date | 2018-09-08 15:10 +0200 |
| Message-ID | <wvL9T-5GP-7@gated-at.bofh.it> |
| In reply to | #199880 |
If using bash, try using the up-arrow and you should be shown your command history. If your history is large enough, you'll find the command you used to rename the file. On Fri, 7 Sep 2018, Richard Owlett wrote: > Date: Fri, 7 Sep 2018 15:46:31 > From: Richard Owlett <rowlett@cloud85.net> > To: debian-user <debian-user@lists.debian.org> > Subject: Is there a log file of ...? > Resent-Date: Fri, 7 Sep 2018 19:47:20 +0000 (UTC) > Resent-From: debian-user@lists.debian.org > > Earlier today when launching a long used from a console rather than by > clicking on an icon, I got a strange WARNING message. > > I reported it on a related Usenet group. I got a reply from a Windows user > suggesting several things to investigate. A key sub-string, and its usage, > caught my attention. I used the Mate Search Tool to locate any file with that > sub-string. Found one. Rather than deleting it I just added some characters to > the beginning of the filename. The purpose was to easily restore things to the > original state. It _*APPARENTLY*_ solved my problem. Later a different path of > investigation was suggested. > > I wish to restore the old filename to run a test of the 2nd suggestion. > > Real world intervenes - i.e. Murphy's Law > By a weird chain of associations I was able discover its *NEW* name. > Still not sure of its original name - but that's another issue to be explored > on a different group. > > To repeat my subject line: "Is there a log file of ...?" > In this case I know the file's extension and VERY approximately when the name > was changed. > > In the appropriate time period I know that there were no more than a dozen > files created/destroyed/renamed. > > Is there a relevant log file? > > TIA > > > > --
[toc] | [prev] | [next] | [standalone]
| From | Hans <hans.ullrich@loop.de> |
|---|---|
| Date | 2018-09-08 15:30 +0200 |
| Message-ID | <wvLtf-5MU-5@gated-at.bofh.it> |
| In reply to | #199898 |
Am Samstag, 8. September 2018, 15:05:29 CEST schrieb Jude DaShiell: Also usefull: history -l | grep what-you-remember if you can just remeber a part of the command you used. Have fun! Best Hans > If using bash, try using the up-arrow and you should be shown your > command history. If your history is large enough, you'll find the > command you used to rename the file. > On Fri, 7 Sep 2018, Richard Owlett >
[toc] | [prev] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2018-09-08 15:40 +0200 |
| Message-ID | <wvLCV-5PV-11@gated-at.bofh.it> |
| In reply to | #199899 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, Sep 08, 2018 at 03:21:33PM +0200, Hans wrote: > Am Samstag, 8. September 2018, 15:05:29 CEST schrieb Jude DaShiell: > Also usefull: > > history -l | grep what-you-remember > > if you can just remeber a part of the command you used. And while we're at it, CTRL-R and start typing a substring of the past command you're looking for: the more letters you have, the more specific the match becomes (also called "reverse incremental search"). Takes a bit to get used to, but is... magic. I'm surprised it is so little known. Cheers - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAluTzsgACgkQBcgs9XrR2karKQCfRpCN5ODlcxrondLB184BsTQy DOEAn3m7yHX+FmHxJSIL52l4w2IqCVUA =zNhm -----END PGP SIGNATURE-----
[toc] | [prev] | [next] | [standalone]
| From | Michael Wagner <wagner_m_bremen@web.de> |
|---|---|
| Date | 2018-09-08 18:00 +0200 |
| Message-ID | <wvNOp-71H-1@gated-at.bofh.it> |
| In reply to | #199900 |
[Multipart message — attachments visible in raw view] — view raw
On Sep 08, 2018 at 15:29:44, tomas@tuxteam.de wrote: > And while we're at it, CTRL-R and start typing a substring of > the past command you're looking for: the more letters you have, > the more specific the match becomes (also called "reverse > incremental search"). > > Takes a bit to get used to, but is... magic. > > I'm surprised it is so little known. This is one of the first things I set when installing a new Debian. But you must set it explicitly in /etc/inputrc systemwide or in your ~/.inputrc. I don't how this behaviour is in other distris. Just my 2¢ Michael -- BOFH excuse #419: Repeated reboots of the system failed to solve problem
[toc] | [prev] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2018-09-08 18:20 +0200 |
| Message-ID | <wvO7L-7nh-3@gated-at.bofh.it> |
| In reply to | #199904 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, Sep 08, 2018 at 05:55:57PM +0200, Michael Wagner wrote: > On Sep 08, 2018 at 15:29:44, tomas@tuxteam.de wrote: > > And while we're at it, CTRL-R and start typing a substring of > > the past command you're looking for: the more letters you have, > > the more specific the match becomes (also called "reverse > > incremental search"). > > > > Takes a bit to get used to, but is... magic. > > > > I'm surprised it is so little known. > > This is one of the first things I set when installing a new Debian. > But you must set it explicitly in /etc/inputrc systemwide or in your > ~/.inputrc. I don't how this behaviour is in other distris. Hm. I have no .inputrc. I have the impression that on my box it is the default (Debian stretch, but it seems to have been default for a long time). Wait a minute! I've a minimal schroot installation around... yes, it seems to be default behaviour. Cheers - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAluT9NIACgkQBcgs9XrR2kZ06QCeKyz1qVyLDDbUayen+b1t0sjH 4XQAniFQ9b4UI9/s82DIhHcysRxMDnVp =cJhS -----END PGP SIGNATURE-----
[toc] | [prev] | [next] | [standalone]
| From | Michael Wagner <wagner_m_bremen@web.de> |
|---|---|
| Date | 2018-09-08 21:50 +0200 |
| Message-ID | <wvRp0-IW-9@gated-at.bofh.it> |
| In reply to | #199906 |
[Multipart message — attachments visible in raw view] — view raw
On Sep 08, 2018 at 18:12:02, tomas@tuxteam.de wrote: > On Sat, Sep 08, 2018 at 05:55:57PM +0200, Michael Wagner wrote: > > On Sep 08, 2018 at 15:29:44, tomas@tuxteam.de wrote: > > > And while we're at it, CTRL-R and start typing a substring of > > > the past command you're looking for: the more letters you have, > > > the more specific the match becomes (also called "reverse > > > incremental search"). > > > > > > Takes a bit to get used to, but is... magic. > > > > > > I'm surprised it is so little known. > > > > This is one of the first things I set when installing a new Debian. > > But you must set it explicitly in /etc/inputrc systemwide or in your > > ~/.inputrc. I don't how this behaviour is in other distris. > > Hm. I have no .inputrc. I have the impression that on my box > it is the default (Debian stretch, but it seems to have been > default for a long time). > > Wait a minute! I've a minimal schroot installation around... > yes, it seems to be default behaviour. You are right. I mixed it up with # alternate mappings for "page up" and "page down" to search the history "\e[5~": history-search-backward "\e[6~": history-search-forward to search after you hit CTRL-R and type the beginnning of the command you search for. Michael -- Lesser artists borrow. Great artists steal.
[toc] | [prev] | [next] | [standalone]
| From | Brad Rogers <brad@fineby.me.uk> |
|---|---|
| Date | 2018-09-09 08:00 +0200 |
| Message-ID | <ww0Vk-6jk-9@gated-at.bofh.it> |
| In reply to | #199915 |
[Multipart message — attachments visible in raw view] — view raw
On Sat, 8 Sep 2018 21:42:56 +0200
Michael Wagner <wagner_m_bremen@web.de> wrote:
Hello Michael,
>to search after you hit CTRL-R and type the beginnning of the command
>you search for.
In point of fact, you can type any part of the string. Sooner or later,
it'll match the full command and argument set you're after.
--
Regards _
/ ) "The blindingly obvious is
/ _)rad never immediately apparent"
If you ain't sticking your knives in me, you will be eventually
Monsoon - Robbie Williams
[toc] | [prev] | [next] | [standalone]
| From | Jack Dangler <tdldev@gmail.com> |
|---|---|
| Date | 2018-09-08 18:20 +0200 |
| Message-ID | <wvO7L-7nh-15@gated-at.bofh.it> |
| In reply to | #199904 |
On 09/08/2018 11:55 AM, Michael Wagner wrote: > On Sep 08, 2018 at 15:29:44, tomas@tuxteam.de wrote: >> And while we're at it, CTRL-R and start typing a substring of >> the past command you're looking for: the more letters you have, >> the more specific the match becomes (also called "reverse >> incremental search"). >> >> Takes a bit to get used to, but is... magic. >> >> I'm surprised it is so little known. > This is one of the first things I set when installing a new Debian. > But you must set it explicitly in /etc/inputrc systemwide or in your > ~/.inputrc. I don't how this behaviour is in other distris. > > Just my 2¢ > Michael > It is set on default in Mint...
[toc] | [prev] | [next] | [standalone]
| From | Curt <curty@free.fr> |
|---|---|
| Date | 2018-09-08 18:40 +0200 |
| Message-ID | <wvOr7-7t7-11@gated-at.bofh.it> |
| In reply to | #199904 |
On 2018-09-08, Michael Wagner <wagner_m_bremen@web.de> wrote: > > On Sep 08, 2018 at 15:29:44, tomas@tuxteam.de wrote: >> And while we're at it, CTRL-R and start typing a substring of >> the past command you're looking for: the more letters you have, >> the more specific the match becomes (also called "reverse >> incremental search"). >>=20 >> Takes a bit to get used to, but is... magic. >>=20 >> I'm surprised it is so little known. > > This is one of the first things I set when installing a new Debian. > But you must set it explicitly in /etc/inputrc systemwide or in your=20 > ~/.inputrc. I don't how this behaviour is in other distris. Is that right? I don't remember ever having set it (though I use the functionality). I wouldn't know how to set it if I had to set it. Maybe something like bind '"\C-r": backward-search-history' ? I'm reading forward-search-history is bound to (get you into big trouble) Ctrl+S, but that that combo is also the flow control sequence for the terminal driver, so the shell never sees it (unless you disable flow control--'stty -ixon'). You can also enable an alternative key binding, of course. I'm only parroting here what I've just read (famous last weasel words).
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web