Hallo, Frohes neues
Mein Problem:
Ich habe seit eingiger Zeit das Problem das das Terminal temporäre history Dateien erstellt, habe jetzt auch keinen systemcrash bemerkt.
pattes@pattes-tty:~$ ls -al total 1788 drwxr-x---+ 35 pattes pattes 1302528 Jan 1 11:49 . drwxr-xr-x 3 root root 4096 Mai 8 2024 .. drwxrwxr-x 2 pattes pattes 4096 Jun 1 2024 arch_install drwxrwxr-x 2 pattes pattes 4096 Dez 30 18:23 backup_apt -rw------- 1 pattes pattes 35868 Jan 1 11:46 .bash_history -rw------- 1 pattes pattes 35852 Jan 1 03:40 .bash_history-26386.tmp -rw------- 1 pattes pattes 0 Jan 1 04:11 .bash_history-52281.tmp -rw------- 1 pattes pattes 35852 Jan 1 04:10 .bash_history-94280.tmp -rw-r--r-- 1 pattes pattes 220 Mai 26 2022 .bash_logout -rw-r--r-- 1 pattes pattes 4011 Jun 8 2024 .bashrc -rw-rw-r-- 1 pattes pattes 1024 Jan 1 11:49 ..bashrc.swp -rw-rw-r-- 1 pattes pattes 268 Nov 4 14:25 bk drwxrwxr-x 2 pattes pattes 4096 Dez 31 00:16 borg drwx------ 23 pattes pattes 4096 Dez 15 17:49 .cache -rwxrwxr-x 1 pattes pattes 78 Dez 27 12:14 clean_historytemp.sh drwx------ 32 pattes pattes 4096 Dez 25 13:11 .config drwxrwxr-x 4 pattes pattes 4096 Jan 1 03:01 .conky drwxr-xr-x 2 pattes pattes 4096 Apr 6 2024 conky_images drwxr-xr-x 3 pattes pattes 12288 Okt 19 21:55 cprogr -rw-rw-r-- 1 pattes pattes 5209 Jan 1 04:09 cpufile drwxr-xr-x 3 pattes pattes 4096 Mär 14 2023 ctest drwxr-xr-x 2 pattes pattes 4096 Sep 1 12:19 Documents drwxr-xr-x 19 pattes pattes 45056 Dez 31 00:26 Downloads -rwxrwxr-- 1 pattes pattes 70 Jan 1 11:45 .fehbg -rwxrw-r-- 1 pattes pattes 117 Okt 14 14:14 ff_prof.sh drwxr-xr-x 2 pattes pattes 4096 Mai 26 2022 .fontconfig drwxr-xr-x 2 pattes pattes 4096 Dez 25 13:02 .fonts drwx------ 3 pattes pattes 4096 Aug 14 19:35 .gnupg drwxrwxr-x 2 pattes pattes 4096 Aug 17 2023 .gphoto -rw-rw-r-- 1 pattes pattes 554 Aug 8 18:15 .gtkrc-2.0 drwxrwxr-x 26 pattes pattes 4096 Mai 26 2022 i3-gaps -rwxrwxr-x 1 pattes pattes 41 Apr 22 2023 i3_msg2.sh -rwxrwxr-x 1 pattes pattes 41 Mai 1 2023 i3_msg.sh -rw-rw-r-- 1 pattes pattes 1806 Jan 1 03:13 infofile -rwxrwxr-x 1 pattes pattes 1438 Aug 18 00:33 intenso.sh -rw------- 1 pattes pattes 74 Dez 27 12:03 .lesshst -rwxr-xr-x 1 pattes pattes 44 Jul 21 2020 lin_befehl.sh -rw-r--r-- 1 pattes pattes 40315 Dez 27 12:15 linux_befehle drwx------ 6 pattes pattes 4096 Aug 8 11:35 .local drwx------ 4 pattes pattes 4096 Jun 5 2022 .mozilla drwxrwxr-x 2 pattes pattes 4096 Mai 27 2022 .mplayer -rw-r--r-- 1 pattes pattes 8248 Dez 26 22:28 msfconsole drwxr-xr-x 2 pattes pattes 4096 Mai 26 2022 Music -rw-rw-r-- 1 pattes pattes 1287 Dez 31 13:41 netconky drwxr-xr-x 2 pattes pattes 4096 Dez 29 05:29 Pictures drwx------ 3 pattes pattes 4096 Jun 5 2022 .pki -rw-r--r-- 1 pattes pattes 807 Mai 26 2022 .profile drwxr-xr-x 3 pattes pattes 4096 Jan 1 11:42 Public drwxr-xr-x 2 pattes pattes 4096 Dez 7 20:09 python -rw------- 1 pattes pattes 65 Jan 1 11:47 .python_history -rwxrwxr-x 1 pattes pattes 78 Okt 11 2021 retro.sh drwxrwxr-x 2 pattes pattes 4096 Mai 9 2024 rsync_backup drwxrwxr-x 2 pattes pattes 4096 Dez 29 05:12 run_commands drwx------ 2 pattes pattes 4096 Jun 5 2022 .ssh drwxrwxr-x 4 pattes pattes 4096 Mai 19 2024 .ssr -rwxrwxr-x 1 pattes pattes 258 Jan 1 01:39 startconky.sh -rw-r--r-- 1 pattes pattes 0 Aug 29 18:37 .sudo_as_admin_successful -rwxrwxr-x 1 pattes pattes 31 Okt 27 2019 sund.sh drwx------ 2 pattes pattes 4096 Jun 6 2022 .synaptic -rwxrwxr-x 1 pattes pattes 30 Nov 2 2020 tast.sh -rw-rw-r-- 1 pattes pattes 2478 Jan 1 01:40 temperature drwxr-xr-x 2 pattes pattes 4096 Mai 26 2022 Templates -rwxr-xr-x 1 pattes pattes 48 Aug 13 2019 te.sh drwxrwxr-x 4 pattes pattes 4096 Jan 1 01:41 testconky -rw-rw-r-- 1 pattes pattes 2073 Jan 1 01:27 topfile -rwxrwxr-x 1 pattes pattes 18536 Okt 15 21:58 up_clean -rwxrwxr-x 1 pattes pattes 18736 Dez 29 05:12 upgrader drwxr-xr-x 2 pattes pattes 4096 Mai 19 2024 Videos -rw-rw-r-- 1 pattes pattes 933 Mär 6 2023 vol_conk drwx------ 2 pattes pattes 4096 Jul 24 2022 .w3m -rw-rw-r-- 1 pattes pattes 1105 Jun 26 2023 .wget-hsts -rw------- 1 pattes pattes 56 Dez 9 23:35 .Xauthority -rw-rw-r-- 1 pattes pattes 17 Mai 12 2024 .Xresources -rw------- 1 pattes pattes 490 Dez 9 23:34 .xsession-errors pattes@pattes-tty:~$
.bashrc:
# ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively, don't do anything case $- in *i*) ;; *) return;; esac # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoreboth # append to the history file, don't overwrite it shopt -s histappend # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=1000 HISTFILESIZE=2000 # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # If set, the pattern "**" used in a pathname expansion context will # match all files and zero or more directories and subdirectories. #shopt -s globstar # make less more friendly for non-text input files, see lesspipe(1) [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" # set variable identifying the chroot you work in (used in the prompt below) if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then debian_chroot=$(cat /etc/debian_chroot) fi # set a fancy prompt (non-color, unless we know we "want" color) case "$TERM" in xterm-color|*-256color) color_prompt=yes;; esac # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt #force_color_prompt=yes if [ -n "$force_color_prompt" ]; then if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then # We have color support; assume it's compliant with Ecma-48 # (ISO/IEC-6429). (Lack of such support is extremely rare, and such # a case would tend to support setf rather than setaf.) color_prompt=yes else color_prompt= fi fi if [ "$color_prompt" = yes ]; then # PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' PS1='\[\033[1;36m\]\u\[\033[1;31m\]@\[\033[1;32m\]\h:\[\033[1;34m\]\w\[\033[1;31m\]\$\[\033[0m\] ' else PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi unset color_prompt force_color_prompt # If this is an xterm set the title to user@host:dir case "$TERM" in xterm*|rxvt*) PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" ;; *) ;; esac # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' #alias dir='dir --color=auto' #alias vdir='vdir --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi # colored GCC warnings and errors #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' # some more ls aliases alias ll='ls -alF' alias la='ls -A' alias l='ls -CF' # Add an "alert" alias for long running commands. Use like so: # sleep 10; alert alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\> # Alias definitions. # You may want to put all your additions into a separate file like # ~/.bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package. if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). if ! shopt -oq posix; then if [ -f /usr/share/bash-completion/bash_completion ]; then . /usr/share/bash-completion/bash_completion elif [ -f /etc/bash_completion ]; then . /etc/bash_completion fi fi alias myterm=gnome-terminal --working-directory="$PWD"
Ich hab die history auch schon mehrmals geleert, hat aber nichts gebracht.
Was vielleicht zu erwähnen ist, ich verwende den i3wm Desktop, die terminals(container) werden per kill Befehl beendet: kill<PID>, war aber bisher noch nie ein Problem.
Hat jemand eine Idee wo ich mit suchen anfangen soll?
lg,