October 28, 20214 yr Hi ! On unRAID, .bash_history is not saved on reboot, I try to save history : # history | sed 's/^ *[0-9]* *//' > /boot/custom/bash_history 1) by CLI, no problem : -rw-rw-rw- 1 root root 4.0K Oct 28 12:18 bash_history 2) On a script, destination file is zero K : -rw-rw-rw- 1 root root 0K Oct 28 12:20 bash_history I'm afraid there's no solution ? Please tell me I'm wrong. Thanks ! Edited October 28, 20214 yr by PicPoc
November 19, 20214 yr Community Expert On 10/28/2021 at 6:22 AM, PicPoc said: # history | sed 's/^ *[0-9]* *//' > /boot/custom/bash_history The # marks this line as a comment line in a bash file. Don't know if this is the problem or not...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.