-
Permanent link to “Pyramid Technology series 9000-9810 marketing brochure” -
Fighting typeset...
When somebody's policy makes varibles readonly, such as HISTFILE, with this in a /etc/profile.d/* file: typeset -r HISTFILE Lets us modify readonly the environment varibles. This works only if we have gdb installed. Done on RHEL7.9 export HISTFILE=abd -bash: HISTFILE: readonly variable $ echo $HISTFILE mailto:/home/myuser@AD-domain/.history/20231107.155621 $ gdb -ex 'call unbind_variable("HISTFILE")' --pid=$$ --batch 0x00007f7ec902d46c in waitpid () from /lib64/libc.so.6 $1 = 0 [Inferior 1 (process 35393) detached] $ HISTFILE=.bash_history $ touch .bash_history $ ls $ cat .bash_history HISTFILE=.bash_history touch .bash_history ls $ If gdb is available, then stick this into your .bashrc: [ -f /usr/bin/gdb ] && /usr/bin/gdb -ex 'call unbind_variable("HISTFILE")' --pid=$$ --batch' >/dev/null 2>&1 And now we can set up our history with something sensible ( at least sensible for me). export HISTFILESIZE= export HISTSIZE= unset HISTTIMEFORMAT export...
-
The Apt and I,...
Thanks APT. Let's stop right there shall we, because I need fdisk (/sbin/fdisk /sbin/cfdisk /sbin/sfdisk) amoung other programme. Face-Palm. # apt-get autoremove --purge Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages will be REMOVED: bsdmainutils* cpp-8* fdisk* g++-10* geoip-database* glib-networking* glib-networking-common* glib-networking-services* ... ^c #