This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ash_history [2024/09/24 16:05] – -Grammar, formatting hogwild | ash_history [2024/10/31 21:52] (current) – hogwild | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Make command line history persistent ====== | ====== Make command line history persistent ====== | ||
| - | By default, the command line history is stored as long as you don't reboot | + | By default, the command line history is stored as long as you don't reboot/power off the router. However, |
| - | The command history is kept in: "/ | + | The command history is kept in: "/ |
| - | We can use FreshTomato' | + | FreshTomato |
| - | \\ \\ This shutdown script will save the last 100 used commands. If you want to retain | + | \\ \\ This shutdown script will save the last 100 commands |
| <code bash cli_history_save.autostop> | <code bash cli_history_save.autostop> | ||
| Line 15: | Line 15: | ||
| </ | </ | ||
| - | \\ \\ This second script will restore the command history when booting.\\ Name your restore script " | + | \\ \\ The second script will restore the command history when booting.\\ Name your restore script " |
| <code bash cli_history_restore.autorun> | <code bash cli_history_restore.autorun> | ||
| Line 23: | Line 23: | ||
| </ | </ | ||
| - | \\ \\ Make sure to place the scripts in the storage | + | \\ \\ You must place the scripts in the mounted |
| <code bash> | <code bash> | ||
| Line 29: | Line 29: | ||
| </ | </ | ||
| - | \\ | + | |
| - | + | ||
| - | \\ | + | |