This is on fedora 40, a fresh 'everything' network install. I always update/upgrade manually using 'sudo dnf --refresh upgrade'. To save typing I would scroll through the command history using the arrow keys. But 'sudo dnf --refresh upgrade' is no longer listed! All other commands I used are still listed, but not this one. Can somebody explain?
AV
It truly depends on how the default management of bash history is set up in the virgin environment.Variables like HISTCONTROL, HISTIGNORE can play a part. The setting for 'shopt -s histappend' also matters.The BASH man page briefly explains them. R,-Joe
On Tuesday, June 4, 2024 at 12:17:41 PM EDT, AV via users users@lists.fedoraproject.org wrote:
This is on fedora 40, a fresh 'everything' network install. I always update/upgrade manually using 'sudo dnf --refresh upgrade'. To save typing I would scroll through the command history using the arrow keys. But 'sudo dnf --refresh upgrade' is no longer listed! All other commands I used are still listed, but not this one. Can somebody explain?
AV -- _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
If you have 2 separate sessions open for the given user last save/exit wins and overwrites the history file. This may be an oversimplification but 2 sessions both saving out do seem to make a mess.
And if there is no -TERM and/or clean exit then nothing gets written out.
I have trained people on root cause analysis for system events/crashes and I have always told them that if you do not find something in the history that does not mean that a command was not typed.
On Tue, Jun 4, 2024 at 11:17 AM AV via users users@lists.fedoraproject.org wrote:
This is on fedora 40, a fresh 'everything' network install. I always update/upgrade manually using 'sudo dnf --refresh upgrade'. To save typing I would scroll through the command history using the arrow keys. But 'sudo dnf --refresh upgrade' is no longer listed! All other commands I used are still listed, but not this one. Can somebody explain?
AV
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue