Pantherina@feddit.de to linuxmemes@lemmy.world · 6 months agoRussian deletefeddit.deimagemessage-square16fedilinkarrow-up10arrow-down10
arrow-up10arrow-down1imageRussian deletefeddit.dePantherina@feddit.de to linuxmemes@lemmy.world · 6 months agomessage-square16fedilink
minus-squaresmb@lemmy.mllinkfedilinkEnglisharrow-up0·edit-26 months agoman bash HISTCONTROL=ignorespace unset RANDOM RANDOM=4 clear ... If RANDOM is unset, it loses its special properties, even if it is subsequently reset. HISTCONTROL If the list of values includes ignorespace, lines which begin with a space character are not saved in the history list. RTFM can save your server AND your bet ;-) it is cheating of course if the predefined rules tell us about such requirements and if these are not met any more when unsetting RANDOM ahead of it. UPDATE: added “man bash” to show how to rtfm and make the following leading space more visible
man bash HISTCONTROL=ignorespace unset RANDOM RANDOM=4 clear ...
RTFM can save your server AND your bet ;-)
it is cheating of course if the predefined rules tell us about such requirements and if these are not met any more when unsetting RANDOM ahead of it.
UPDATE: added “man bash” to show how to rtfm and make the following leading space more visible