Mittels dem GitHub-Projekt shournal
soll es möglich sein, alle Dateizugriffe zu protokollieren.
Das würde mir helfen, alle heruntergeladenen Dateie automatisch
mittels Virenscanner zu überprüfen. Hier beschreibe ich meine Erfahrungen
damit.
--- .bashrc.orig 2023-12-24 09:41:13.133762060 +0100+++ .bashrc 2023-12-24 09:46:27.019604883 +0100@@ -2,6 +2,15 @@ # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
+test -s /usr/share/shournal/SOURCE_ME.bash && {+ id|grep "shournalk" >/dev/null && {+ HISTCONTROL=ignoredups:erasedups # NOT ALLOWED: ignorespace,ignoreboth+ HISTSIZE=10000+ source /usr/share/shournal/SOURCE_ME.bash+ SHOURNAL_ENABLE+ }+}+ # If not running interactively, don't do anything
case $- in
*i*) ;;
@@ -10,13 +19,13 @@ # don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
-HISTCONTROL=ignoreboth+#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=+#HISTSIZE= HISTFILESIZE=
HISTTIMEFORMAT="[%F %T] "
Empfehlung laut Doku:
123456789101112131415
+++ .bashrc 2023-12-24 09:41:32.945781058 +0100@@ -1,6 +1,13 @@ # ~/.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 [[ -n ${SGE_O_WORKDIR+x} || (+ -n ${BASH_EXECUTION_STRING+x} &&+ ( -n ${SSH_CLIENT+x} || -n ${SSH_TTY+x} )+ ) ]]; then+ source /usr/share/shournal/SOURCE_ME.bash+ SHOURNAL_ENABLE+fi # If not running interactively, don't do anything
case $- in
Test
Kommandozeilenfenster öffnen und darin starten: google-chrome-stable.
In Chrome dann “dbeaver” herunterladen, Chrome beenden.