December 10, 20196 yr Hey Guys, i want to have a bash history to see my previus commands. But i didnt find any option for that. Did anyone know how to do that? Thanks
December 10, 20196 yr Author thanks but this is only from the last restart. Iam looking for all ever entered commands.
December 10, 20196 yr Since the OS runs in RAM and can't make any assumptions about anyones persistent storage there is nothing to keep that history.
October 15, 2025Oct 15 Claude managed to give me this which seems to work ok:Add this to your go file (which runs on every boot):Edit /boot/config/go:bashnano /boot/config/goAdd these lines at the end:bash# Persist bash history ln -sf /boot/config/bash_history /root/.bash_history touch /boot/config/bash_historySave and exit (Ctrl+X, Y, Enter)Make the initial history file:bashtouch /boot/config/bash_history ln -sf /boot/config/bash_history /root/.bash_historyHow it works/boot is your USB flash drive, which persists across rebootsThis creates a symbolic link from /root/.bash_history (the default history location in RAM) to a file on your USBThe go file recreates this link on every bootYour command history is now saved to the USB automatically
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.