You are not logged in.

#1 2018-04-06 23:50:47

digor
Member
Registered: 2018-02-28
Posts: 7

Weird empty '.bash_history-xxxxx.tmp' files pollutes my home

# ls -1 .bash_history*
.bash_history
.bash_history-03581.tmp
.bash_history-07616.tmp
.bash_history-08765.tmp

What are this files? I have never seen before.

Offline

#2 2018-04-06 23:56:24

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Weird empty '.bash_history-xxxxx.tmp' files pollutes my home

Post your .bashrc


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-04-06 23:57:04

digor
Member
Registered: 2018-02-28
Posts: 7

Re: Weird empty '.bash_history-xxxxx.tmp' files pollutes my home

#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc

Last edited by digor (2018-04-06 23:59:03)

Offline

#4 2018-04-07 01:30:57

digor
Member
Registered: 2018-02-28
Posts: 7

Re: Weird empty '.bash_history-xxxxx.tmp' files pollutes my home

Can't find anything about such files. And this happens rarely. Several files was created yesteday (at the same time exactly) while previous in the previous month. About 3 months (or even more) had passed since the first time I noticed. And furthermore, I reinstalled my system recently.

Offline

#5 2024-01-28 07:58:47

yurius
Member
Registered: 2022-07-31
Posts: 10

Re: Weird empty '.bash_history-xxxxx.tmp' files pollutes my home

I deleted ~/.bash-history, and then I created it again from user. Now no more *.tmp files appear in ~ .

Offline

#6 2024-01-28 09:20:07

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,196

Re: Weird empty '.bash_history-xxxxx.tmp' files pollutes my home

Likely you've reached your configured history limit and these are files created to latter flush over the normal bash history.

In any case please don't necrobump 8 year old threads.

https://wiki.archlinux.org/title/Genera … bumping%22

Offline

Board footer

Powered by FluxBB